	.file	"extr_proto-coap.c_parse_links.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parse_links, @function
parse_links:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], rcx
	cmp	edx, -1
	jne	.L2
	call	strlen@PLT
	mov	ebx, eax
.L2:
	mov	esi, 16
	mov	edi, 1
	xor	r13d, r13d
	xor	r15d, r15d
	call	CALLOC@PLT
	xor	esi, esi
	mov	DWORD PTR [rax], r14d
	mov	r12, rax
	mov	DWORD PTR 4[rax], r14d
	cmp	ebx, r14d
	jbe	.L4
.L5:
	mov	r15d, r14d
	mov	DWORD PTR 8[rsp], esi
	add	r14d, 1
	add	r15, rbp
	movzx	edi, BYTE PTR [r15]
	call	isspace@PLT
	mov	esi, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L84
	cmp	BYTE PTR [r15], 60
	je	.L10
	cmp	ebx, r14d
	jbe	.L78
	cmp	ebx, -1
	jne	.L78
.L45:
	jmp	.L45
.L84:
	cmp	ebx, r14d
	ja	.L5
.L78:
	mov	r15, r13
.L4:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rax], r15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	r15d, 1[rsi]
	mov	rdi, r12
	add	esi, 2
	mov	edx, 16
	mov	DWORD PTR 28[rsp], r15d
	sal	r13, 4
	call	REALLOCARRAY@PLT
	mov	r12, rax
	mov	rax, r15
	sal	rax, 4
	add	r13, r12
	add	rax, r12
	mov	DWORD PTR 4[rax], ebx
	mov	DWORD PTR [rax], ebx
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR 4[r13], r14d
	mov	DWORD PTR 0[r13], r14d
	cmp	ebx, r14d
	jbe	.L4
	mov	eax, r14d
	add	r14d, 1
	add	rax, rbp
	cmp	BYTE PTR [rax], 62
	je	.L85
.L13:
	add	DWORD PTR 12[r13], 1
	add	rax, 1
	cmp	ebx, r14d
	jbe	.L4
	add	r14d, 1
	cmp	BYTE PTR [rax], 62
	jne	.L13
.L85:
	cmp	ebx, r14d
	jbe	.L4
	mov	edx, r14d
	add	rdx, rbp
