	.file	"752468.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Socket!!!"
.LC1:
	.string	"bind!!!"
.LC2:
	.string	"sender"
.LC3:
	.string	"sender go!\n"
.LC4:
	.string	"receiver go!\n"
.LC5:
	.string	"%s %*s"
.LC6:
	.string	"r"
.LC7:
	.string	"%*s %d %*s"
.LC8:
	.string	"get finack\nfwd finack"
.LC9:
	.string	"get ack #%d\n"
.LC10:
	.string	"fwd ack #%d\n"
.LC11:
	.string	"s"
.LC12:
	.string	"get fin"
.LC13:
	.string	"fwd fin"
.LC14:
	.string	"get data #%d\n"
.LC16:
	.string	"fwd data #%d, loss rate = %f\n"
	.align 8
.LC17:
	.string	"drop data #%d, loss rate = %f\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 200
	.cfi_offset 3, -24
	mov	DWORD PTR -4292[rbp], edi
	mov	QWORD PTR -4304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4284[rbp], 16
	mov	DWORD PTR -4280[rbp], 16
	mov	rax, QWORD PTR -4304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4260[rbp], eax
	mov	rax, QWORD PTR -4304[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4256[rbp], xmm0
	mov	rax, QWORD PTR -4304[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4252[rbp], eax
	cmp	DWORD PTR -4252[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L22
.L2:
	mov	QWORD PTR -4240[rbp], 0
	mov	QWORD PTR -4232[rbp], 1000
	lea	rax, -4224[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -4224[rbp], 2
	mov	eax, DWORD PTR -4260[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -4222[rbp], ax
	mov	rax, QWORD PTR -4304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -4220[rbp], eax
	lea	rcx, -4224[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L22
.L6:
	nop
.L5:
	lea	rcx, -4284[rbp]
	lea	rdx, -4208[rbp]
	lea	rsi, -4032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	js	.L6
	lea	rax, -4032[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -4208[rbp]
	mov	rdx, QWORD PTR -4200[rbp]
	mov	QWORD PTR -4192[rbp], rax
	mov	QWORD PTR -4184[rbp], rdx
	jmp	.L8
.L9:
	nop
.L8:
	lea	rcx, -4280[rbp]
	lea	rdx, -4208[rbp]
	lea	rsi, -4032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	js	.L9
	jmp	.L10
.L7:
	lea	rax, -4032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L11
.L12:
	nop
.L11:
	lea	rcx, -4284[rbp]
	lea	rdx, -4192[rbp]
	lea	rsi, -4032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recvfrom@PLT
	test	rax, rax
	js	.L12
.L10:
	mov	eax, DWORD PTR -4284[rbp]
	mov	ecx, eax
	lea	rdx, -4208[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 20
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	eax, DWORD PTR -4280[rbp]
	mov	ecx, eax
	lea	rdx, -4192[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9d, ecx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 20
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -4268[rbp], 0
	mov	DWORD PTR -4264[rbp], 0
.L21:
	lea	rax, -4032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -4276[rbp]
	lea	rdx, -4176[rbp]
	lea	rsi, -4032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2000
	mov	edi, eax
	call	recvfrom@PLT
	lea	rdx, -4154[rbp]
	lea	rax, -4032[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	lea	rax, -4154[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	lea	rdx, -4272[rbp]
	lea	rax, -4032[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	lea	rdx, -4032[rbp]
	lea	rax, -2032[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -4284[rbp]
	mov	ebx, eax
	lea	rax, -2032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -4208[rbp]
	lea	rsi, -2032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	eax, DWORD PTR -4272[rbp]
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L22
.L14:
	mov	eax, DWORD PTR -4272[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4272[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L21
.L13:
	lea	rax, -4154[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L21
	lea	rdx, -4272[rbp]
	lea	rax, -4032[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	lea	rax, -2032[rbp]
	mov	edx, 2000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -4032[rbp]
	lea	rax, -2032[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -4272[rbp]
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4280[rbp]
	mov	ebx, eax
	lea	rax, -2032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -4192[rbp]
	lea	rsi, -2032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	jmp	.L21
.L16:
	mov	eax, DWORD PTR -4272[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, edx
	movss	xmm2, DWORD PTR -4256[rbp]
	movss	xmm1, DWORD PTR .LC15[rip]
	mulss	xmm1, xmm2
	comiss	xmm0, xmm1
	jbe	.L25
	mov	eax, DWORD PTR -4280[rbp]
	mov	ebx, eax
	lea	rax, -2032[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	lea	rcx, -4192[rbp]
	lea	rsi, -2032[rbp]
	mov	eax, DWORD PTR -4252[rbp]
	mov	r9d, ebx
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	add	DWORD PTR -4268[rbp], 1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -4264[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -4268[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -4264[rbp]
	addss	xmm1, xmm2
	divss	xmm0, xmm1
	movss	DWORD PTR -4244[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -4244[rbp]
	movq	rdx, xmm3
	mov	eax, DWORD PTR -4272[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L21
.L25:
	add	DWORD PTR -4264[rbp], 1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -4264[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -4268[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -4264[rbp]
	addss	xmm1, xmm2
	divss	xmm0, xmm1
	movss	DWORD PTR -4248[rbp], xmm0
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -4248[rbp]
	movq	rdx, xmm4
	mov	eax, DWORD PTR -4272[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L21
.L22:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC15:
	.long	1120403456
	.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	"752468.c"
	.text
	.global	__aeabi_d2f
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket!!!\000"
	.align	2
.LC1:
	.ascii	"bind!!!\000"
	.align	2
.LC2:
	.ascii	"sender\000"
	.align	2
.LC3:
	.ascii	"sender go!\012\000"
	.align	2
.LC4:
	.ascii	"receiver go!\012\000"
	.align	2
.LC5:
	.ascii	"%s %*s\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"%*s %d %*s\000"
	.align	2
.LC8:
	.ascii	"get finack\012fwd finack\000"
	.align	2
.LC9:
	.ascii	"get ack #%d\012\000"
	.align	2
.LC10:
	.ascii	"fwd ack #%d\012\000"
	.align	2
.LC11:
	.ascii	"s\000"
	.align	2
.LC12:
	.ascii	"get fin\000"
	.align	2
.LC13:
	.ascii	"fwd fin\000"
	.align	2
.LC14:
	.ascii	"get data #%d\012\000"
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fcmpgt
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC15:
	.ascii	"fwd data #%d, loss rate = %f\012\000"
	.align	2
.LC16:
	.ascii	"drop data #%d, loss rate = %f\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4224
	sub	sp, sp, #24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-140]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-144]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-136]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-132]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-112]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4, #-108]	@ float
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-104]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L26+4
	bl	puts
	mov	r3, #0
	b	.L22
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-92]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1000
	str	r3, [r2, #-88]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-84]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	strh	r2, [r3, #-82]	@ movhi
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-80]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-104]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L26+8
	bl	puts
	mov	r3, #0
	b	.L22
.L6:
	nop
.L5:
	sub	r1, fp, #4000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp, #4]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [r0, #-104]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	blt	.L6
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L26+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	ip, r2, #52
	sub	r3, r3, #68
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L8
.L9:
	nop
.L8:
	sub	r1, fp, #4000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [r0, #-104]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	blt	.L9
	b	.L10
.L7:
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L11
.L12:
	nop
.L11:
	sub	r1, fp, #4000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #52
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [r0, #-104]
	bl	recvfrom
	mov	r3, r0
	cmp	r3, #0
	blt	.L12
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	str	r3, [sp, #4]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #20
	ldr	r1, .L26+16
	ldr	r0, [r0, #-104]
	bl	sendto
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #52
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #20
	ldr	r1, .L26+20
	ldr	r0, [r0, #-104]
	bl	sendto
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-116]
.L21:
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #4000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2000
	ldr	r0, [r0, #-104]
	bl	recvfrom
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L26+24
	mov	r0, r3
	bl	__isoc99_sscanf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L26+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #60
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L26+32
	mov	r0, r3
	bl	__isoc99_sscanf
	sub	r2, fp, #4000
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	sub	r1, fp, #2000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r3, [sp, #4]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-104]
	bl	sendto
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L26+36
	bl	puts
	mov	r3, #0
	b	.L22
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	mov	r1, r3
	ldr	r0, .L26+40
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	mov	r1, r3
	ldr	r0, .L26+44
	bl	printf
	b	.L21
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L26+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	sub	r2, fp, #4160
	sub	r2, r2, #12
	sub	r2, r2, #60
	sub	r3, fp, #4000
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L26+32
	mov	r0, r3
	bl	__isoc99_sscanf
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #2000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #4000
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L26+52
	bl	puts
	ldr	r0, .L26+56
	bl	puts
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	sub	r1, fp, #2000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #52
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-104]
	bl	sendto
	b	.L21
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	mov	r1, r3
	ldr	r0, .L26+60
	bl	printf
	bl	rand
	mov	r1, r0
	ldr	r3, .L26+64
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2f
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L26+68
	ldr	r0, [r3, #-108]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	sub	r1, fp, #2000
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r0, fp, #4096
	sub	r0, r0, #12
	str	r3, [sp, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #52
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-104]
	bl	sendto
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	add	r3, r3, #1
	str	r3, [r2, #-120]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	__aeabi_i2f
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-120]
	bl	__aeabi_i2f
	mov	r5, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r5, r3
	mov	r1, r2
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r5, #-96]	@ float
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r4, [r3, #-124]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-96]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L26+72
	bl	printf
	b	.L21
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r3, r3, #1
	str	r3, [r2, #-116]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	__aeabi_i2f
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-120]
	bl	__aeabi_i2f
	mov	r5, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-116]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r5, r3
	mov	r1, r2
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [r5, #-100]	@ float
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r4, [r3, #-124]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-100]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r1, r4
	ldr	r0, .L26+76
	bl	printf
	b	.L21
.L22:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC17
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	1374389535
	.word	1120403456
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
