	.file	"extr_regress_bufferevent.c_test_bufferevent_pair_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	test_bufferevent_pair_flush, @function
test_bufferevent_pair_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 16[rsp]
	mov	DWORD PTR 12[rsp], 0
	call	bufferevent_pair_new@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	tt_assert@PLT
	mov	r12, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR EV_WRITE[rip]
	mov	rbp, QWORD PTR 24[rsp]
	mov	rdi, r12
	call	bufferevent_enable@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	tt_assert@PLT
	mov	esi, DWORD PTR EV_READ[rip]
	mov	rdi, rbp
	call	bufferevent_enable@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	tt_assert@PLT
	mov	ecx, DWORD PTR pair_flush_eventcb[rip]
	xor	edx, edx
	xor	esi, esi
	lea	r8, 12[rsp]
	mov	rdi, rbp
	call	bufferevent_setcb@PLT
	mov	edx, DWORD PTR BEV_FINISHED[rip]
	mov	esi, DWORD PTR EV_WRITE[rip]
	mov	rdi, r12
	call	bufferevent_flush@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR EVLOOP_ONCE[rip]
	call	event_base_loop@PLT
	xor	edi, edi
	mov	eax, DWORD PTR BEV_EVENT_READING[rip]
	or	eax, DWORD PTR BEV_EVENT_EOF[rip]
	cmp	eax, DWORD PTR 12[rsp]
	sete	dil
	call	tt_assert@PLT
	test	r12, r12
	je	.L2
	mov	rdi, r12
	call	bufferevent_free@PLT
.L2:
	test	rbp, rbp
	je	.L1
	mov	rdi, rbp
	call	bufferevent_free@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_bufferevent_pair_flush, .-test_bufferevent_pair_flush
	.comm	pair_flush_eventcb,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_READ,4,4
	.comm	EVLOOP_ONCE,4,4
	.comm	BEV_FINISHED,4,4
	.comm	BEV_EVENT_READING,4,4
	.comm	BEV_EVENT_EOF,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_bufferevent.c_test_bufferevent_pair_flush.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_bufferevent_pair_flush, %function
test_bufferevent_pair_flush:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	sub	sp, sp, #24
	ldr	r3, .L14
	add	r2, sp, #12
	mov	r1, r7
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	str	r7, [sp, #8]
	bl	bufferevent_pair_new
	clz	r0, r0
	lsr	r0, r0, #5
	bl	tt_assert
	ldr	r8, .L14+4
	ldr	r6, [sp, #12]
	ldr	r1, [r8]
	mov	r0, r6
	ldr	r5, [sp, #16]
	bl	bufferevent_enable
	clz	r0, r0
	lsr	r0, r0, #5
	bl	tt_assert
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	bufferevent_enable
	clz	r0, r0
	lsr	r0, r0, #5
	bl	tt_assert
	ldr	r3, .L14+12
	add	ip, sp, #8
	ldr	r3, [r3]
	mov	r2, r7
	str	ip, [sp]
	mov	r1, r7
	mov	r0, r5
	bl	bufferevent_setcb
	ldr	r3, .L14+16
	ldr	r1, [r8]
	ldr	r2, [r3]
	mov	r0, r6
	bl	bufferevent_flush
	ldr	r3, .L14+20
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	event_base_loop
	ldr	r3, .L14+24
	ldr	r2, .L14+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [sp, #8]
	orr	r3, r3, r2
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	tt_assert
	cmp	r6, r7
	beq	.L2
	mov	r0, r6
	bl	bufferevent_free
.L2:
	cmp	r5, #0
	beq	.L1
	mov	r0, r5
	bl	bufferevent_free
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	EV_WRITE
	.word	EV_READ
	.word	pair_flush_eventcb
	.word	BEV_FINISHED
	.word	EVLOOP_ONCE
	.word	BEV_EVENT_READING
	.word	BEV_EVENT_EOF
	.size	test_bufferevent_pair_flush, .-test_bufferevent_pair_flush
	.comm	pair_flush_eventcb,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_READ,4,4
	.comm	EVLOOP_ONCE,4,4
	.comm	BEV_FINISHED,4,4
	.comm	BEV_EVENT_READING,4,4
	.comm	BEV_EVENT_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