.L7:
	add	r14d, 1
	mov	DWORD PTR 8[r13], 0
	mov	DWORD PTR 0[r13], r14d
	movzx	edi, BYTE PTR [rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	isspace@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L86
	movzx	eax, BYTE PTR [rdx]
	cmp	al, 44
	je	.L87
	cmp	al, 59
	je	.L88
	cmp	r14d, ebx
	jnb	.L4
	cmp	ebx, -1
	jne	.L4
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L86:
	add	rdx, 1
	cmp	r14d, ebx
	jb	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L87:
	cmp	r14d, ebx
	jnb	.L4
.L17:
	mov	esi, DWORD PTR 28[rsp]
	mov	r13, r15
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L88:
	cmp	r14d, ebx
	jnb	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, r14d
	add	r14d, 1
	add	rdx, rbp
	movzx	edi, BYTE PTR [rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	isspace@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L75
	movzx	edi, BYTE PTR [rdx]
	call	is_attr_char@PLT
	test	eax, eax
	jne	.L22
	cmp	ebx, r14d
	jbe	.L4
	cmp	ebx, -1
	jne	.L4
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	ebx, r14d
	jbe	.L4
	mov	edx, r14d
	add	r14d, 1
	add	rdx, rbp
	movzx	edi, BYTE PTR [rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	isspace@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L22
	movzx	edi, BYTE PTR [rdx]
	cmp	dil, 61
	je	.L76
	call	is_attr_char@PLT
	test	eax, eax
	jne	.L22
	cmp	ebx, r14d
	jbe	.L4
	cmp	ebx, -1
	jne	.L4
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L89:
	add	r14d, 1
.L76:
	cmp	ebx, r14d
	jbe	.L4
	mov	edx, r14d
	add	rdx, rbp
	movzx	edi, BYTE PTR [rdx]
	mov	QWORD PTR 8[rsp], rdx
	call	isspace@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	eax, eax
	jne	.L89
	movzx	eax, BYTE PTR [rdx]
	cmp	al, 34
	je	.L90
	cmp	r14d, 59
	je	.L91
	lea	edx, 1[r14]
	cmp	al, 44
	je	.L34
.L77:
	cmp	ebx, edx
	jbe	.L4
.L42:
	mov	ecx, edx
	mov	DWORD PTR 8[rsp], edx
	add	rcx, rbp
	movzx	edi, BYTE PTR [rcx]
	mov	QWORD PTR 16[rsp], rcx
	call	isspace@PLT
	mov	edx, DWORD PTR 8[rsp]
	lea	r14d, 1[rdx]
	test	eax, eax
	jne	.L36
	mov	rcx, QWORD PTR 16[rsp]
	movzx	eax, BYTE PTR [rcx]
	cmp	al, 59
	je	.L75
	cmp	al, 44
	je	.L92
.L36:
	cmp	ebx, r14d
	jbe	.L4
	mov	edx, r14d
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L75:
	cmp	ebx, r14d
	ja	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L90:
	lea	r8d, 1[r14]
	cmp	ebx, r8d
	jbe	.L4
	.p2align 4,,10
	.p2align 3
.L43:
	mov	eax, r8d
	lea	edx, 1[r8]
	movzx	eax, BYTE PTR 0[rbp+rax]
	cmp	al, 92
	je	.L93
.L39:
	cmp	al, 34
	je	.L77
	cmp	ebx, edx
	jbe	.L4
	mov	r8d, edx
	mov	eax, r8d
	lea	edx, 1[r8]
	movzx	eax, BYTE PTR 0[rbp+rax]
	cmp	al, 92
	jne	.L39
.L93:
	cmp	ebx, edx
	jbe	.L4
	add	r8d, 2
	cmp	ebx, r8d
	ja	.L43
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L92:
	sub	edx, DWORD PTR 0[r13]
	mov	DWORD PTR 8[r13], edx
	cmp	ebx, r14d
	ja	.L17
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L91:
	cmp	ebx, 60
	jbe	.L4
	mov	r14d, 60
	jmp	.L8
.L34:
	mov	r8d, r14d
	sub	r8d, DWORD PTR 0[r13]
	mov	DWORD PTR 8[r13], r8d
	cmp	ebx, edx
	jbe	.L4
	mov	r14d, edx
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	parse_links, .-parse_links
	.comm	stderr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_proto-coap.c_parse_links.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_links, %function
parse_links:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmn	r2, #1
	sub	sp, sp, #28
	mov	fp, r1
	mov	r5, r0
	movne	r4, r2
	str	r3, [sp, #8]
	bne	.L2
	bl	strlen
	mov	r4, r0
.L2:
	mov	r1, #16
	mov	r0, #1
	bl	CALLOC
	cmp	r4, fp
	mov	r6, r0
	mov	r7, #0
	str	fp, [r0]
	str	fp, [r0, #4]
	bls	.L4
	mov	r6, fp
	sub	r2, r5, #1
	add	r3, r2, r4
	str	r3, [sp, #12]
	str	r0, [sp, #4]
.L3:
	add	r8, r5, r6
.L5:
	ldrb	r0, [r8]	@ zero_extendqisi2
	bl	isspace
	subs	r9, r0, #0
	mov	fp, r8
	add	r10, r6, #1
	add	r8, r8, #1
	bne	.L74
	ldrb	r2, [fp]	@ zero_extendqisi2
	cmp	r2, #60
	beq	.L75
.L64:
	ldr	r6, [sp, #4]
.L4:
	mov	r0, r6
	ldr	r3, [sp, #8]
	str	r7, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L75:
	add	r1, r7, #2
	mov	r2, #16
	ldr	r0, [sp, #4]
	bl	REALLOCARRAY
	add	r7, r7, #1
	lsl	r2, r7, #4
	sub	r2, r2, #16
	add	r1, r0, r7, lsl #4
	add	r8, r0, r2
	cmp	r4, r10
	str	r4, [r1, #4]
	str	r9, [r1, #12]
	str	r0, [sp, #4]
	str	r4, [r0, r7, lsl #4]
	str	r9, [r1, #8]
	str	r10, [r8, #4]
	str	r10, [r0, r2]
	bls	.L64
	ldr	r0, [sp, #12]
	add	r3, r5, r6
.L10:
	add	r2, r3, #2
	ldrb	r1, [r3, #1]!	@ zero_extendqisi2
	sub	r2, r2, r5
	cmp	r1, #62
	beq	.L76
	ldr	r2, [r8, #12]
	cmp	r3, r0
	add	r2, r2, #1
	str	r2, [r8, #12]
	bne	.L10
	b	.L64
.L76:
	cmp	r4, r2
	bls	.L64
	mov	r10, #0
	add	r3, r5, r4
	str	r3, [sp, #20]
	rsb	r3, r5, #1
	add	r9, r5, r2
	str	r3, [sp, #16]
.L12:
	ldr	r3, [sp, #16]
	str	r10, [r8, #8]
	add	r6, r3, r9
	str	r6, [r8]
	ldrb	r0, [r9]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	mov	fp, r9
	add	r9, r9, #1
	bne	.L77
	ldrb	r2, [fp]	@ zero_extendqisi2
	cmp	r2, #44
	beq	.L78
	cmp	r2, #59
	bne	.L64
.L69:
	cmp	r4, r6
	bls	.L64
.L15:
	add	r9, r5, r6
.L6:
	ldrb	r0, [r9]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	mov	r10, r9
	add	fp, r6, #1
	add	r9, r9, #1
	beq	.L16
	cmp	r4, fp
	bls	.L64
	mov	r6, fp
	b	.L6
.L16:
	ldrb	r0, [r10]	@ zero_extendqisi2
	bl	is_attr_char
	cmp	r0, #0
	beq	.L64
	cmp	r4, fp
	bls	.L64
	add	r6, r5, r6
.L17:
	ldrb	r0, [r6, #1]	@ zero_extendqisi2
	bl	isspace
	add	r3, r6, #2
	cmp	r0, #0
	sub	r9, r3, r5
	add	r10, r6, #1
	bne	.L72
	ldrb	r0, [r6, #1]	@ zero_extendqisi2
	cmp	r0, #61
	bne	.L20
	cmp	r9, r4
	bcs	.L64
	add	r6, r5, r9
.L23:
	ldrb	r0, [r6]	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	mov	r10, r6
	add	r6, r6, #1
	bne	.L79
	ldrb	r3, [r10]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L80
	cmp	r9, #59
	beq	.L81
	cmp	r3, #44
	add	r10, r9, #1
	beq	.L28
.L67:
	cmp	r4, r10
	bls	.L64
	sub	r9, r10, #1
	add	r9, r5, r9
.L36:
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	add	r6, r10, #1
	bne	.L30
	ldrb	r3, [r9]	@ zero_extendqisi2
	cmp	r3, #59
	beq	.L69
	cmp	r3, #44
	beq	.L82
.L30:
	cmp	r4, r6
	bls	.L64
	mov	r10, r6
	b	.L36
.L20:
	bl	is_attr_char
	cmp	r0, #0
	beq	.L64
.L72:
	cmp	r9, r4
	bcs	.L64
	mov	r6, r10
	b	.L17
.L77:
	ldr	r3, [sp, #20]
	cmp	r9, r3
	bne	.L12
	b	.L64
.L79:
	add	r9, r9, #1
	cmp	r4, r9
	bne	.L23
	b	.L64
.L78:
	cmp	r4, r6
	bhi	.L3
	b	.L64
.L80:
	add	r3, r9, #1
	cmp	r4, r3
	bls	.L64
.L25:
	sub	r2, r3, #1
	add	r2, r5, r2
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	add	r10, r3, #1
	cmp	r1, #92
	beq	.L83
.L33:
	cmp	r1, #34
	beq	.L67
	cmp	r4, r10
	bls	.L64
	mov	r3, r10
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	add	r10, r3, #1
	cmp	r1, #92
	bne	.L33
.L83:
	cmp	r4, r10
	bls	.L64
	add	r3, r3, #2
	cmp	r4, r3
	bhi	.L25
	b	.L64
.L81:
	cmp	r4, #60
	bls	.L64
	mov	r6, #60
	b	.L15
.L82:
	ldr	r2, [r8]
	cmp	r4, r6
	sub	r2, r10, r2
	str	r2, [r8, #8]
	bhi	.L3
	b	.L64
.L28:
	ldr	r3, [r8]
	cmp	r4, r10
	sub	r3, r9, r3
	str	r3, [r8, #8]
	bls	.L64
	mov	r6, r10
	b	.L3
.L74:
	cmp	r4, r10
	bls	.L64
	mov	r6, r10
	b	.L5
	.size	parse_links, .-parse_links
	.comm	stderr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
