	.file	"57949841.c"
	.intel_syntax noprefix
	.text
	.local	NREQS
	.comm	NREQS,4,4
	.section	.rodata
.LC0:
	.string	"%d got %d reqs\n"
	.text
	.globl	sig_handler
	.type	sig_handler, @function
sig_handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	ebx, DWORD PTR NREQS[rip]
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sig_handler, .-sig_handler
	.section	.rodata
	.align 8
.LC1:
	.string	"create socket error: %s(errno: %d)\n"
	.align 8
.LC2:
	.string	"set socket NON block failed: %s(errno: %d)\n"
.LC3:
	.string	"enable SO_REUSPORT failed"
	.align 8
.LC4:
	.string	"bind socket error: %s(errno: %d)\n"
	.align 8
.LC5:
	.string	"call listen failed: %s(errno: %d)\n"
.LC6:
	.string	"create epoll fd failed"
	.align 8
.LC7:
	.string	"epoll add listen socket failed"
.LC8:
	.string	"HTTP/1.1 200 OK\r\n"
.LC9:
	.string	"epoll_wait error\n"
.LC10:
	.string	"accept error: %s(errno: %d)\n"
	.align 8
.LC11:
	.string	"epoll add new connection socket failed"
.LC12:
	.string	"epoll del socket failed"
	.text
	.globl	workerproc
	.type	workerproc, @function
