	.file	"extr_http.c_evhttp_parse_firstline_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evhttp_parse_firstline_
	.type	evhttp_parse_firstline_, @function
evhttp_parse_firstline_:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r13
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR EVBUFFER_EOL_CRLF[rip]
	mov	r14d, DWORD PTR ALL_DATA_READ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	call	evbuffer_readln@PLT
	test	rax, rax
	je	.L16
	mov	r12, rax
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR [rsp]
	test	rax, rax
	je	.L5
	cmp	QWORD PTR [rax], rdx
	jb	.L17
.L5:
	mov	eax, DWORD PTR 8[rbp]
	mov	QWORD PTR 0[rbp], rdx
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L7
	mov	rsi, r12
	mov	rdi, rbp
	call	evhttp_parse_request_line@PLT
	cmp	eax, -1
	cmove	r14d, DWORD PTR DATA_CORRUPTED[rip]
.L8:
	mov	rdi, r12
	call	mm_free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14d, DWORD PTR DATA_CORRUPTED[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, r12
	mov	rdi, rbp
	call	evhttp_parse_response_line@PLT
	cmp	eax, -1
	cmove	r14d, DWORD PTR DATA_CORRUPTED[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	QWORD PTR 16[rbp], 0
	je	.L3
	mov	rdi, r13
	call	evbuffer_get_length@PLT
	mov	r8, rax
	mov	rax, QWORD PTR 16[rbp]
	cmp	r8, QWORD PTR [rax]
	jbe	.L3
.L14:
	mov	r14d, DWORD PTR DATA_TOO_LONG[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14d, DWORD PTR MORE_DATA_EXPECTED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	call	mm_free@PLT
	jmp	.L14
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	evhttp_parse_firstline_, .-evhttp_parse_firstline_
	.comm	MORE_DATA_EXPECTED,4,4
	.comm	EVBUFFER_EOL_CRLF,4,4
	.comm	DATA_TOO_LONG,4,4
	.comm	DATA_CORRUPTED,4,4
	.comm	ALL_DATA_READ,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_http.c_evhttp_parse_firstline_.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	evhttp_parse_firstline_
	.syntax unified
	.arm
	.fpu softvfp
	.type	evhttp_parse_firstline_, %function
evhttp_parse_firstline_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L23
	ldr	r3, .L23+4
	sub	sp, sp, #12
	ldr	ip, .L23+8
	mov	r4, r0
	mov	r5, r1
	mov	r0, r1
	ldr	r2, [r2]
	mov	r1, sp
	ldr	r7, [r3]
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	evbuffer_readln
	subs	r6, r0, #0
	ldr	r3, [r4, #8]
	beq	.L19
	cmp	r3, #0
	ldr	r2, [sp]
	beq	.L5
	ldr	r3, [r3]
	cmp	r3, r2
	bcc	.L20
.L5:
	ldr	r3, [r4, #4]
	str	r2, [r4]
	cmp	r3, #128
	beq	.L6
	cmp	r3, #129
	beq	.L21
.L7:
	ldr	r3, .L23+12
	ldr	r7, [r3]
.L8:
	mov	r0, r6
	bl	mm_free
.L1:
	ldr	r3, .L23+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L21:
	mov	r0, r4
	mov	r1, r6
	bl	evhttp_parse_request_line
	cmn	r0, #1
	bne	.L8
	b	.L7
.L6:
	mov	r0, r4
	mov	r1, r6
	bl	evhttp_parse_response_line
	cmn	r0, #1
	bne	.L8
	b	.L7
.L19:
	cmp	r3, #0
	beq	.L3
	mov	r0, r5
	bl	evbuffer_get_length
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r0, r3
	bls	.L3
.L17:
	ldr	r3, .L23+16
	ldr	r7, [r3]
	b	.L1
.L3:
	ldr	r3, .L23+20
	ldr	r7, [r3]
	b	.L1
.L20:
	bl	mm_free
	b	.L17
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	EVBUFFER_EOL_CRLF
	.word	ALL_DATA_READ
	.word	.LC0
	.word	DATA_CORRUPTED
	.word	DATA_TOO_LONG
	.word	MORE_DATA_EXPECTED
	.size	evhttp_parse_firstline_, .-evhttp_parse_firstline_
	.comm	MORE_DATA_EXPECTED,4,4
	.comm	EVBUFFER_EOL_CRLF,4,4
	.comm	DATA_TOO_LONG,4,4
	.comm	DATA_CORRUPTED,4,4
	.comm	ALL_DATA_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
