	.file	"835997.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"client close"
.LC1:
	.string	"read"
	.text
	.globl	handle_client
	.type	handle_client, @function
handle_client:
.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L5:
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1044[rbp], eax
	cmp	DWORD PTR -1044[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	jmp	.L7
.L2:
	cmp	DWORD PTR -1044[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L5
.L7:
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handle_client, .-handle_client
	.globl	handle_sigchld
	.type	handle_sigchld, @function
handle_sigchld:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	nop
.L9:
	mov	edx, 1
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	test	eax, eax
	jg	.L9
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handle_sigchld, .-handle_sigchld
	.section	.rodata
.LC2:
	.string	"getrlimit"
.LC3:
	.string	"socket"
.LC4:
	.string	"setsockopt"
.LC5:
	.string	"bind"
.LC6:
	.string	"listen"
.LC7:
	.string	"poll"
.LC8:
	.string	"accept"
.LC9:
	.string	"peer=%s:%d\n"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 1160
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1172[rbp], 2048
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	mov	QWORD PTR -1136[rbp], rax
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	mov	QWORD PTR -1128[rbp], rax
	lea	rax, -1136[rbp]
	mov	rsi, rax
	mov	edi, 7
	call	setrlimit@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rsi, handle_sigchld[rip]
	mov	edi, 17
	call	signal@PLT
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1168[rbp], eax
	cmp	DWORD PTR -1168[rbp], 0
	jns	.L12
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -1120[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1120[rbp], 2
	mov	edi, 5188
	call	htons@PLT
	mov	WORD PTR -1118[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -1116[rbp], eax
	mov	DWORD PTR -1200[rbp], 1
	lea	rdx, -1200[rbp]
	mov	eax, DWORD PTR -1168[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	lea	rcx, -1120[rbp]
	mov	eax, DWORD PTR -1168[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L14
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR -1168[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -1152[rbp], rax
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L16:
	cmp	rsp, rdx
	je	.L17
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L16
.L17:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L18
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L18:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -1144[rbp], rax
	mov	DWORD PTR -1188[rbp], 0
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1188[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*8], -1
	add	DWORD PTR -1188[rbp], 1
.L19:
	mov	eax, DWORD PTR -1188[rbp]
	cmp	eax, DWORD PTR -1172[rbp]
	jl	.L20
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1168[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -1144[rbp]
	mov	WORD PTR 4[rax], 1
	mov	DWORD PTR -1192[rbp], 0
.L40:
	mov	eax, DWORD PTR -1192[rbp]
	add	eax, 1
	movsx	rcx, eax
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -1184[rbp], eax
	cmp	DWORD PTR -1184[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L42
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	cmp	DWORD PTR -1184[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -1144[rbp]
	movzx	eax, WORD PTR 6[rax]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L25
	mov	DWORD PTR -1196[rbp], 16
	lea	rdx, -1196[rbp]
	lea	rcx, -1104[rbp]
	mov	eax, DWORD PTR -1168[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1164[rbp], eax
	cmp	DWORD PTR -1164[rbp], 0
	jns	.L26
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	movzx	eax, WORD PTR -1102[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -1100[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1180[rbp], 0
	mov	DWORD PTR -1180[rbp], 0
	jmp	.L27
.L30:
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1180[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	cmp	eax, -1
	jne	.L28
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1180[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -1164[rbp]
	mov	DWORD PTR [rax+rdx*8], ecx
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1180[rbp]
	movsx	rdx, edx
	mov	WORD PTR 4[rax+rdx*8], 1
	mov	eax, DWORD PTR -1192[rbp]
	cmp	DWORD PTR -1180[rbp], eax
	cmovge	eax, DWORD PTR -1180[rbp]
	mov	DWORD PTR -1192[rbp], eax
	jmp	.L29
.L28:
	add	DWORD PTR -1180[rbp], 1
.L27:
	mov	eax, DWORD PTR -1180[rbp]
	cmp	eax, DWORD PTR -1172[rbp]
	jl	.L30
.L29:
	sub	DWORD PTR -1184[rbp], 1
	cmp	DWORD PTR -1184[rbp], 0
	je	.L44
.L25:
	mov	DWORD PTR -1176[rbp], 1
	jmp	.L32
.L39:
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1176[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	cmp	eax, -1
	je	.L45
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1176[rbp]
	movsx	rdx, edx
	movzx	eax, WORD PTR 6[rax+rdx*8]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L34
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1176[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	DWORD PTR -1160[rbp], eax
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1160[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1156[rbp], eax
	cmp	DWORD PTR -1156[rbp], 0
	jne	.L36
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1144[rbp]
	mov	edx, DWORD PTR -1176[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*8], -1
	mov	eax, DWORD PTR -1160[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L23
.L36:
	cmp	DWORD PTR -1156[rbp], -1
	jne	.L38
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -1088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	lea	rcx, -1088[rbp]
	mov	eax, DWORD PTR -1160[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	sub	DWORD PTR -1184[rbp], 1
	cmp	DWORD PTR -1184[rbp], 0
	je	.L46
	jmp	.L34
.L45:
	nop
.L34:
	add	DWORD PTR -1176[rbp], 1
.L32:
	mov	eax, DWORD PTR -1176[rbp]
	cmp	eax, DWORD PTR -1192[rbp]
	jle	.L39
	jmp	.L40
.L42:
	nop
	jmp	.L40
.L43:
	nop
	jmp	.L40
.L44:
	nop
	jmp	.L40
.L46:
	nop
.L23:
	jmp	.L40
	.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	"835997.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"client close\000"
	.align	2
.LC1:
	.ascii	"read\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_client
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_client, %function
handle_client:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+4
	bl	puts
	nop
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	b	.L7
.L2:
	ldr	r3, [fp, #-1036]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L8+8
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L8+12
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	ldr	r2, [fp, #-1036]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	write
	b	.L5
.L7:
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	stdout
	.size	handle_client, .-handle_client
	.align	2
	.global	handle_sigchld
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_sigchld, %function
handle_sigchld:
	@ 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]
	nop
.L11:
	mov	r2, #1
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	bgt	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	handle_sigchld, .-handle_sigchld
	.section	.rodata
	.align	2
.LC3:
	.ascii	"getrlimit\000"
	.align	2
.LC4:
	.ascii	"socket\000"
	.align	2
.LC5:
	.ascii	"setsockopt\000"
	.align	2
.LC6:
	.ascii	"bind\000"
	.align	2
.LC7:
	.ascii	"listen\000"
	.align	2
.LC8:
	.ascii	"poll\000"
	.align	2
.LC9:
	.ascii	"accept\000"
	.align	2
.LC10:
	.ascii	"peer=%s:%d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1136
	sub	sp, sp, #4
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #2048
	str	r3, [fp, #-1108]
	ldr	r3, [fp, #-1108]
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1108]
	str	r3, [fp, #-1076]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, #7
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L46+4
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r1, .L46+8
	mov	r0, #17
	bl	signal
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1104]
	ldr	r3, [fp, #-1104]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L46+12
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1056
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L46+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1056
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1068]
	mov	r3, #1
	str	r3, [fp, #-1136]
	sub	r3, fp, #1120
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-1104]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L46+20
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1104]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L46+24
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	mov	r1, #4096
	ldr	r0, [fp, #-1104]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L46+28
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-1108]
	sub	r3, r3, #1
	str	r3, [fp, #-1100]
	ldr	r3, [fp, #-1108]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	r3, [fp, #-1108]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	ldr	r3, [fp, #-1108]
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-1096]
	mov	r3, #0
	str	r3, [fp, #-1124]
	b	.L18
.L19:
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1124]
	mvn	r1, #0
	str	r1, [r3, r2, lsl #3]
	ldr	r3, [fp, #-1124]
	add	r3, r3, #1
	str	r3, [fp, #-1124]
.L18:
	ldr	r2, [fp, #-1124]
	ldr	r3, [fp, #-1108]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1104]
	str	r2, [r3]
	ldr	r3, [fp, #-1096]
	mov	r2, #1
	strh	r2, [r3, #4]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-1128]
.L39:
	ldr	r3, [fp, #-1128]
	add	r3, r3, #1
	mvn	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-1096]
	bl	poll
	str	r0, [fp, #-1120]
	ldr	r3, [fp, #-1120]
	cmn	r3, #1
	bne	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L41
	ldr	r0, .L46+32
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-1120]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-1096]
	ldrsh	r3, [r3, #6]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L24
	mov	r3, #16
	str	r3, [fp, #-1132]
	sub	r2, fp, #1120
	sub	r2, r2, #12
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1104]
	bl	accept
	str	r0, [fp, #-1092]
	ldr	r3, [fp, #-1092]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L46+36
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	ldr	r0, [fp, #-1052]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #1040
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L46+40
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-1116]
	mov	r3, #0
	str	r3, [fp, #-1116]
	b	.L26
.L29:
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1116]
	ldr	r3, [r3, r2, lsl #3]
	cmn	r3, #1
	bne	.L27
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1116]
	ldr	r1, [fp, #-1092]
	str	r1, [r3, r2, lsl #3]
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1116]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r2, [fp, #-1128]
	ldr	r3, [fp, #-1116]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-1128]
	b	.L28
.L27:
	ldr	r3, [fp, #-1116]
	add	r3, r3, #1
	str	r3, [fp, #-1116]
.L26:
	ldr	r2, [fp, #-1116]
	ldr	r3, [fp, #-1108]
	cmp	r2, r3
	blt	.L29
.L28:
	ldr	r3, [fp, #-1120]
	sub	r3, r3, #1
	str	r3, [fp, #-1120]
	ldr	r3, [fp, #-1120]
	cmp	r3, #0
	beq	.L43
.L24:
	mov	r3, #1
	str	r3, [fp, #-1112]
	b	.L31
.L38:
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1112]
	ldr	r3, [r3, r2, lsl #3]
	cmn	r3, #1
	beq	.L44
	ldr	r2, [fp, #-1096]
	ldr	r3, [fp, #-1112]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1112]
	ldr	r3, [r3, r2, lsl #3]
	str	r3, [fp, #-1088]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1088]
	bl	read
	str	r0, [fp, #-1084]
	ldr	r3, [fp, #-1084]
	cmp	r3, #0
	bne	.L35
	ldr	r0, .L46+44
	bl	puts
	ldr	r3, [fp, #-1096]
	ldr	r2, [fp, #-1112]
	mvn	r1, #0
	str	r1, [r3, r2, lsl #3]
	ldr	r0, [fp, #-1088]
	bl	close
	b	.L22
.L35:
	ldr	r3, [fp, #-1084]
	cmn	r3, #1
	bne	.L37
	ldr	r0, .L46+48
	bl	perror
	mov	r0, #1
	bl	exit
.L37:
	ldr	r3, .L46+52
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1088]
	bl	write
	ldr	r3, [fp, #-1120]
	sub	r3, r3, #1
	str	r3, [fp, #-1120]
	ldr	r3, [fp, #-1120]
	cmp	r3, #0
	beq	.L45
	b	.L33
.L44:
	nop
.L33:
	ldr	r3, [fp, #-1112]
	add	r3, r3, #1
	str	r3, [fp, #-1112]
.L31:
	ldr	r2, [fp, #-1112]
	ldr	r3, [fp, #-1128]
	cmp	r2, r3
	ble	.L38
	b	.L39
.L41:
	nop
	b	.L39
.L42:
	nop
	b	.L39
.L43:
	nop
	b	.L39
.L45:
	nop
.L22:
	b	.L39
.L47:
	.align	2
.L46:
	.word	.LC11
	.word	.LC3
	.word	handle_sigchld
	.word	.LC4
	.word	5188
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
