	.file	"extr_regress_http.c_http_terminate_chunked_test_impl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/test"
.LC1:
	.string	"127.0.0.1"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"GET /test HTTP/1.1\r\nHost: some\r\n\r\n"
	.text
	.p2align 4
	.type	http_terminate_chunked_test_impl, @function
http_terminate_chunked_test_impl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR [rbx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rdi, 12[rsp]
	mov	DWORD PTR 12[rsp], 0
	lea	r14, 16[rsp]
	call	http_setup@PLT
	lea	rsi, .LC0[rip]
	mov	QWORD PTR test_ok[rip], 0
	mov	rdi, rax
	mov	r12, rax
	call	evhttp_del_cb@PLT
	mov	edx, DWORD PTR terminate_chunked_cb[rip]
	mov	rcx, r14
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	evhttp_set_cb@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	tt_assert@PLT
	mov	esi, DWORD PTR 12[rsp]
	lea	rdi, .LC1[rip]
	call	http_connect@PLT
	xor	edi, edi
	cmp	QWORD PTR EVUTIL_INVALID_SOCKET[rip], rax
	setne	dil
	mov	rbp, rax
	call	tt_assert@PLT
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	mov	rsi, rbp
	call	bufferevent_socket_new@PLT
	mov	r8d, DWORD PTR [rbx]
	mov	ecx, DWORD PTR http_errorcb[rip]
	mov	edx, DWORD PTR http_writecb[rip]
	mov	esi, DWORD PTR terminate_readcb[rip]
	mov	rdi, rax
	mov	r13, rax
	call	bufferevent_setcb@PLT
	xor	esi, esi
	mov	edx, 40
	mov	rdi, r14
	call	memset@PLT
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 32[rsp], r13
	lea	rdi, .LC2[rip]
	mov	QWORD PTR 40[rsp], rbp
	mov	DWORD PTR 48[rsp], eax
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 24[rsp], r15d
	call	strlen@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	lea	r13, 8[rsp]
	mov	edx, eax
	call	bufferevent_write@PLT
	mov	rdi, r13
	call	evutil_timerclear@PLT
	mov	ecx, DWORD PTR terminate_chunked_client[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r9, r13
	mov	edx, DWORD PTR EV_TIMEOUT[rip]
	mov	r8, r14
	mov	esi, -1
	mov	DWORD PTR 8[rsp], 10000
	call	event_base_once@PLT
	mov	edi, DWORD PTR [rbx]
	call	event_base_dispatch@PLT
	cmp	QWORD PTR 16[rsp], 0
	jne	.L2
	mov	QWORD PTR test_ok[rip], 0
.L2:
	test	rbp, rbp
	js	.L3
	mov	rdi, rbp
	call	evutil_closesocket@PLT
.L3:
	test	r12, r12
	je	.L1
	mov	rdi, r12
	call	evhttp_free@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L11:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	http_terminate_chunked_test_impl, .-http_terminate_chunked_test_impl
	.comm	test_ok,8,8
	.comm	terminate_readcb,4,4
	.comm	terminate_chunked_client,4,4
	.comm	terminate_chunked_cb,4,4
	.comm	http_writecb,4,4
	.comm	http_errorcb,4,4
	.comm	EV_TIMEOUT,4,4
	.comm	EVUTIL_INVALID_SOCKET,8,8
	.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_terminate_chunked_test_impl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/test\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"GET /test HTTP/1.1\015\012Host: some\015\012\015\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	http_terminate_chunked_test_impl, %function
http_terminate_chunked_test_impl:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
.L2:
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r3, r1
	mov	r6, #0
	sub	sp, sp, #52
	ldr	lr, .L12
	mov	r4, r0
	str	r3, [sp, #12]
	mov	r2, r6
	ldr	r1, [r0]
	add	r0, sp, #20
	ldr	lr, [lr]
	str	lr, [sp, #44]
	mov	lr,#0
	str	r6, [sp, #20]
	bl	http_setup
	mov	r7, r0
	ldr	fp, .L12+4
	ldr	r1, .L12+8
	str	r6, [fp]
	bl	evhttp_del_cb
	ldr	r3, .L12+12
	add	r10, sp, #24
	ldr	r2, [r3]
	ldr	r1, .L12+8
	mov	r3, r10
	mov	r0, r7
	bl	evhttp_set_cb
	clz	r0, r0
	lsr	r0, r0, #5
	bl	tt_assert
	ldr	r1, [sp, #20]
	ldr	r0, .L12+16
	bl	http_connect
	mov	r5, r0
	ldr	r3, .L12+20
	add	r9, sp, #16
	ldr	r0, [r3]
	subs	r0, r0, r5
	movne	r0, #1
	bl	tt_assert
	mov	r2, r6
	mov	r1, r5
	ldr	r0, [r4]
	bl	bufferevent_socket_new
	mov	r8, r0
	ldr	r1, [r4]
	ldr	r3, .L12+24
	str	r1, [sp]
	ldr	r2, .L12+28
	ldr	r1, .L12+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	bufferevent_setcb
	ldr	r3, [r4]
	ldr	ip, [sp, #12]
	mov	r2, #34
	ldr	r1, .L12+36
	mov	r0, r8
	str	ip, [sp, #28]
	str	r3, [sp, #40]
	str	r5, [sp, #36]
	str	r8, [sp, #32]
	str	r6, [sp, #24]
	bl	bufferevent_write
	mov	r0, r9
	bl	evutil_timerclear
	ldr	r3, .L12+40
	ldr	r2, .L12+44
	str	r10, [sp]
	str	r9, [sp, #4]
	ldr	ip, .L12+48
	ldr	r3, [r3]
	mvn	r1, #0
	ldr	r2, [r2]
	ldr	r0, [r4]
	str	ip, [sp, #16]
	bl	event_base_once
	ldr	r0, [r4]
	bl	event_base_dispatch
	ldr	r3, [sp, #24]
	cmp	r3, r6
	streq	r3, [fp]
	cmp	r5, #0
	blt	.L3
	mov	r0, r5
	bl	evutil_closesocket
.L3:
	cmp	r7, #0
	beq	.L1
	mov	r0, r7
	bl	evhttp_free
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	test_ok
	.word	.LC0
	.word	terminate_chunked_cb
	.word	.LC1
	.word	EVUTIL_INVALID_SOCKET
	.word	http_errorcb
	.word	http_writecb
	.word	terminate_readcb
	.word	.LC2
	.word	terminate_chunked_client
	.word	EV_TIMEOUT
	.word	10000
	.size	http_terminate_chunked_test_impl, .-http_terminate_chunked_test_impl
	.comm	test_ok,4,4
	.comm	terminate_readcb,4,4
	.comm	terminate_chunked_client,4,4
	.comm	terminate_chunked_cb,4,4
	.comm	http_writecb,4,4
	.comm	http_errorcb,4,4
	.comm	EV_TIMEOUT,4,4
	.comm	EVUTIL_INVALID_SOCKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
