	.file	"989253.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Cannot accept connection"
	.text
	.globl	childProcess
	.type	childProcess, @function
childProcess:
.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, 1048
	.cfi_offset 3, -24
	mov	DWORD PTR -1044[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1044[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -1024[rbp]
	mov	edx, 1000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, -1024[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edx, 1000
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1028[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	mov	BYTE PTR -1029[rbp], al
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -1028[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	sub	rax, 1
	movzx	edx, BYTE PTR -1024[rbp+rax]
	mov	eax, DWORD PTR -1028[rbp]
	cdqe
	mov	BYTE PTR -1024[rbp+rax], dl
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -1028[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	lea	rdx, -1[rax]
	movzx	eax, BYTE PTR -1029[rbp]
	mov	BYTE PTR -1024[rbp+rdx], al
	add	DWORD PTR -1028[rbp], 1
.L3:
	mov	eax, DWORD PTR -1028[rbp]
	movsx	rbx, eax
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	cmp	rbx, rax
	jb	.L4
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rsi, -1024[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	eax, DWORD PTR -1044[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	childProcess, .-childProcess
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: %s <IP Address> <Port_TCP> <Port_UDP>"
.LC2:
	.string	"Cannot open socket\n"
.LC3:
	.string	"Cannot Bind Port"
.LC4:
	.string	"Select() failed"
	.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
	push	rbx
	sub	rsp, 1240
	.cfi_offset 3, -24
	mov	DWORD PTR -1236[rbp], edi
	mov	QWORD PTR -1248[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1236[rbp], 3
	jg	.L7
	mov	rax, QWORD PTR -1248[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -1168[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -1168[rbp], 2
	mov	rax, QWORD PTR -1248[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -1164[rbp], eax
	mov	rax, QWORD PTR -1248[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1166[rbp], ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1216[rbp], eax
	cmp	DWORD PTR -1216[rbp], 0
	jns	.L8
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rcx, -1168[rbp]
	mov	eax, DWORD PTR -1216[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L9
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -1248[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1166[rbp], ax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1212[rbp], eax
	cmp	DWORD PTR -1212[rbp], 0
	jns	.L10
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rcx, -1168[rbp]
	mov	eax, DWORD PTR -1212[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -1216[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	eax, DWORD PTR -1216[rbp]
	cmp	eax, DWORD PTR -1212[rbp]
	jle	.L12
	mov	eax, DWORD PTR -1216[rbp]
	add	eax, 1
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -1212[rbp]
	add	eax, 1
.L13:
	mov	DWORD PTR -1208[rbp], eax
.L20:
	lea	rax, -1184[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -1224[rbp], 16
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -1152[rbp]
	mov	rdi, rdx
#APP
# 83 "the_stack_data/989253.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -1204[rbp], edx
	mov	DWORD PTR -1200[rbp], eax
	mov	eax, DWORD PTR -1216[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -1152[rbp+rax*8]
	mov	eax, DWORD PTR -1216[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -1152[rbp+rax*8], rdx
	mov	eax, DWORD PTR -1212[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -1152[rbp+rax*8]
	mov	eax, DWORD PTR -1212[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -1152[rbp+rax*8], rdx
	lea	rsi, -1152[rbp]
	mov	eax, DWORD PTR -1208[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	mov	DWORD PTR -1196[rbp], eax
	cmp	DWORD PTR -1196[rbp], -1
	jne	.L14
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L20
.L14:
	mov	eax, DWORD PTR -1216[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -1152[rbp+rax*8]
	mov	eax, DWORD PTR -1216[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L16
	lea	rdx, -1224[rbp]
	lea	rcx, -1184[rbp]
	mov	eax, DWORD PTR -1216[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -1192[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -1188[rbp], eax
	cmp	DWORD PTR -1188[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -1216[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -1192[rbp]
	mov	edi, eax
	call	childProcess
	mov	edi, 0
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR -1192[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L20
.L16:
	mov	eax, DWORD PTR -1212[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -1152[rbp+rax*8]
	mov	eax, DWORD PTR -1212[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L20
	lea	rax, -1024[rbp]
	mov	edx, 1000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -1224[rbp]
	lea	rdx, -1184[rbp]
	lea	rsi, -1024[rbp]
	mov	eax, DWORD PTR -1212[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 256
	mov	edx, 1000
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -1220[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -1220[rbp]
	cdqe
	movzx	eax, BYTE PTR -1024[rbp+rax]
	mov	BYTE PTR -1225[rbp], al
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -1220[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	sub	rax, 1
	movzx	edx, BYTE PTR -1024[rbp+rax]
	mov	eax, DWORD PTR -1220[rbp]
	cdqe
	mov	BYTE PTR -1024[rbp+rax], dl
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -1220[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	lea	rdx, -1[rax]
	movzx	eax, BYTE PTR -1225[rbp]
	mov	BYTE PTR -1024[rbp+rdx], al
	add	DWORD PTR -1220[rbp], 1
.L18:
	mov	eax, DWORD PTR -1220[rbp]
	movsx	rbx, eax
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	cmp	rbx, rax
	jb	.L19
	mov	eax, DWORD PTR -1224[rbp]
	mov	ebx, eax
	lea	rax, -1024[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -1184[rbp]
	lea	rsi, -1024[rbp]
	mov	eax, DWORD PTR -1212[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 2048
	mov	edi, eax
	call	sendto@PLT
	jmp	.L20
	.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	"989253.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Cannot accept connection\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	childProcess
	.syntax unified
	.arm
	.fpu softvfp
	.type	childProcess, %function
childProcess:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1024]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1024]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #1008
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #1008
	mov	r3, #0
	mov	r2, #1000
	ldr	r0, [fp, #-1024]
	bl	recv
	mov	r3, #0
	str	r3, [fp, #-1012]
	b	.L3
.L4:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1012]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-1013]
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1012]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-1004]	@ zero_extendqisi2
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1012]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1012]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-1013]
	strb	r2, [r3, #-1004]
	ldr	r3, [fp, #-1012]
	add	r3, r3, #1
	str	r3, [fp, #-1012]
.L3:
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	lsr	r2, r3, #1
	ldr	r3, [fp, #-1012]
	cmp	r2, r3
	bhi	.L4
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r1, fp, #1008
	mov	r3, #0
	ldr	r0, [fp, #-1024]
	bl	send
	ldr	r0, [fp, #-1024]
	bl	close
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC0
	.size	childProcess, .-childProcess
	.section	.rodata
	.align	2
.LC2:
	.ascii	"usage: %s <IP Address> <Port_TCP> <Port_UDP>\000"
	.align	2
.LC3:
	.ascii	"Cannot open socket\012\000"
	.align	2
.LC4:
	.ascii	"Cannot Bind Port\000"
	.align	2
.LC5:
	.ascii	"Select() failed\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1216
	sub	sp, sp, #8
	str	r0, [fp, #-1216]
	str	r1, [fp, #-1220]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1216]
	cmp	r3, #3
	bgt	.L9
	ldr	r3, [fp, #-1220]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+4
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1220]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1148]
	ldr	r3, [fp, #-1220]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1196]
	ldr	r3, [fp, #-1196]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L26+8
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1196]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L26+12
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-1220]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #12
	strh	r2, [r3, #2]	@ movhi
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1192]
	ldr	r3, [fp, #-1192]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L26+8
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1192]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L26+12
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	mov	r1, #5
	ldr	r0, [fp, #-1196]
	bl	listen
	ldr	r2, [fp, #-1196]
	ldr	r3, [fp, #-1192]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-1196]
	add	r3, r3, #1
	b	.L15
.L14:
	ldr	r3, [fp, #-1192]
	add	r3, r3, #1
.L15:
	str	r3, [fp, #-1188]
.L24:
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #16
	str	r3, [fp, #-1208]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [fp, #-1184]
	mov	r3, #0
	str	r3, [fp, #-1204]
	b	.L16
.L17:
	ldr	r3, [fp, #-1184]
	ldr	r2, [fp, #-1204]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-1204]
	add	r3, r3, #1
	str	r3, [fp, #-1204]
.L16:
	ldr	r3, [fp, #-1204]
	cmp	r3, #31
	bls	.L17
	ldr	r3, [fp, #-1196]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-1132]
	ldr	r3, [fp, #-1196]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-1132]
	ldr	r3, [fp, #-1192]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-1132]
	ldr	r3, [fp, #-1192]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-1132]
	sub	r1, fp, #1120
	sub	r1, r1, #4
	sub	r1, r1, #12
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-1188]
	bl	select
	str	r0, [fp, #-1180]
	ldr	r3, [fp, #-1180]
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L26+16
	bl	perror
	b	.L24
.L18:
	ldr	r3, [fp, #-1196]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1132]
	ldr	r3, [fp, #-1196]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L20
	sub	r2, fp, #1200
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1196]
	bl	accept
	str	r0, [fp, #-1176]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-1196]
	bl	close
	ldr	r0, [fp, #-1176]
	bl	childProcess
	mov	r0, #0
	bl	exit
.L21:
	ldr	r0, [fp, #-1176]
	bl	close
	b	.L24
.L20:
	ldr	r3, [fp, #-1192]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1132]
	ldr	r3, [fp, #-1192]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #1008
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #1008
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #256
	mov	r2, #1000
	ldr	r0, [fp, #-1192]
	bl	recvfrom
	mov	r3, #0
	str	r3, [fp, #-1200]
	b	.L22
.L23:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1200]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-1209]
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1200]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-1004]	@ zero_extendqisi2
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1200]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1200]
	sub	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-1209]
	strb	r2, [r3, #-1004]
	ldr	r3, [fp, #-1200]
	add	r3, r3, #1
	str	r3, [fp, #-1200]
.L22:
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	lsr	r2, r3, #1
	ldr	r3, [fp, #-1200]
	cmp	r2, r3
	bhi	.L23
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	ldr	r3, [fp, #-1208]
	sub	r1, fp, #1008
	str	r3, [sp, #4]
	sub	r3, fp, #1152
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #2048
	ldr	r0, [fp, #-1192]
	bl	sendto
	b	.L24
.L27:
	.align	2
.L26:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
