	.file	"extr_regress_http.c_http_chunked_errorcb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Transfer-Encoding"
.LC1:
	.string	"chunked"
.LC2:
	.string	"Connection"
.LC3:
	.string	"close"
.LC4:
	.string	"d"
.LC5:
	.string	"This is funny"
.LC6:
	.string	"12"
.LC7:
	.string	"but not hilarious."
.LC8:
	.string	"8"
.LC9:
	.string	"bwv 1052."
.LC10:
	.string	"0"
	.text
	.p2align 4
	.type	http_chunked_errorcb, @function
http_chunked_errorcb:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR test_ok[rip]
	test	eax, eax
	je	.L3
	mov	DWORD PTR test_ok[rip], -1
	test	WORD PTR BEV_EVENT_EOF[rip], si
	jne	.L38
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	esi, esi
	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
	jmp	event_base_loopexit@PLT
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	xor	esi, esi
	mov	r12, rdi
	xor	edi, edi
	call	evhttp_request_new@PLT
	mov	rdi, r12
	mov	r13, rax
	call	bufferevent_get_input@PLT
	mov	rdi, r13
	mov	esi, eax
	call	evhttp_parse_firstline_@PLT
	cmp	eax, DWORD PTR ALL_DATA_READ[rip]
	je	.L39
.L6:
	test	r13, r13
	je	.L3
	mov	rdi, r13
	call	evhttp_request_free@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	rdi, r13
	mov	esi, eax
	call	evhttp_parse_headers_@PLT
	cmp	eax, DWORD PTR ALL_DATA_READ[rip]
	jne	.L6
	mov	rdi, r13
	call	evhttp_request_get_input_headers@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	evhttp_find_header@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L6
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, r13
	call	evhttp_request_get_input_headers@PLT
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	evhttp_find_header@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L6
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	r14d, DWORD PTR EVBUFFER_EOL_CRLF[rip]
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	xor	esi, esi
	mov	edx, r14d
	mov	edi, eax
	call	evbuffer_readln@PLT
	mov	r14, rax
	test	rax, rax
	je	.L6
	mov	rdi, rax
	lea	rsi, .LC4[rip]
	call	strcmp@PLT
	mov	rdi, r14
	test	rax, rax
	jne	.L36
	call	free@PLT
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	esi, 13
	mov	edi, eax
	call	evbuffer_pullup@PLT
	mov	edx, 13
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	esi, 15
	mov	edi, eax
	call	evbuffer_drain@PLT
	mov	r14d, DWORD PTR EVBUFFER_EOL_CRLF[rip]
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	xor	esi, esi
	mov	edx, r14d
	mov	edi, eax
	call	evbuffer_readln@PLT
	mov	r14, rax
	test	rax, rax
	je	.L6
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, r14
	call	free@PLT
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	esi, 18
	mov	edi, eax
	call	evbuffer_pullup@PLT
	mov	edx, 18
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	esi, 20
	mov	edi, eax
	call	evbuffer_drain@PLT
	mov	r14d, DWORD PTR EVBUFFER_EOL_CRLF[rip]
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	xor	esi, esi
	mov	edx, r14d
	mov	edi, eax
	call	evbuffer_readln@PLT
	mov	r14, rax
	test	rax, rax
	je	.L6
	mov	rdi, rax
	lea	rsi, .LC8[rip]
	call	strcmp@PLT
	mov	rdi, r14
	test	rax, rax
	jne	.L36
	call	free@PLT
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	esi, 8
	mov	edi, eax
	call	evbuffer_pullup@PLT
	mov	edx, 8
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	rax, rax
	jne	.L6
	mov	rdi, r12
	call	bufferevent_get_input@PLT
	mov	esi, 10
	mov	edi, eax
	call	evbuffer_drain@PLT
	mov	rdi, r12
	mov	r14d, DWORD PTR EVBUFFER_EOL_CRLF[rip]
	call	bufferevent_get_input@PLT
	xor	esi, esi
	mov	edi, eax
	mov	edx, r14d
	call	evbuffer_readln@PLT
	mov	r12, rax
	test	rax, rax
	je	.L6
	mov	rdi, rax
	lea	rsi, .LC10[rip]
	call	strcmp@PLT
	mov	rdi, r12
	test	rax, rax
	jne	.L36
	call	free@PLT
	mov	DWORD PTR test_ok[rip], 2
	jmp	.L6
.L36:
	call	free@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	http_chunked_errorcb, .-http_chunked_errorcb
	.comm	test_ok,4,4
	.comm	EVBUFFER_EOL_CRLF,4,4
	.comm	BEV_EVENT_EOF,2,2
	.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_regress_http.c_http_chunked_errorcb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Transfer-Encoding\000"
	.align	2
