	.file	"278532.c"
	.intel_syntax noprefix
	.text
	.globl	asyio_prep_preadv
	.type	asyio_prep_preadv, @function
asyio_prep_preadv:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	mov	QWORD PTR -32[rbp], r8
	mov	DWORD PTR -36[rbp], r9d
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 16[rax], 7
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 18[rax], 0
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 56[rax], 1
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 60[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	asyio_prep_preadv, .-asyio_prep_preadv
	.globl	asyio_prep_pwritev
	.type	asyio_prep_pwritev, @function
asyio_prep_pwritev:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	mov	QWORD PTR -32[rbp], r8
	mov	DWORD PTR -36[rbp], r9d
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 16[rax], 8
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 18[rax], 0
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 56[rax], 1
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 60[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	asyio_prep_pwritev, .-asyio_prep_pwritev
	.globl	asyio_prep_pread
	.type	asyio_prep_pread, @function
asyio_prep_pread:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	mov	QWORD PTR -32[rbp], r8
	mov	DWORD PTR -36[rbp], r9d
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 18[rax], 0
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 56[rax], 1
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 60[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	asyio_prep_pread, .-asyio_prep_pread
	.globl	asyio_prep_pwrite
	.type	asyio_prep_pwrite, @function
asyio_prep_pwrite:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -16[rbp], ecx
	mov	QWORD PTR -32[rbp], r8
	mov	DWORD PTR -36[rbp], r9d
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 16[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 18[rax], 0
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 56[rax], 1
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 60[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	asyio_prep_pwrite, .-asyio_prep_pwrite
	.globl	io_setup
	.type	io_setup, @function
io_setup:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 206
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	io_setup, .-io_setup
	.globl	io_destroy
	.type	io_destroy, @function
io_destroy:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 207
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	io_destroy, .-io_destroy
	.globl	io_submit
	.type	io_submit, @function
io_submit:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 209
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	io_submit, .-io_submit
	.globl	io_cancel
	.type	io_cancel, @function
io_cancel:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 210
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	io_cancel, .-io_cancel
	.globl	io_getevents
	.type	io_getevents, @function
io_getevents:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	rdi, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	rsi, rax
	mov	edi, 208
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	io_getevents, .-io_getevents
	.globl	eventfd
	.type	eventfd, @function
eventfd:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 284
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	eventfd, .-eventfd
	.section	.rodata
.LC0:
	.string	"poll"
.LC1:
	.string	"no results completed\n"
	.text
	.globl	waitasync
	.type	waitasync, @function
waitasync:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	mov	WORD PTR -12[rbp], 1
	mov	WORD PTR -10[rbp], 0
	mov	edx, DWORD PTR -24[rbp]
	lea	rax, -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	test	eax, eax
	jns	.L18
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L21
.L18:
	movzx	eax, WORD PTR -10[rbp]
	cwde
	and	eax, 1
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L21
.L20:
	mov	eax, 1
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	waitasync, .-waitasync
	.section	.rodata
.LC2:
	.string	"iocb alloc"
.LC3:
	.string	"submitting read request ...\n"
.LC4:
	.string	"io_submit"
.LC5:
	.string	"waiting ... "
.LC6:
	.string	"read"
.LC7:
	.string	"done! %llu\n"
	.align 8
.LC8:
	.string	"test_write got %ld/%ld results so far\n"
	.text
	.globl	test_read
	.type	test_read, @function
test_read:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	QWORD PTR -120[rbp], rdx
	mov	DWORD PTR -112[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 6
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L24
	cmp	QWORD PTR -48[rbp], 0
	jne	.L25
.L24:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L37
.L25:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 6
	mov	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, QWORD PTR -80[rbp]
	sub	rax, 1
	sal	rax, 12
	mov	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rdi, [rdx+rax]
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	r9d, edx
	mov	r8, rcx
	mov	ecx, 4096
	lea	rdx, buf.3[rip]
	mov	esi, eax
	call	asyio_prep_pread
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 6
	mov	rcx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -80[rbp], 1
.L27:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jl	.L28
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	io_submit
	test	rax, rax
	jg	.L29
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L37
.L29:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L30
.L36:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, -1
	mov	edi, eax
	call	waitasync
	mov	QWORD PTR -88[rbp], 0
	lea	rcx, -88[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 8
	je	.L31
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L31:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L32
.L35:
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 128
	cmp	rax, 128
	cmova	rax, rdx
	mov	rsi, rax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8, rdx
	lea	rcx, events.2[rip]
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	io_getevents
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jle	.L32
	mov	QWORD PTR -72[rbp], 0
	jmp	.L33
.L34:
	add	QWORD PTR -72[rbp], 1
.L33:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jl	.L34
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L32:
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	jne	.L35
.L30:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jl	.L36
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
.L37:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	test_read, .-test_read
	.section	.rodata
.LC9:
	.string	"submitting write request ...\n"
	.text
	.globl	test_write
	.type	test_write, @function
test_write:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	QWORD PTR -120[rbp], rdx
	mov	DWORD PTR -112[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], 0
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, eax
	lea	rcx, buf.1[rip]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -80[rbp], 1
.L40:
	cmp	QWORD PTR -80[rbp], 4095
	jle	.L41
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 4095[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 12
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 6
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L42
	cmp	QWORD PTR -48[rbp], 0
	jne	.L43
.L42:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L55
.L43:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L45
.L46:
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 6
	mov	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, QWORD PTR -80[rbp]
	sub	rax, 1
	sal	rax, 12
	mov	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	lea	rdi, [rdx+rax]
	mov	edx, DWORD PTR -112[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	r9d, edx
	mov	r8, rcx
	mov	ecx, 4096
	lea	rdx, buf.1[rip]
	mov	esi, eax
	call	asyio_prep_pwrite
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 6
	mov	rcx, rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	add	QWORD PTR -80[rbp], 1
.L45:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jl	.L46
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	io_submit
	test	rax, rax
	jg	.L47
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L55
.L47:
	mov	QWORD PTR -80[rbp], 0
	jmp	.L48
.L54:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, -1
	mov	edi, eax
	call	waitasync
	mov	QWORD PTR -88[rbp], 0
	lea	rcx, -88[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 8
	je	.L49
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L49:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L50
.L53:
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 128
	cmp	rax, 128
	cmova	rax, rdx
	mov	rsi, rax
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r8, rdx
	lea	rcx, events.0[rip]
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	io_getevents
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jle	.L50
	mov	QWORD PTR -72[rbp], 0
	jmp	.L51
.L52:
	add	QWORD PTR -72[rbp], 1
.L51:
	mov	rax, QWORD PTR -72[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jl	.L52
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L50:
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	jne	.L53
.L48:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jl	.L54
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
.L55:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	test_write, .-test_write
	.section	.rodata
.LC10:
	.string	"/tmp/eventfd-aio-test.data"
.LC11:
	.string	"creating an eventfd ...\n"
.LC12:
	.string	"eventfd"
.LC13:
	.string	"done! eventfd = %d\n"
.LC14:
	.string	"io_setup"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	lea	rax, .LC10[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	eventfd
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L58
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L62
.L58:
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -32[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	mov	edi, 5376
	call	io_setup
	test	rax, rax
	je	.L60
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, 3
	jmp	.L62
.L60:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 420
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L61
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 4
	jmp	.L62
.L61:
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 20971520
	mov	edi, eax
	call	ftruncate@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	ecx, edx
	mov	edx, 20971520
	mov	rdi, rax
	call	test_write
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	ecx, edx
	mov	edx, 20971520
	mov	rdi, rax
	call	test_read
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	io_destroy
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	remove@PLT
	mov	eax, 0
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.local	buf.3
	.comm	buf.3,4096,32
	.local	events.2
	.comm	events.2,4096,32
	.local	buf.1
	.comm	buf.1,4096,32
	.local	events.0
	.comm	events.0,4096,32
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"278532.c"
	.text
	.align	2
	.global	asyio_prep_preadv
	.syntax unified
	.arm
	.fpu softvfp
	.type	asyio_prep_preadv, %function
asyio_prep_preadv:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r2, #64
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #7
	strh	r2, [r3, #16]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #18]	@ movhi
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	str	r2, [r1, #40]
	str	r3, [r1, #44]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #56]
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #60]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	asyio_prep_preadv, .-asyio_prep_preadv
	.align	2
	.global	asyio_prep_pwritev
	.syntax unified
	.arm
	.fpu softvfp
	.type	asyio_prep_pwritev, %function
asyio_prep_pwritev:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r2, #64
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #8
	strh	r2, [r3, #16]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #18]	@ movhi
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	str	r2, [r1, #40]
	str	r3, [r1, #44]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #56]
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #60]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	asyio_prep_pwritev, .-asyio_prep_pwritev
	.align	2
	.global	asyio_prep_pread
	.syntax unified
	.arm
	.fpu softvfp
	.type	asyio_prep_pread, %function
asyio_prep_pread:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r2, #64
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #16]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #18]	@ movhi
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	str	r2, [r1, #40]
	str	r3, [r1, #44]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #56]
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #60]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	asyio_prep_pread, .-asyio_prep_pread
	.align	2
	.global	asyio_prep_pwrite
	.syntax unified
	.arm
	.fpu softvfp
	.type	asyio_prep_pwrite, %function
asyio_prep_pwrite:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r2, #64
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strh	r2, [r3, #16]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strh	r2, [r3, #18]	@ movhi
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-8]
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	str	r2, [r1, #40]
	str	r3, [r1, #44]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #56]
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #60]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	asyio_prep_pwrite, .-asyio_prep_pwrite
	.align	2
	.global	io_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_setup, %function
io_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #243
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	io_setup, .-io_setup
	.align	2
	.global	io_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_destroy, %function
io_destroy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	mov	r0, #244
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	io_destroy, .-io_destroy
	.align	2
	.global	io_submit
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_submit, %function
io_submit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #246
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	io_submit, .-io_submit
	.align	2
	.global	io_cancel
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_cancel, %function
io_cancel:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #247
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	io_cancel, .-io_cancel
	.align	2
	.global	io_getevents
	.syntax unified
	.arm
	.fpu softvfp
	.type	io_getevents, %function
io_getevents:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #245
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	io_getevents, .-io_getevents
	.align	2
	.global	eventfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	eventfd, %function
eventfd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L17
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	351
	.size	eventfd, .-eventfd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"poll\000"
	.align	2
.LC1:
	.ascii	"no results completed\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	waitasync
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitasync, %function
waitasync:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	mov	r3, #1
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	sub	r3, fp, #16
	ldr	r2, [fp, #-28]
	mov	r1, #1
	mov	r0, r3
	bl	poll
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L25+4
	bl	perror
	mvn	r3, #0
	b	.L23
.L20:
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L25+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L25+12
	bl	fwrite
	mov	r3, #0
	b	.L23
.L22:
	mov	r3, #1
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	.LC0
	.word	stderr
	.word	.LC1
	.size	waitasync, .-waitasync
	.section	.rodata
	.align	2
.LC3:
	.ascii	"iocb alloc\000"
	.align	2
.LC4:
	.ascii	"submitting read request ...\012\000"
	.align	2
.LC5:
	.ascii	"io_submit\000"
	.align	2
.LC6:
	.ascii	"waiting ... \000"
	.align	2
.LC7:
	.ascii	"read\000"
	.align	2
.LC8:
	.ascii	"done! %llu\012\000"
	.align	2
.LC9:
	.ascii	"test_write got %ld/%ld results so far\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_read, %function
test_read:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #6
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L29
.L28:
	ldr	r0, .L45+4
	bl	perror
	mvn	r3, #0
	b	.L43
.L29:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L31
.L32:
	ldr	r3, [fp, #-68]
	lsl	r2, r3, #6
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r1, [fp, #-56]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-56]
	add	r0, r2, r3
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	sub	r3, r3, #1
	lsl	r3, r3, #12
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-84]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r3, #4096
	ldr	r2, .L45+8
	ldr	r1, [fp, #-76]
	bl	asyio_prep_pread
	ldr	r3, [fp, #-68]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-68]
	lsl	r1, r1, #6
	ldr	r0, [fp, #-56]
	add	r1, r0, r1
	adds	r6, r2, #1
	adc	r7, r3, #0
	stm	r1, {r6-r7}
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L31:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L32
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L45+16
	bl	fwrite
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-72]
	bl	io_submit
	mov	r3, r0
	cmp	r3, #0
	bgt	.L33
	ldr	r0, .L45+20
	bl	perror
	mvn	r3, #0
	b	.L43
.L33:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L34
.L42:
	ldr	r3, .L45+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L45+24
	bl	fwrite
	mvn	r1, #0
	ldr	r0, [fp, #-84]
	bl	waitasync
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	read
	mov	r3, r0
	cmp	r3, #8
	beq	.L35
	ldr	r0, .L45+28
	bl	perror
.L35:
	ldr	r3, .L45+12
	ldr	r0, [r3]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r1, .L45+32
	bl	fprintf
	b	.L36
.L41:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #128
	bhi	.L37
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	b	.L38
.L37:
	mov	r2, #128
.L38:
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, .L45+36
	mov	r1, #1
	ldr	r0, [fp, #-72]
	bl	io_getevents
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L36
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L39
.L40:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L39:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L40
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-48]
	mov	r2, r3
	asr	r3, r2, #31
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	ldr	r3, .L45+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-68]
	ldr	r1, .L45+40
	bl	fprintf
.L36:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L41
.L34:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L42
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r3, [fp, #-60]
.L43:
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC10
	.word	.LC3
	.word	buf.7157
	.word	stdout
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	events.7156
	.word	.LC9
	.size	test_read, .-test_read
	.section	.rodata
	.align	2
.LC11:
	.ascii	"submitting write request ...\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_write, %function
test_write:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L48
.L49:
	ldr	r3, [fp, #-68]
	and	r1, r3, #255
	ldr	r2, .L67+4
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L48:
	ldr	r3, [fp, #-68]
	cmp	r3, #4096
	blt	.L49
	ldr	r3, [fp, #-80]
	add	r2, r3, #4080
	add	r2, r2, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #12
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #6
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L51
.L50:
	ldr	r0, .L67+8
	bl	perror
	mvn	r3, #0
	b	.L65
.L51:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L53
.L54:
	ldr	r3, [fp, #-68]
	lsl	r2, r3, #6
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r1, [fp, #-56]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-68]
	lsl	r3, r3, #6
	ldr	r2, [fp, #-56]
	add	r0, r2, r3
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	sub	r3, r3, #1
	lsl	r3, r3, #12
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-84]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r3, #4096
	ldr	r2, .L67+4
	ldr	r1, [fp, #-76]
	bl	asyio_prep_pwrite
	ldr	r3, [fp, #-68]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-68]
	lsl	r1, r1, #6
	ldr	r0, [fp, #-56]
	add	r1, r0, r1
	adds	r6, r2, #1
	adc	r7, r3, #0
	stm	r1, {r6-r7}
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L53:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L54
	ldr	r3, .L67+12
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L67+16
	bl	fwrite
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-72]
	bl	io_submit
	mov	r3, r0
	cmp	r3, #0
	bgt	.L55
	ldr	r0, .L67+20
	bl	perror
	mvn	r3, #0
	b	.L65
.L55:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L56
.L64:
	ldr	r3, .L67+12
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L67+24
	bl	fwrite
	mvn	r1, #0
	ldr	r0, [fp, #-84]
	bl	waitasync
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	read
	mov	r3, r0
	cmp	r3, #8
	beq	.L57
	ldr	r0, .L67+28
	bl	perror
.L57:
	ldr	r3, .L67+12
	ldr	r0, [r3]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r1, .L67+32
	bl	fprintf
	b	.L58
.L63:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #128
	bhi	.L59
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	b	.L60
.L59:
	mov	r2, #128
.L60:
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, .L67+36
	mov	r1, #1
	ldr	r0, [fp, #-72]
	bl	io_getevents
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L58
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L61
.L62:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L61:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L62
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-48]
	mov	r2, r3
	asr	r3, r2, #31
	subs	r4, r0, r2
	sbc	r5, r1, r3
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	ldr	r3, .L67+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-68]
	ldr	r1, .L67+40
	bl	fprintf
.L58:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L63
.L56:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L64
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r3, [fp, #-60]
.L65:
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC12
	.word	buf.7185
	.word	.LC3
	.word	stdout
	.word	.LC11
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	events.7184
	.word	.LC9
	.size	test_write, .-test_write
	.section	.rodata
	.align	2
.LC13:
	.ascii	"/tmp/eventfd-aio-test.data\000"
	.align	2
.LC14:
	.ascii	"creating an eventfd ...\012\000"
	.align	2
.LC15:
	.ascii	"eventfd\000"
	.align	2
.LC16:
	.ascii	"done! eventfd = %d\012\000"
	.align	2
.LC17:
	.ascii	"io_setup\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L76+4
	str	r3, [fp, #-20]
	ldr	r3, .L76+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L76+12
	bl	fwrite
	mov	r0, #0
	bl	eventfd
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L70
	ldr	r0, .L76+16
	bl	perror
	mov	r3, #2
	b	.L74
.L70:
	ldr	r3, .L76+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L76+20
	mov	r0, r3
	bl	fprintf
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #5376
	bl	io_setup
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r0, .L76+24
	bl	perror
	mov	r3, #3
	b	.L74
.L72:
	mov	r2, #420
	mov	r1, #66
	ldr	r0, [fp, #-20]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L73
	ldr	r0, [fp, #-20]
	bl	perror
	mov	r3, #4
	b	.L74
.L73:
	mov	r1, #20971520
	ldr	r0, [fp, #-12]
	bl	ftruncate
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	ldr	r0, [fp, #-24]
	ldr	r3, [fp, #-16]
	mov	r2, #20971520
	ldr	r1, [fp, #-12]
	bl	test_write
	ldr	r0, [fp, #-24]
	ldr	r3, [fp, #-16]
	mov	r2, #20971520
	ldr	r1, [fp, #-12]
	bl	test_read
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	io_destroy
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r0, [fp, #-20]
	bl	remove
	mov	r3, #0
.L74:
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC18
	.word	.LC13
	.word	stdout
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.local	buf.7157
	.comm	buf.7157,4096,4
	.local	events.7156
	.comm	events.7156,4096,8
	.local	buf.7185
	.comm	buf.7185,4096,4
	.local	events.7184
	.comm	events.7184,4096,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
