	.file	"42218.c"
	.intel_syntax noprefix
	.text
	.globl	port
	.data
	.align 4
	.type	port, @object
	.size	port, 4
port:
	.long	5556
	.text
	.globl	onchild
	.type	onchild, @function
onchild:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L4:
	lea	rax, -16[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, -1
	mov	eax, 0
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jle	.L7
	jmp	.L4
.L7:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	onchild, .-onchild
	.section	.rodata
.LC0:
	.string	"Binding to port %d\n"
.LC1:
	.string	"Cannot bind: %m\n"
.LC2:
	.string	"Write failed\n"
.LC3:
	.string	"Read %d bytes\n"
.LC4:
	.string	"Read failed\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, 416
	mov	DWORD PTR -404[rbp], edi
	mov	QWORD PTR -416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -400[rbp], 1
	lea	rsi, onchild[rip]
	mov	edi, 17
	call	signal@PLT
	mov	esi, 65537
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -336[rbp], rax
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, 65536
	mov	esi, 69
	mov	rdi, rax
	call	memset@PLT
	mov	esi, 65537
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -328[rbp], rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, 65536
	mov	esi, 68
	mov	rdi, rax
	call	memset@PLT
	cmp	DWORD PTR -404[rbp], 1
	jle	.L9
	mov	rax, QWORD PTR -416[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR port[rip], eax
.L9:
	mov	edx, DWORD PTR port[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -388[rbp], eax
	lea	rdx, -400[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -304[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -304[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -302[rbp], ax
	lea	rcx, -304[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -388[rbp]
	mov	esi, 1024
	mov	edi, eax
	call	listen@PLT
.L20:
	mov	DWORD PTR -396[rbp], 16
	lea	rdx, -396[rbp]
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -384[rbp], eax
	mov	eax, DWORD PTR -384[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -380[rbp], eax
	mov	eax, DWORD PTR -380[rbp]
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -384[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	call	fork@PLT
	mov	DWORD PTR -376[rbp], eax
	cmp	DWORD PTR -376[rbp], 0
	jne	.L20
	mov	eax, DWORD PTR -388[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -392[rbp], 1
	mov	DWORD PTR -372[rbp], 0
	mov	DWORD PTR -368[rbp], 0
.L19:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -272[rbp]
	mov	rdi, rdx
#APP
# 97 "the_stack_data/42218.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -364[rbp], edx
	mov	DWORD PTR -360[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 98 "the_stack_data/42218.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -356[rbp], edx
	mov	DWORD PTR -352[rbp], eax
	mov	eax, DWORD PTR -384[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -384[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 -272[rbp+rax*8], rdx
	cmp	DWORD PTR -392[rbp], 0
	je	.L16
	mov	eax, DWORD PTR -384[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -384[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 -144[rbp+rax*8], rdx
.L16:
	cmp	DWORD PTR -392[rbp], 0
	jne	.L13
	mov	QWORD PTR -320[rbp], 1
	mov	QWORD PTR -312[rbp], 0
	mov	DWORD PTR -392[rbp], 1
	jmp	.L14
.L13:
	mov	QWORD PTR -320[rbp], 0
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 1000
	sub	eax, ecx
	mov	edx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, 1
	mov	QWORD PTR -312[rbp], rax
	mov	DWORD PTR -392[rbp], 0
.L14:
	mov	eax, DWORD PTR -384[rbp]
	lea	edi, 1[rax]
	lea	rcx, -320[rbp]
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -348[rbp], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -368[rbp], eax
	mov	DWORD PTR -372[rbp], 0
	cmp	DWORD PTR -348[rbp], -1
	jne	.L15
	cmp	DWORD PTR -368[rbp], 4
	jne	.L15
	cmp	DWORD PTR -372[rbp], 0
	je	.L16
.L15:
	mov	eax, DWORD PTR -384[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -384[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	.L17
	call	rand@PLT
	cdq
	shr	edx, 16
	add	eax, edx
	movzx	eax, ax
	sub	eax, edx
	add	eax, 1
	movsx	rdx, eax
	mov	rcx, QWORD PTR -336[rbp]
	mov	eax, DWORD PTR -384[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -344[rbp], eax
	cmp	DWORD PTR -344[rbp], 0
	jg	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -384[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	mov	eax, DWORD PTR -384[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -384[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	.L19
	mov	rcx, QWORD PTR -328[rbp]
	mov	eax, DWORD PTR -384[rbp]
	mov	edx, 65536
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -340[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -340[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -340[rbp], 0
	jg	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -384[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"42218.c"
	.text
	.global	port
	.data
	.align	2
	.type	port, %object
	.size	port, 4
port:
	.word	5556
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	onchild
	.syntax unified
	.arm
	.fpu softvfp
	.type	onchild, %function
onchild:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L4:
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L7
	b	.L4
.L7:
	nop
	nop
	ldr	r3, .L8
	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}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	onchild, .-onchild
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Binding to port %d\012\000"
	.align	2
.LC2:
	.ascii	"Cannot bind: %m\012\000"
	.align	2
.LC3:
	.ascii	"Write failed\012\000"
	.align	2
.LC4:
	.ascii	"Read %d bytes\012\000"
	.align	2
.LC5:
	.ascii	"Read failed\012\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 = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	str	r0, [fp, #-384]
	str	r1, [fp, #-388]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-376]
	ldr	r1, .L28+4
	mov	r0, #17
	bl	signal
	ldr	r1, .L28+8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-356]
	mov	r2, #65536
	mov	r1, #69
	ldr	r0, [fp, #-356]
	bl	memset
	ldr	r1, .L28+8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-352]
	mov	r2, #65536
	mov	r1, #68
	ldr	r0, [fp, #-352]
	bl	memset
	ldr	r3, [fp, #-384]
	cmp	r3, #1
	ble	.L11
	ldr	r3, [fp, #-388]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L28+12
	str	r3, [r2]
.L11:
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r2, .L28+12
	ldr	r2, [r2]
	ldr	r1, .L28+20
	mov	r0, r3
	bl	fprintf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-348]
	sub	r3, fp, #376
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-348]
	bl	setsockopt
	sub	r3, fp, #296
	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, #292
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-292]
	ldr	r3, .L28+12
	ldr	r3, [r3]
	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, #292
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #296
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-348]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r1, .L28+24
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L12:
	mov	r1, #1024
	ldr	r0, [fp, #-348]
	bl	listen
.L26:
	mov	r3, #16
	str	r3, [fp, #-372]
	sub	r2, fp, #372
	sub	r3, fp, #280
	mov	r1, r3
	ldr	r0, [fp, #-348]
	bl	accept
	str	r0, [fp, #-344]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-344]
	bl	fcntl
	str	r0, [fp, #-340]
	ldr	r3, [fp, #-340]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-344]
	bl	fcntl
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-336]
	ldr	r3, [fp, #-336]
	cmp	r3, #0
	bne	.L26
	ldr	r0, [fp, #-348]
	bl	close
	mov	r3, #1
	str	r3, [fp, #-368]
	mov	r3, #0
	str	r3, [fp, #-332]
	mov	r3, #0
	str	r3, [fp, #-328]
.L25:
	sub	r3, fp, #264
	str	r3, [fp, #-324]
	mov	r3, #0
	str	r3, [fp, #-364]
	b	.L14
.L15:
	ldr	r3, [fp, #-324]
	ldr	r2, [fp, #-364]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	str	r3, [fp, #-364]
.L14:
	ldr	r3, [fp, #-364]
	cmp	r3, #31
	bls	.L15
	sub	r3, fp, #136
	str	r3, [fp, #-320]
	mov	r3, #0
	str	r3, [fp, #-360]
	b	.L16
.L17:
	ldr	r3, [fp, #-320]
	ldr	r2, [fp, #-360]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-360]
	add	r3, r3, #1
	str	r3, [fp, #-360]
.L16:
	ldr	r3, [fp, #-360]
	cmp	r3, #31
	bls	.L17
	ldr	r3, [fp, #-344]
	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, #-260]
	ldr	r3, [fp, #-344]
	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, #-260]
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-344]
	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, #-132]
	ldr	r3, [fp, #-344]
	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, #-132]
.L22:
	ldr	r3, [fp, #-368]
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	str	r3, [fp, #-304]
	mov	r3, #0
	str	r3, [fp, #-300]
	mov	r3, #1
	str	r3, [fp, #-368]
	b	.L20
.L19:
	mov	r3, #0
	str	r3, [fp, #-304]
	bl	rand
	mov	r1, r0
	ldr	r3, .L28+28
	smull	r2, r3, r1, r3
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #1
	str	r3, [fp, #-300]
	mov	r3, #0
	str	r3, [fp, #-368]
.L20:
	ldr	r3, [fp, #-344]
	add	r0, r3, #1
	sub	r2, fp, #136
	sub	r1, fp, #264
	sub	r3, fp, #304
	str	r3, [sp]
	mov	r3, #0
	bl	select
	str	r0, [fp, #-316]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-328]
	mov	r3, #0
	str	r3, [fp, #-332]
	ldr	r3, [fp, #-316]
	cmn	r3, #1
	bne	.L21
	ldr	r3, [fp, #-328]
	cmp	r3, #4
	bne	.L21
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	beq	.L22
.L21:
	ldr	r3, [fp, #-344]
	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, #-132]
	ldr	r3, [fp, #-344]
	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	.L23
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	rsbpl	r3, r2, #0
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-356]
	ldr	r0, [fp, #-344]
	bl	write
	str	r0, [fp, #-312]
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bgt	.L23
	ldr	r3, .L28+16
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L28+32
	bl	fwrite
	ldr	r0, [fp, #-344]
	bl	close
	mov	r0, #0
	bl	exit
.L23:
	ldr	r3, [fp, #-344]
	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, #-260]
	ldr	r3, [fp, #-344]
	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	.L25
	mov	r2, #65536
	ldr	r1, [fp, #-352]
	ldr	r0, [fp, #-344]
	bl	read
	str	r0, [fp, #-308]
	ldr	r3, .L28+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-308]
	ldr	r1, .L28+36
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bgt	.L25
	ldr	r3, .L28+16
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L28+40
	bl	fwrite
	ldr	r0, [fp, #-344]
	bl	close
	mov	r0, #0
	bl	exit
.L29:
	.align	2
.L28:
	.word	.LC6
	.word	onchild
	.word	65537
	.word	port
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	274877907
	.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