workerproc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1768
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, sig_handler[rip]
	mov	edi, 10
	call	signal@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1748[rbp], eax
	cmp	DWORD PTR -1748[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	DWORD PTR -1764[rbp], 1
	lea	rdx, -1764[rbp]
	mov	eax, DWORD PTR -1748[rbp]
	mov	esi, 21537
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	lea	rdx, -1764[rbp]
	mov	eax, DWORD PTR -1748[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 15
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	lea	rax, -1696[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1696[rbp], 2
	mov	edi, 0
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -1692[rbp], eax
	mov	edi, 5555
	call	htons@PLT
	mov	WORD PTR -1694[rbp], ax
	lea	rcx, -1696[rbp]
	mov	eax, DWORD PTR -1748[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -1748[rbp]
	mov	esi, 1000
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], 0
	jns	.L7
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -1740[rbp], eax
	cmp	DWORD PTR -1740[rbp], -1
	jne	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L8:
	mov	DWORD PTR -1708[rbp], 268435457
	mov	eax, DWORD PTR -1748[rbp]
	mov	DWORD PTR -1704[rbp], eax
	lea	rcx, -1708[rbp]
	mov	edx, DWORD PTR -1748[rbp]
	mov	eax, DWORD PTR -1740[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], -1
	jne	.L9
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	lea	rax, .LC8[rip]
	mov	QWORD PTR -1720[rbp], rax
.L26:
	lea	rsi, -1664[rbp]
	mov	eax, DWORD PTR -1740[rbp]
	mov	ecx, -1
	mov	edx, 50
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -1736[rbp], eax
	cmp	DWORD PTR -1736[rbp], 0
	jns	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L29
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L29
.L10:
	mov	DWORD PTR -1752[rbp], 0
	jmp	.L13
.L25:
	mov	eax, DWORD PTR -1752[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	sub	rax, 1644
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -1732[rbp], eax
	mov	eax, DWORD PTR -1732[rbp]
	cmp	eax, DWORD PTR -1748[rbp]
	jne	.L14
	mov	DWORD PTR -1760[rbp], 16
	lea	rdx, -1760[rbp]
	lea	rcx, -1680[rbp]
	mov	eax, DWORD PTR -1748[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], -1
	jne	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L30
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	eax, DWORD PTR -1740[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	jmp	.L28
.L15:
	mov	eax, DWORD PTR -1744[rbp]
	mov	DWORD PTR -1724[rbp], eax
	mov	DWORD PTR -1756[rbp], 1
	lea	rdx, -1756[rbp]
	mov	eax, DWORD PTR -1724[rbp]
	mov	esi, 21537
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], 0
	jns	.L20
	call	__errno_location@PLT
	mov	ebx, DWORD PTR [rax]
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L20:
	mov	DWORD PTR -1708[rbp], 1
	mov	eax, DWORD PTR -1724[rbp]
	mov	DWORD PTR -1704[rbp], eax
	lea	rcx, -1708[rbp]
	mov	edx, DWORD PTR -1724[rbp]
	mov	eax, DWORD PTR -1740[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], -1
	jne	.L22
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L22
.L14:
	mov	eax, DWORD PTR NREQS[rip]
	add	eax, 1
	mov	DWORD PTR NREQS[rip], eax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1732[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1728[rbp], eax
	cmp	DWORD PTR -1728[rbp], 0
	jle	.L23
	mov	rax, QWORD PTR -1720[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -1720[rbp]
	mov	eax, DWORD PTR -1732[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L23:
	mov	edx, DWORD PTR -1732[rbp]
	mov	eax, DWORD PTR -1740[rbp]
	mov	ecx, 0
	mov	esi, 2
	mov	edi, eax
	call	epoll_ctl@PLT
	mov	DWORD PTR -1744[rbp], eax
	cmp	DWORD PTR -1744[rbp], -1
	jne	.L24
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L22
.L24:
	mov	eax, DWORD PTR -1732[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L22
.L30:
	nop
.L22:
	add	DWORD PTR -1752[rbp], 1
.L13:
	mov	eax, DWORD PTR -1752[rbp]
	cmp	eax, DWORD PTR -1736[rbp]
	jl	.L25
	jmp	.L26
.L29:
	nop
	jmp	.L26
.L28:
	call	__stack_chk_fail@PLT
.L27:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	workerproc, .-workerproc
	.section	.rodata
.LC13:
	.string	"fork() failed"
	.text
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, sig_handler[rip]
	mov	edi, 10
	call	signal@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	DWORD PTR -32[rbp+rax*4], 0
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L33
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L34
.L33:
	cmp	DWORD PTR -36[rbp], 0
	je	.L35
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp+rax*4], edx
	jmp	.L34
.L35:
	mov	eax, 0
	call	workerproc
.L34:
	add	DWORD PTR -40[rbp], 1
.L32:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L36
	mov	DWORD PTR -40[rbp], 0
	jmp	.L37
.L39:
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	test	eax, eax
	jle	.L38
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	eax, DWORD PTR -32[rbp+rax*4]
	lea	rcx, -44[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
.L38:
	add	DWORD PTR -40[rbp], 1
.L37:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L39
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"57949841.c"
	.text
	.local	NREQS
	.comm	NREQS,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d got %d reqs\012\000"
	.text
	.align	2
	.global	sig_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_handler, %function
sig_handler:
	@ 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]
	bl	getpid
	mov	r1, r0
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L2+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	NREQS
	.word	.LC0
	.size	sig_handler, .-sig_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"create socket error: %s(errno: %d)\012\000"
	.align	2
.LC2:
	.ascii	"set socket NON block failed: %s(errno: %d)\012\000"
	.align	2
.LC3:
	.ascii	"enable SO_REUSPORT failed\000"
	.align	2
.LC4:
	.ascii	"bind socket error: %s(errno: %d)\012\000"
	.align	2
.LC5:
	.ascii	"call listen failed: %s(errno: %d)\012\000"
	.align	2
.LC6:
	.ascii	"create epoll fd failed\000"
	.align	2
.LC7:
	.ascii	"epoll add listen socket failed\000"
	.align	2
.LC8:
	.ascii	"HTTP/1.1 200 OK\015\012\000"
	.align	2
.LC9:
	.ascii	"epoll_wait error\012\000"
	.align	2
.LC10:
	.ascii	"accept error: %s(errno: %d)\012\000"
	.align	2
.LC11:
	.ascii	"epoll add new connection socket failed\000"
	.align	2
.LC12:
	.ascii	"epoll del socket failed\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	workerproc
	.syntax unified
	.arm
	.fpu softvfp
	.type	workerproc, %function
workerproc:
	@ args = 0, pretend = 0, frame = 1928
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1936
	sub	sp, sp, #4
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L33+4
	mov	r0, #10
	bl	signal
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1924]
	ldr	r3, [fp, #-1924]
	cmn	r3, #1
	bne	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L33+8
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	mov	r3, #1
	str	r3, [fp, #-1940]
	sub	r3, fp, #1920
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-1924]
	bl	ioctl
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmp	r3, #0
	bge	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L33+16
	bl	printf
	mvn	r0, #0
	bl	exit
.L6:
	sub	r3, fp, #1920
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, [fp, #-1924]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L33+20
	bl	puts
	mvn	r0, #0
	bl	exit
.L7:
	sub	r3, fp, #1856
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1856
	sub	r3, r3, #8
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-1872]
	ldr	r0, .L33+24
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1856
	sub	r3, r3, #8
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1856
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1924]
	bl	bind
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmn	r3, #1
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L33+28
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	mov	r1, #1000
	ldr	r0, [fp, #-1924]
	bl	listen
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmp	r3, #0
	bge	.L9
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L33+32
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-1916]
	ldr	r3, [fp, #-1916]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L33+36
	bl	puts
	mvn	r0, #0
	bl	exit
.L10:
	mov	r3, #268435457
	str	r3, [fp, #-1892]
	ldr	r3, [fp, #-1924]
	str	r3, [fp, #-1884]
	sub	r3, fp, #1872
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1924]
	mov	r1, #1
	ldr	r0, [fp, #-1916]
	bl	epoll_ctl
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L33+40
	bl	puts
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r3, .L33+44
	str	r3, [fp, #-1912]
.L28:
	sub	r1, fp, #1824
	sub	r1, r1, #12
	sub	r1, r1, #8
	mvn	r3, #0
	mov	r2, #50
	ldr	r0, [fp, #-1916]
	bl	epoll_wait
	str	r0, [fp, #-1908]
	ldr	r3, [fp, #-1908]
	cmp	r3, #0
	bge	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L31
	ldr	r0, .L33+48
	bl	perror
	b	.L31
.L12:
	mov	r3, #0
	str	r3, [fp, #-1928]
	b	.L15
.L27:
	ldr	r3, [fp, #-1928]
	lsl	r3, r3, #4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1824]
	str	r3, [fp, #-1904]
	ldr	r2, [fp, #-1904]
	ldr	r3, [fp, #-1924]
	cmp	r2, r3
	bne	.L16
	mov	r3, #16
	str	r3, [fp, #-1936]
	sub	r2, fp, #1920
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1840
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1924]
	bl	accept
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmn	r3, #1
	bne	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L32
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L32
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L33+52
	bl	printf
.L21:
	ldr	r0, [fp, #-1916]
	bl	close
	nop
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L29
	b	.L30
.L17:
	ldr	r3, [fp, #-1920]
	str	r3, [fp, #-1896]
	mov	r3, #1
	str	r3, [fp, #-1932]
	sub	r3, fp, #1920
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-1896]
	bl	ioctl
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmp	r3, #0
	bge	.L22
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r4, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L33+16
	bl	printf
	b	.L24
.L22:
	mov	r3, #1
	str	r3, [fp, #-1892]
	ldr	r3, [fp, #-1896]
	str	r3, [fp, #-1884]
	sub	r3, fp, #1872
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1896]
	mov	r1, #1
	ldr	r0, [fp, #-1916]
	bl	epoll_ctl
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L33+56
	bl	puts
	b	.L24
.L16:
	ldr	r3, .L33+60
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L33+60
	str	r3, [r2]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1904]
	bl	read
	str	r0, [fp, #-1900]
	ldr	r3, [fp, #-1900]
	cmp	r3, #0
	ble	.L25
	ldr	r0, [fp, #-1912]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-1912]
	ldr	r0, [fp, #-1904]
	bl	write
.L25:
	mov	r3, #0
	ldr	r2, [fp, #-1904]
	mov	r1, #2
	ldr	r0, [fp, #-1916]
	bl	epoll_ctl
	str	r0, [fp, #-1920]
	ldr	r3, [fp, #-1920]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L33+64
	bl	puts
	b	.L24
.L26:
	ldr	r0, [fp, #-1904]
	bl	close
	b	.L24
.L32:
	nop
.L24:
	ldr	r3, [fp, #-1928]
	add	r3, r3, #1
	str	r3, [fp, #-1928]
.L15:
	ldr	r2, [fp, #-1928]
	ldr	r3, [fp, #-1908]
	cmp	r2, r3
	blt	.L27
	b	.L28
.L31:
	nop
	b	.L28
.L30:
	bl	__stack_chk_fail
.L29:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC13
	.word	sig_handler
	.word	.LC1
	.word	21537
	.word	.LC2
	.word	.LC3
	.word	5555
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	NREQS
	.word	.LC12
	.size	workerproc, .-workerproc
	.section	.rodata
	.align	2
.LC14:
	.ascii	"fork() failed\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L46+4
	mov	r0, #10
	bl	signal
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L36
.L40:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-20]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L37
	ldr	r0, .L46+8
	bl	puts
	b	.L38
.L37:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #-20]
	b	.L38
.L39:
	bl	workerproc
.L38:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L36:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L40
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L41
.L43:
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	ble	.L42
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	sub	r1, fp, #36
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
.L42:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L41:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L43
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC15
	.word	sig_handler
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