.LC1:
	.ascii	"chunked\000"
	.align	2
.LC2:
	.ascii	"Connection\000"
	.align	2
.LC3:
	.ascii	"close\000"
	.align	2
.LC4:
	.ascii	"This is funny\000"
	.align	2
.LC5:
	.ascii	"12\000"
	.align	2
.LC6:
	.ascii	"but not hilarious.\000"
	.align	2
.LC7:
	.ascii	"8\000"
	.align	2
.LC8:
	.ascii	"bwv 1052.\000"
	.align	2
.LC9:
	.ascii	"0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	http_chunked_errorcb, %function
http_chunked_errorcb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L43
	mov	r4, r2
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L3
	mvn	r2, #0
	ldr	r3, .L43+4
	str	r2, [r6]
	ldrh	r3, [r3]
	tst	r1, r3
	bne	.L40
.L3:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	event_base_loopexit
.L40:
	mov	r1, #0
	mov	r5, r0
	mov	r0, r1
	bl	evhttp_request_new
	mov	r7, r0
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, r0
	mov	r0, r7
	bl	evhttp_parse_firstline_
	ldr	r8, .L43+8
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L41
.L6:
	cmp	r7, #0
	beq	.L3
	mov	r0, r7
	bl	evhttp_request_free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #0
	b	event_base_loopexit
.L41:
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, r0
	mov	r0, r7
	bl	evhttp_parse_headers_
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L6
	mov	r0, r7
	bl	evhttp_request_get_input_headers
	ldr	r1, .L43+12
	bl	evhttp_find_header
	cmp	r0, #0
	beq	.L6
	ldr	r1, .L43+16
	bl	strcmp
	cmp	r0, #0
	bne	.L6
	mov	r0, r7
	bl	evhttp_request_get_input_headers
	ldr	r1, .L43+20
	bl	evhttp_find_header
	cmp	r0, #0
	beq	.L6
	ldr	r1, .L43+24
	bl	strcmp
	subs	r8, r0, #0
	bne	.L6
	ldr	r9, .L43+28
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, r8
	ldr	r2, [r9]
	bl	evbuffer_readln
	cmp	r0, #0
	beq	.L6
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #100
	beq	.L42
.L38:
	bl	free
	b	.L6
.L42:
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L38
	bl	free
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, #13
	bl	evbuffer_pullup
	mov	r2, #13
	ldr	r1, .L43+32
	bl	strncmp
	subs	r8, r0, #0
	bne	.L6
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, #15
	bl	evbuffer_drain
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, r8
	ldr	r2, [r9]
	bl	evbuffer_readln
	subs	r8, r0, #0
	beq	.L6
	ldr	r1, .L43+36
	bl	strcmp
	cmp	r0, #0
	bne	.L6
	mov	r0, r8
	bl	free
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, #18
	bl	evbuffer_pullup
	mov	r2, #18
	ldr	r1, .L43+40
	bl	strncmp
	subs	r8, r0, #0
	bne	.L6
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, #20
	bl	evbuffer_drain
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, r8
	ldr	r2, [r9]
	bl	evbuffer_readln
	subs	r8, r0, #0
	beq	.L6
	ldr	r1, .L43+44
	bl	strcmp
	cmp	r0, #0
	mov	r0, r8
	bne	.L38
	bl	free
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, #8
	bl	evbuffer_pullup
	mov	r2, #8
	ldr	r1, .L43+48
	bl	strncmp
	subs	r8, r0, #0
	bne	.L6
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, #10
	bl	evbuffer_drain
	mov	r0, r5
	bl	bufferevent_get_input
	mov	r1, r8
	ldr	r2, [r9]
	bl	evbuffer_readln
	subs	r5, r0, #0
	beq	.L6
	ldr	r1, .L43+52
	bl	strcmp
	cmp	r0, #0
	mov	r0, r5
	bne	.L38
	bl	free
	mov	r3, #2
	str	r3, [r6]
	b	.L6
.L44:
	.align	2
.L43:
	.word	test_ok
	.word	BEV_EVENT_EOF
	.word	ALL_DATA_READ
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	EVBUFFER_EOL_CRLF
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	http_chunked_errorcb, .-http_chunked_errorcb
	.comm	test_ok,4,4
	.comm	EVBUFFER_EOL_CRLF,4,4
	.comm	BEV_EVENT_EOF,2,2
	.comm	ALL_DATA_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
