	.file	"56347.c"
	.intel_syntax noprefix
	.text
	.local	server
	.comm	server,4,4
	.section	.rodata
	.align 8
.LC0:
	.string	"[%d] epoll_wait: %d, event: %u\n"
	.text
	.type	OnThread, @function
OnThread:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -168[rbp], 128
	lea	rax, -156[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -156[rbp], 1
	mov	edi, 64
	call	epoll_create@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	edx, DWORD PTR server[rip]
	lea	rcx, -156[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -160[rbp], eax
	lea	rax, -156[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -156[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	ecx, -1
	mov	edx, 1
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -160[rbp], eax
	mov	edx, DWORD PTR -156[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, eax
	mov	eax, DWORD PTR -160[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	OnThread, .-OnThread
	.section	.rodata
.LC1:
	.string	"127.0.0.1"
.LC2:
	.string	"client connect: %d\n"
.LC3:
	.string	"%s exit\n"
	.text
	.type	epoll_multithread_thundering_herd_test, @function
epoll_multithread_thundering_herd_test:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], -1
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 8888
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	DWORD PTR -28[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR server[rip], eax
	mov	eax, DWORD PTR server[rip]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR server[rip]
	mov	esi, 64
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	rdx, rax
	lea	rax, -40[rbp]
	mov	rcx, rdx
	lea	rdx, OnThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	add	DWORD PTR -56[rbp], 1
.L4:
	cmp	DWORD PTR -56[rbp], 31
	jle	.L5
	call	getchar@PLT
	mov	DWORD PTR -48[rbp], eax
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 8888
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rdi, .LC1[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -44[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, __FUNCTION__.0[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	epoll_multithread_thundering_herd_test, .-epoll_multithread_thundering_herd_test
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	epoll_multithread_thundering_herd_test
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 32
	.type	__FUNCTION__.0, @object
	.size	__FUNCTION__.0, 39
__FUNCTION__.0:
	.string	"epoll_multithread_thundering_herd_test"
	.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	"56347.c"
	.text
	.local	server
	.comm	server,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[%d] epoll_wait: %d, event: %u\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OnThread, %function
OnThread:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-176]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #128
	str	r3, [fp, #-168]
	sub	r3, fp, #156
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-156]
	mov	r0, #64
	bl	epoll_create
	str	r0, [fp, #-164]
	ldr	r3, .L3+4
	ldr	r2, [r3]
	sub	r3, fp, #156
	mov	r1, #1
	ldr	r0, [fp, #-164]
	bl	epoll_ctl
	str	r0, [fp, #-160]
	sub	r3, fp, #156
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #156
	mvn	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-164]
	bl	epoll_wait
	str	r0, [fp, #-160]
	ldr	r1, [fp, #-176]
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-160]
	ldr	r0, .L3+8
	bl	printf
	ldr	r0, [fp, #-164]
	bl	close
	nop
	ldr	r2, .L3
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	server
	.word	.LC0
	.size	OnThread, .-OnThread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"127.0.0.1\000"
	.align	2
.LC3:
	.ascii	"client connect: %d\012\000"
	.align	2
.LC4:
	.ascii	"%s exit\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	epoll_multithread_thundering_herd_test, %function
epoll_multithread_thundering_herd_test:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L9+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L9+8
	str	r3, [r2]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	bind
	str	r0, [fp, #-32]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r1, #64
	mov	r0, r3
	bl	listen
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L6
.L7:
	ldr	r3, [fp, #-40]
	sub	r0, fp, #44
	ldr	r2, .L9+12
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	pthread_detach
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldr	r3, [fp, #-40]
	cmp	r3, #31
	ble	.L7
	bl	getchar
	str	r0, [fp, #-32]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L9+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, .L9+16
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L9+20
	bl	printf
	ldr	r1, .L9+24
	ldr	r0, .L9+28
	bl	printf
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	8888
	.word	server
	.word	OnThread
	.word	.LC2
	.word	.LC3
	.word	__FUNCTION__.5926
	.word	.LC4
	.size	epoll_multithread_thundering_herd_test, .-epoll_multithread_thundering_herd_test
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	bl	epoll_multithread_thundering_herd_test
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__FUNCTION__.5926, %object
	.size	__FUNCTION__.5926, 39
__FUNCTION__.5926:
	.ascii	"epoll_multithread_thundering_herd_test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
