	.file	"extr_regress_buffer.c_addfile_test_readcb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"read"
	.text
	.p2align 4
	.type	addfile_test_readcb, @function
addfile_test_readcb:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
.L3:
	mov	edx, 1024
	mov	esi, ebp
	mov	rdi, rbx
	call	evbuffer_read@PLT
	test	eax, eax
	jg	.L11
	jne	.L12
.L5:
	cmp	QWORD PTR addfile_test_done_writing[rip], 0
	je	.L1
	mov	rax, QWORD PTR addfile_test_total_written[rip]
	cmp	QWORD PTR addfile_test_total_read[rip], rax
	jge	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cdqe
	add	rax, QWORD PTR addfile_test_total_read[rip]
	mov	rdi, rax
	mov	QWORD PTR addfile_test_total_read[rip], rax
	call	TT_BLATHER@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, ebp
	call	evutil_socket_geterror@PLT
	mov	edi, eax
	call	EVUTIL_ERR_RW_RETRIABLE@PLT
	test	eax, eax
	jne	.L5
	lea	rdi, .LC0[rip]
	call	tt_fail_perror@PLT
	mov	edi, DWORD PTR addfile_test_event_base[rip]
	xor	esi, esi
	call	event_base_loopexit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR addfile_test_event_base[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	event_base_loopexit@PLT
	.cfi_endproc
.LFE0:
	.size	addfile_test_readcb, .-addfile_test_readcb
	.comm	addfile_test_total_written,8,8
	.comm	addfile_test_total_read,8,8
	.comm	addfile_test_event_base,4,4
	.comm	addfile_test_done_writing,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_buffer.c_addfile_test_readcb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	addfile_test_readcb, %function
addfile_test_readcb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r2
	ldr	r6, .L16
.L3:
	mov	r2, #1024
	mov	r1, r4
	mov	r0, r5
	bl	evbuffer_read
	cmp	r0, #0
	bgt	.L14
	bne	.L15
.L5:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, .L16
	ldr	r3, .L16+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	poplt	{r4, r5, r6, pc}
	ldr	r3, .L16+12
	mov	r1, #0
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	event_base_loopexit
.L14:
	ldr	r3, [r6]
	add	r0, r0, r3
	str	r0, [r6]
	bl	TT_BLATHER
	b	.L3
.L15:
	mov	r0, r4
	bl	evutil_socket_geterror
	bl	EVUTIL_ERR_RW_RETRIABLE
	subs	r4, r0, #0
	bne	.L5
	ldr	r0, .L16+16
	bl	tt_fail_perror
	ldr	r3, .L16+12
	mov	r1, r4
	ldr	r0, [r3]
	bl	event_base_loopexit
	b	.L5
.L17:
	.align	2
.L16:
	.word	addfile_test_total_read
	.word	addfile_test_done_writing
	.word	addfile_test_total_written
	.word	addfile_test_event_base
	.word	.LC0
	.size	addfile_test_readcb, .-addfile_test_readcb
	.comm	addfile_test_total_written,4,4
	.comm	addfile_test_total_read,4,4
	.comm	addfile_test_event_base,4,4
	.comm	addfile_test_done_writing,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
