	.file	"843409.c"
	.intel_syntax noprefix
	.text
	.globl	interrupted
	.bss
	.align 4
	.type	interrupted, @object
	.size	interrupted, 4
interrupted:
	.zero	4
	.text
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR interrupted[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_handler, .-signal_handler
	.section	.rodata
.LC0:
	.string	"/dev/mem"
.LC1:
	.string	"open"
.LC2:
	.string	"socket"
.LC3:
	.string	"bind"
.LC4:
	.string	"accept"
	.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 0
	mov	DWORD PTR -148[rbp], 600000
	mov	DWORD PTR -140[rbp], 100000
	mov	DWORD PTR -132[rbp], 50000000
	mov	DWORD PTR -144[rbp], 1
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L3:
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -128[rbp]
	mov	r9d, 1073741824
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -128[rbp]
	mov	r9d, 1073745920
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -128[rbp]
	mov	r9d, 1073750016
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L5:
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -64[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -64[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	edi, 1001
	call	htons@PLT
	mov	WORD PTR -62[rbp], ax
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L6:
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 1024
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -152[rbp], 16
	mov	DWORD PTR -120[rbp], 128
	jmp	.L7
.L35:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -16
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 5153961
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 625
	lea	rdx, -152[rbp]
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L8
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L8:
	call	fork@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], 0
	jne	.L9
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	jns	.L10
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L10:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 1002
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	lea	rsi, signal_handler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	DWORD PTR -136[rbp], 128
	jmp	.L12
.L19:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -136[rbp], 0
	jle	.L13
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jg	.L14
.L13:
	cmp	DWORD PTR -136[rbp], 0
	jne	.L15
	cmp	DWORD PTR -104[rbp], 383
	jg	.L15
.L14:
	cmp	DWORD PTR -136[rbp], 0
	jle	.L16
	mov	eax, DWORD PTR -136[rbp]
	add	eax, -128
	sal	eax, 3
	jmp	.L17
.L16:
	mov	eax, 3072
.L17:
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -108[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	send@PLT
	sub	DWORD PTR -136[rbp], -128
	cmp	DWORD PTR -136[rbp], 512
	jne	.L12
	mov	DWORD PTR -136[rbp], 0
	jmp	.L12
.L15:
	mov	edi, 100
	call	usleep@PLT
.L12:
	mov	eax, DWORD PTR interrupted[rip]
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	jmp	.L36
.L9:
	cmp	DWORD PTR -112[rbp], 0
	jle	.L7
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 15
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L20
.L34:
	lea	rsi, -148[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	je	.L38
	mov	eax, DWORD PTR -148[rbp]
	shr	eax, 31
	test	eax, eax
	je	.L23
	cmp	eax, 1
	je	.L24
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -148[rbp]
	cmp	DWORD PTR -140[rbp], eax
	ja	.L20
	mov	eax, DWORD PTR -148[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jnb	.L26
	jmp	.L20
.L26:
	mov	eax, DWORD PTR -148[rbp]
	mov	eax, eax
	test	rax, rax
	js	.L27
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L28
.L27:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L28:
	movsd	xmm2, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	floor@PLT
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 4
	cvttsd2si	rdx, xmm0
	mov	DWORD PTR [rax], edx
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -148[rbp]
	and	eax, 3
	cmp	eax, 3
	je	.L29
	cmp	eax, 3
	ja	.L39
	cmp	eax, 2
	je	.L31
	cmp	eax, 2
	ja	.L39
	test	eax, eax
	je	.L32
	cmp	eax, 1
	je	.L33
	jmp	.L39
.L32:
	mov	DWORD PTR -140[rbp], 75000
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 1250
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L30
.L33:
	mov	DWORD PTR -140[rbp], 100000
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 625
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L30
.L31:
	mov	DWORD PTR -140[rbp], 175000
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 250
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L30
.L29:
	mov	DWORD PTR -140[rbp], 300000
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 125
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	nop
.L30:
.L39:
	nop
.L20:
	mov	eax, DWORD PTR interrupted[rip]
	test	eax, eax
	je	.L34
	jmp	.L22
.L38:
	nop
.L22:
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
.L7:
	mov	eax, DWORD PTR interrupted[rip]
	test	eax, eax
	je	.L35
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	and	eax, -16
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L36:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1100860773
	.align 8
.LC6:
	.long	0
	.long	1104150528
	.align 8
.LC7:
	.long	0
	.long	1071644672
	.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	"843409.c"
	.text
	.global	interrupted
	.bss
	.align	2
	.type	interrupted, %object
	.size	interrupted, 4
interrupted:
	.space	4
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L2
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	interrupted
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mem\000"
	.align	2
.LC1:
	.ascii	"open\000"
	.align	2
.LC2:
	.ascii	"socket\000"
	.align	2
.LC3:
	.ascii	"bind\000"
	.align	2
.LC4:
	.ascii	"accept\000"
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #148
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	ldr	r3, .L41+4
	str	r3, [fp, #-132]
	ldr	r3, .L41+8
	str	r3, [fp, #-124]
	ldr	r3, .L41+12
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-128]
	mov	r1, #2
	ldr	r0, .L41+16
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L41+20
	bl	perror
	mov	r3, #1
	b	.L37
.L5:
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	mov	r3, #1073741824
	str	r3, [sp, #4]
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-104]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L41+24
	str	r3, [sp, #4]
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-100]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L41+28
	str	r3, [sp, #4]
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-96]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L41+32
	bl	perror
	mov	r3, #1
	b	.L37
.L7:
	sub	r3, fp, #128
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	setsockopt
	sub	r3, fp, #64
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-64]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r0, .L41+36
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-62]	@ movhi
	sub	r3, fp, #64
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L41+40
	bl	perror
	mov	r3, #1
	b	.L37
.L8:
	mov	r1, #1024
	ldr	r0, [fp, #-92]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-136]
	mov	r3, #128
	str	r3, [fp, #-88]
	b	.L9
.L36:
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	bic	r2, r3, #15
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #4
	ldr	r2, .L41+44
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #8
	ldr	r2, .L41+48
	str	r2, [r3]
	sub	r2, fp, #136
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	accept
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L41+52
	bl	perror
	mov	r3, #1
	b	.L37
.L10:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L11
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L41+32
	bl	perror
	mov	r3, #1
	b	.L37
.L12:
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r0, .L41+56
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-76]
	bl	connect
	ldr	r1, .L41+60
	mov	r0, #2
	bl	signal
	mov	r3, #128
	str	r3, [fp, #-120]
	b	.L14
.L21:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L15
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	bgt	.L16
.L15:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-72]
	cmp	r3, #384
	bge	.L17
.L16:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	ble	.L18
	ldr	r3, [fp, #-120]
	sub	r3, r3, #128
	lsl	r3, r3, #3
	b	.L19
.L18:
	mov	r3, #3072
.L19:
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-96]
	add	r1, r2, r3
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-76]
	bl	send
	ldr	r3, [fp, #-120]
	add	r3, r3, #128
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #512
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L14
.L17:
	mov	r0, #100
	bl	usleep
.L14:
	ldr	r3, .L41+64
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r0, [fp, #-76]
	bl	close
	mov	r3, #0
	b	.L37
.L11:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	ble	.L9
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	orr	r2, r3, #15
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	b	.L22
.L35:
	sub	r1, fp, #132
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-84]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-132]
	lsr	r3, r3, #31
	cmp	r3, #0
	beq	.L25
	cmp	r3, #1
	beq	.L26
	b	.L22
.L25:
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	bhi	.L22
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bcs	.L28
	b	.L22
.L28:
	ldr	r3, [fp, #-132]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L41+68
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L41+72
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L41+76
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-104]
	add	r4, r1, #4
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [r4]
	b	.L22
.L26:
	ldr	r3, [fp, #-132]
	and	r3, r3, #3
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L40
.L31:
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L30
.L34:
	ldr	r3, .L41+80
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	bic	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #8
	ldr	r2, .L41+84
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	orr	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	b	.L29
.L33:
	ldr	r3, .L41+8
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	bic	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #8
	ldr	r2, .L41+48
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	orr	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	b	.L29
.L32:
	ldr	r3, .L41+88
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	bic	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #8
	mov	r2, #250
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	orr	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	b	.L29
.L30:
	ldr	r3, .L41+92
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	bic	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #8
	mov	r2, #125
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	orr	r2, r3, #8
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	nop
.L29:
.L40:
	nop
.L22:
	ldr	r3, .L41+64
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L35
	b	.L24
.L39:
	nop
.L24:
	mov	r1, #15
	ldr	r0, [fp, #-80]
	bl	kill
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-80]
	bl	waitpid
	ldr	r0, [fp, #-84]
	bl	close
.L9:
	ldr	r3, .L41+64
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-92]
	bl	close
	ldr	r3, [fp, #-104]
	ldr	r3, [r3]
	bic	r2, r3, #15
	ldr	r3, [fp, #-104]
	str	r2, [r3]
	mov	r3, #0
.L37:
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC5
	.word	600000
	.word	100000
	.word	50000000
	.word	.LC0
	.word	.LC1
	.word	1073745920
	.word	1073750016
	.word	.LC2
	.word	1001
	.word	.LC3
	.word	5153961
	.word	625
	.word	.LC4
	.word	1002
	.word	signal_handler
	.word	interrupted
	.word	1100860773
	.word	1104150528
	.word	1071644672
	.word	75000
	.word	1250
	.word	175000
	.word	300000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
