	.file	"extr_navigate.c_parse_headers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parse_headers, @function
parse_headers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movzx	eax, BYTE PTR [rdi]
	test	al, al
	je	.L2
	mov	r9, rdi
	mov	rbp, rsi
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	al, 13
	je	.L18
.L3:
	movzx	eax, BYTE PTR [r9]
	cmp	al, 58
	je	.L24
	mov	rdx, r9
	test	al, al
	jne	.L5
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L8:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	test	al, al
	je	.L7
	cmp	al, 58
	je	.L10
.L5:
	cmp	al, 13
	jne	.L8
.L9:
	mov	r12d, DWORD PTR E_FAIL[rip]
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L58:
	.cfi_restore_state
	cmp	BYTE PTR 1[rbx], 10
	je	.L57
.L18:
	cmp	BYTE PTR 1[r9], 10
	jne	.L3
	cmp	BYTE PTR 2[r9], 0
	jne	.L3
.L2:
	mov	r12d, DWORD PTR S_OK[rip]
.L59:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L24:
	.cfi_restore_state
	mov	rdx, r9
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	al, 58
	jne	.L9
.L10:
	movzx	eax, BYTE PTR 1[rdx]
	lea	rcx, 1[rdx]
	cmp	al, 32
	jne	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	movzx	eax, BYTE PTR 1[rcx]
	add	rcx, 1
	cmp	al, 32
	je	.L13
.L12:
	test	al, al
	je	.L9
	movzx	eax, BYTE PTR 1[rcx]
	lea	rbx, 1[rcx]
	cmp	al, 13
	je	.L21
	test	al, al
	je	.L21
	.p2align 4,,10
	.p2align 3
.L15:
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	test	al, al
	je	.L25
	cmp	al, 13
	jne	.L15
.L25:
	mov	r8d, ebx
	sub	r8d, ecx
.L14:
	sub	rdx, r9
	mov	rdi, rbp
	mov	rsi, r9
	call	set_http_header@PLT
	mov	edi, eax
	mov	r12d, eax
	call	FAILED@PLT
	test	rax, rax
	jne	.L1
	movzx	eax, BYTE PTR [rbx]
	mov	r9, rbx
	cmp	al, 13
	je	.L58
.L17:
	test	al, al
	jne	.L19
	mov	r12d, DWORD PTR S_OK[rip]
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L57:
	movzx	eax, BYTE PTR 2[rbx]
	add	r9, 2
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r8d, 1
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	parse_headers, .-parse_headers
	.comm	S_OK,4,4
	.comm	E_FAIL,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_navigate.c_parse_headers.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_headers, %function
parse_headers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldrb	r3, [r0]	@ zero_extendqisi2
	sub	sp, sp, #8
	cmp	r3, #0
	beq	.L2
	mov	r5, r1
.L17:
	cmp	r3, #13
	beq	.L16
.L3:
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r2, r0
	cmp	r3, #58
	cmpne	r3, #0
	bne	.L5
	b	.L6
.L7:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #58
	beq	.L6
.L5:
	cmp	r3, #13
	bne	.L7
.L8:
	ldr	r3, .L43
	ldr	r6, [r3]
.L1:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L41:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	cmp	r3, #10
	movne	r0, r4
	beq	.L40
.L16:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldrb	r3, [r0, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L43+4
	ldr	r6, [r3]
.L42:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	cmp	r3, #58
	bne	.L8
	ldrb	ip, [r2, #1]	@ zero_extendqisi2
	add	r3, r2, #1
	cmp	ip, #32
	bne	.L11
.L12:
	ldrb	ip, [r3, #1]!	@ zero_extendqisi2
	cmp	ip, #32
	beq	.L12
.L11:
	cmp	ip, #0
	beq	.L8
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	add	r4, r3, #1
	cmp	r1, #13
	cmpne	r1, #0
	beq	.L19
.L14:
	ldrb	ip, [r4, #1]!	@ zero_extendqisi2
	cmp	ip, #0
	cmpne	ip, #13
	bne	.L14
	sub	r1, r4, r3
.L13:
	sub	r2, r2, r0
	str	r1, [sp]
	mov	r1, r0
	mov	r0, r5
	bl	set_http_header
	mov	r6, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L1
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #13
	movne	r0, r4
	beq	.L41
.L15:
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L43+4
	ldr	r6, [r3]
	b	.L42
.L40:
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	add	r0, r4, #2
	b	.L15
.L19:
	mov	r1, #1
	b	.L13
.L44:
	.align	2
.L43:
	.word	E_FAIL
	.word	S_OK
	.size	parse_headers, .-parse_headers
	.comm	S_OK,4,4
	.comm	E_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
