	.file	"628188.c"
	.intel_syntax noprefix
	.text
	.globl	efd
	.data
	.align 4
	.type	efd, @object
	.size	efd, 4
efd:
	.long	-1
	.globl	starttv
	.bss
	.align 16
	.type	starttv, @object
	.size	starttv, 16
starttv:
	.zero	16
	.section	.rodata
.LC0:
	.string	"efd not inited."
.LC1:
	.string	"epoll_create fail: "
.LC2:
	.string	"epoll ctl failed:"
.LC3:
	.string	"epoll eventfd has epoll hup."
	.align 8
.LC4:
	.string	"epoll eventfd has epoll error."
.LC5:
	.string	"read fail:"
	.align 8
.LC6:
	.string	"success read from efd, read %d bytes(%lu) at %lds\n"
.LC7:
	.string	"epoll wait timed out."
.LC8:
	.string	"epoll wait error:"
	.text
	.globl	read_thread
	.type	read_thread, @function
read_thread:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -184[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	DWORD PTR -180[rbp], -1
	mov	eax, DWORD PTR efd[rip]
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L2:
	mov	edi, 1024
	call	epoll_create@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L3
.L4:
	mov	DWORD PTR -156[rbp], 25
	mov	eax, DWORD PTR efd[rip]
	mov	DWORD PTR -152[rbp], eax
	mov	edx, DWORD PTR efd[rip]
	lea	rcx, -156[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L3
.L5:
	lea	rsi, -128[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	ecx, 5000
	mov	edx, 10
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jle	.L6
	mov	DWORD PTR -176[rbp], 0
	jmp	.L7
.L12:
	mov	eax, DWORD PTR -176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, -128
	mov	eax, DWORD PTR [rax]
	and	eax, 16
	test	eax, eax
	je	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, -128
	mov	eax, DWORD PTR [rax]
	and	eax, 8
	test	eax, eax
	je	.L9
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L3
.L9:
	mov	eax, DWORD PTR -176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	add	rax, -128
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -176[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 124
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -172[rbp], eax
	lea	rcx, -168[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L3
.L11:
	lea	rax, -144[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR starttv[rip]
	sub	rax, rdx
	mov	rcx, rax
	mov	rdx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -184[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	DWORD PTR -176[rbp], 1
.L7:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -184[rbp]
	jl	.L12
	jmp	.L5
.L6:
	cmp	DWORD PTR -184[rbp], 0
	jne	.L14
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L3
.L14:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L3:
	cmp	DWORD PTR -180[rbp], 0
	js	.L15
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -180[rbp], -1
.L15:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_thread, .-read_thread
	.section	.rodata
.LC9:
	.string	"EFD_NONBLOCK:%d\n"
.LC10:
	.string	"eventfd failed."
.LC11:
	.string	"pthread create:"
.LC12:
	.string	"write event fd fail:"
	.align 8
.LC13:
	.string	"success write to efd, write %d bytes(%lu) at %lds\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, starttv[rip]
	call	gettimeofday@PLT
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	esi, 2048
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 2048
	mov	edi, 0
	call	eventfd@PLT
	mov	DWORD PTR efd[rip], eax
	mov	eax, DWORD PTR efd[rip]
	test	eax, eax
	jns	.L20
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L21
.L20:
	lea	rax, -48[rbp]
	mov	ecx, 0
	lea	rdx, read_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L22
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L21
.L22:
	mov	DWORD PTR -56[rbp], 0
	jmp	.L23
.L25:
	mov	QWORD PTR -40[rbp], 4
	mov	eax, DWORD PTR efd[rip]
	lea	rcx, -40[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L24
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L21
.L24:
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR starttv[rip]
	sub	rax, rdx
	mov	rcx, rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -56[rbp], 1
.L23:
	cmp	DWORD PTR -56[rbp], 4
	jle	.L25
	nop
.L21:
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L26
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	QWORD PTR -48[rbp], 0
.L26:
	mov	eax, DWORD PTR efd[rip]
	test	eax, eax
	js	.L27
	mov	eax, DWORD PTR efd[rip]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR efd[rip], -1
.L27:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"628188.c"
	.text
	.global	efd
	.data
	.align	2
	.type	efd, %object
	.size	efd, 4
efd:
	.word	-1
	.comm	starttv,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"efd not inited.\000"
	.align	2
.LC1:
	.ascii	"epoll_create fail: \000"
	.align	2
.LC2:
	.ascii	"epoll ctl failed:\000"
	.align	2
.LC3:
	.ascii	"epoll eventfd has epoll hup.\000"
	.align	2
.LC4:
	.ascii	"epoll eventfd has epoll error.\000"
	.align	2
.LC5:
	.ascii	"read fail:\000"
	.align	2
.LC6:
	.ascii	"success read from efd, read %d bytes(%lu) at %lds\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"epoll wait timed out.\000"
	.align	2
.LC8:
	.ascii	"epoll wait error:\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_thread, %function
read_thread:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #232
	str	r0, [fp, #-224]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-220]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-204]
	str	r3, [fp, #-200]
	mvn	r3, #0
	str	r3, [fp, #-216]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L19+8
	bl	puts
	b	.L3
.L2:
	mov	r0, #1024
	bl	epoll_create
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L19+12
	bl	puts
	b	.L3
.L4:
	mov	r3, #25
	str	r3, [fp, #-188]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [fp, #-180]
	ldr	r3, .L19+4
	ldr	r2, [r3]
	sub	r3, fp, #188
	mov	r1, #1
	ldr	r0, [fp, #-216]
	bl	epoll_ctl
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L19+16
	bl	puts
	b	.L3
.L5:
	sub	r1, fp, #172
	ldr	r3, .L19+20
	mov	r2, #10
	ldr	r0, [fp, #-216]
	bl	epoll_wait
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L7
.L12:
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-168]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L19+24
	bl	puts
	b	.L3
.L8:
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-168]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L19+28
	bl	puts
	b	.L3
.L9:
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-168]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-212]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-160]
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-208]
	bl	read
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L19+32
	bl	puts
	b	.L3
.L11:
	sub	r3, fp, #196
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-196]
	ldr	r1, .L19+36
	ldr	r1, [r1]
	sub	r1, r0, r1
	str	r1, [sp]
	ldr	r1, [fp, #-220]
	ldr	r0, .L19+40
	bl	printf
.L10:
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L7:
	ldr	r2, [fp, #-212]
	ldr	r3, [fp, #-220]
	cmp	r2, r3
	blt	.L12
	b	.L5
.L6:
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L19+44
	bl	puts
	b	.L3
.L14:
	ldr	r0, .L19+48
	bl	puts
.L3:
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	blt	.L15
	ldr	r0, [fp, #-216]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-216]
.L15:
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC9
	.word	efd
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	5000
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	starttv
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	read_thread, .-read_thread
	.section	.rodata
	.align	2
.LC10:
	.ascii	"EFD_NONBLOCK:%d\012\000"
	.align	2
.LC11:
	.ascii	"eventfd failed.\000"
	.align	2
.LC12:
	.ascii	"pthread create:\000"
	.align	2
.LC13:
	.ascii	"write event fd fail:\000"
	.align	2
.LC14:
	.ascii	"success write to efd, write %d bytes(%lu) at %lds\012"
	.ascii	"\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L32+4
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r1, #2048
	ldr	r0, .L32+8
	bl	printf
	mov	r1, #2048
	mov	r0, #0
	bl	eventfd
	mov	r3, r0
	ldr	r2, .L32+12
	str	r3, [r2]
	ldr	r3, .L32+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L32+16
	bl	puts
	b	.L23
.L22:
	sub	r0, fp, #40
	mov	r3, #0
	ldr	r2, .L32+20
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L32+24
	bl	puts
	b	.L23
.L24:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L25
.L27:
	mov	r2, #4
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, .L32+12
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #8
	mov	r0, r3
	bl	write
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L26
	ldr	r0, .L32+28
	bl	puts
	b	.L23
.L26:
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-16]
	ldr	r1, .L32+4
	ldr	r1, [r1]
	sub	r1, r0, r1
	str	r1, [sp]
	ldr	r1, [fp, #-32]
	ldr	r0, .L32+32
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L25:
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	ble	.L27
	nop
.L23:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-40]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	str	r3, [fp, #-40]
.L28:
	ldr	r3, .L32+12
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L29
	ldr	r3, .L32+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L32+12
	mvn	r2, #0
	str	r2, [r3]
.L29:
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC15
	.word	starttv
	.word	.LC10
	.word	efd
	.word	.LC11
	.word	read_thread
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
