	.file	"248579467.c"
	.intel_syntax noprefix
	.text
	.globl	q
	.bss
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Initializing server..."
.LC1:
	.string	"the_stack_data/248579467.c"
.LC2:
	.string	"argc == 2"
.LC3:
	.string	"sock()"
.LC4:
	.string	"sockaddr()"
.LC5:
	.string	"listen()"
.LC6:
	.string	"Server running on port %d\n"
.LC7:
	.string	"accept()"
.LC9:
	.string	"read()"
.LC11:
	.string	"Received client message %s\n"
.LC12:
	.string	"%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
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -176[rbp], 2
	mov	edi, 8080
	call	htons@PLT
	mov	WORD PTR -174[rbp], ax
	mov	DWORD PTR -172[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	init
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -212[rbp], 2
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -224[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR q[rip], eax
	cmp	DWORD PTR -188[rbp], 0
	jns	.L3
	lea	rdi, .LC3[rip]
	call	die
.L3:
	lea	rcx, -176[rbp]
	mov	eax, DWORD PTR -188[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC4[rip]
	call	die
.L4:
	mov	eax, DWORD PTR -188[rbp]
	mov	esi, 4096
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC5[rip]
	call	die
.L5:
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	esi, 8080
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	lea	rdx, -196[rbp]
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -188[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 0
	jns	.L6
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L7
.L6:
	call	fork@PLT
	test	eax, eax
	jne	.L8
	movss	xmm0, DWORD PTR .LC8[rip]
	movss	DWORD PTR -192[rbp], xmm0
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jns	.L9
	lea	rdi, .LC9[rip]
	call	die
.L9:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -180[rbp], eax
	mov	edx, DWORD PTR -180[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L10
	movss	xmm0, DWORD PTR .LC10[rip]
	movss	DWORD PTR -192[rbp], xmm0
.L10:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -180[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -192[rbp]
	mov	eax, DWORD PTR q[rip]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	addss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	eax, DWORD PTR -184[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC12[rip]
	mov	edi, eax
	mov	eax, 1
	call	dprintf@PLT
	mov	eax, DWORD PTR -184[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -184[rbp]
	mov	edi, eax
	call	close@PLT
.L7:
	jmp	.L11
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	init
	.type	init, @function
init:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 12
	mov	rdi, rax
	call	sigaddset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	lea	rsi, sighandler[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sighandler[rip]
	mov	edi, 12
	call	signal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init, .-init
	.section	.rodata
.LC13:
	.string	"Changin q..."
	.text
	.globl	sighandler
	.type	sighandler, @function
sighandler:
.LFB8:
	.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
	lea	rdi, .LC13[rip]
	call	puts@PLT
	cmp	DWORD PTR -4[rbp], 10
	je	.L15
	cmp	DWORD PTR -4[rbp], 12
	je	.L16
	jmp	.L17
.L15:
	mov	eax, DWORD PTR q[rip]
	add	eax, 1
	mov	DWORD PTR q[rip], eax
	jmp	.L17
.L16:
	mov	eax, DWORD PTR q[rip]
	sub	eax, 1
	mov	DWORD PTR q[rip], eax
	nop
.L17:
	mov	eax, DWORD PTR q[rip]
	mov	edx, 0
	test	eax, eax
	cmovs	eax, edx
	mov	DWORD PTR q[rip], eax
	mov	eax, DWORD PTR q[rip]
	mov	edx, 100
	cmp	eax, 100
	cmovg	eax, edx
	mov	DWORD PTR q[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sighandler, .-sighandler
	.globl	die
	.type	die, @function
die:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	die, .-die
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 4
.LC8:
	.long	1065353216
	.align 4
.LC10:
	.long	1008981770
	.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	"248579467.c"
	.text
	.comm	q,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Initializing server...\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/248579467.c\000"
	.align	2
.LC2:
	.ascii	"argc == 2\000"
	.align	2
.LC3:
	.ascii	"sock()\000"
	.align	2
.LC4:
	.ascii	"sockaddr()\000"
	.align	2
.LC5:
	.ascii	"listen()\000"
	.align	2
.LC6:
	.ascii	"Server running on port %d\012\000"
	.align	2
.LC7:
	.ascii	"accept()\000"
	.align	2
.LC8:
	.ascii	"read()\000"
	.align	2
.LC9:
	.ascii	"Received client message %s\012\000"
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.align	2
.LC10:
	.ascii	"%f\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 = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #204
	str	r0, [fp, #-208]
	str	r1, [fp, #-212]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #2
	strh	r3, [fp, #-184]	@ movhi
	ldr	r0, .L13+4
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-182]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-180]
	ldr	r0, .L13+8
	bl	puts
	sub	r3, fp, #152
	mov	r0, r3
	bl	init
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-208]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L13+12
	mov	r2, #33
	ldr	r1, .L13+16
	ldr	r0, .L13+20
	bl	__assert_fail
.L2:
	ldr	r3, [fp, #-212]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L13+24
	str	r3, [r2]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L13+28
	bl	die
.L3:
	sub	r3, fp, #184
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L13+32
	bl	die
.L4:
	mov	r1, #4096
	ldr	r0, [fp, #-196]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L13+36
	bl	die
.L5:
	sub	r3, fp, #152
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	ldr	r1, .L13+4
	ldr	r0, .L13+40
	bl	printf
.L11:
	sub	r2, fp, #204
	sub	r3, fp, #168
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	accept
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L13+44
	bl	perror
	b	.L7
.L6:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, #1065353216
	str	r3, [fp, #-200]	@ float
	sub	r3, fp, #24
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L13+48
	bl	die
.L9:
	sub	r3, fp, #24
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-188]
	ldr	r1, [fp, #-188]
	ldr	r3, .L13+52
	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
	cmp	r2, #0
	bne	.L10
	ldr	r3, .L13+56
	str	r3, [fp, #-200]	@ float
.L10:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L13+60
	bl	printf
	ldr	r0, [fp, #-188]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-200]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, .L13+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L13+64
	ldr	r0, [fp, #-192]
	bl	dprintf
	ldr	r0, [fp, #-192]
	bl	close
	mov	r0, #0
	bl	exit
.L8:
	ldr	r0, [fp, #-192]
	bl	close
.L7:
	b	.L11
.L14:
	.align	2
.L13:
	.word	.LC11
	.word	8080
	.word	.LC0
	.word	__PRETTY_FUNCTION__.6472
	.word	.LC1
	.word	.LC2
	.word	q
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	1374389535
	.word	1008981770
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	sigemptyset
	mov	r1, #10
	ldr	r0, [fp, #-8]
	bl	sigaddset
	mov	r1, #12
	ldr	r0, [fp, #-8]
	bl	sigaddset
	mov	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	sigprocmask
	ldr	r1, .L16
	mov	r0, #10
	bl	signal
	ldr	r1, .L16
	mov	r0, #12
	bl	signal
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	sighandler
	.size	init, .-init
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Changin q...\000"
	.text
	.align	2
	.global	sighandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler, %function
sighandler:
	@ 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]
	ldr	r0, .L22
	bl	puts
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	beq	.L19
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	beq	.L20
	b	.L21
.L19:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+4
	str	r3, [r2]
	b	.L21
.L20:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L22+4
	str	r3, [r2]
	nop
.L21:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	bic	r3, r3, r3, asr #31
	ldr	r2, .L22+4
	str	r3, [r2]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #100
	movlt	r3, r3
	movge	r3, #100
	ldr	r2, .L22+4
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	q
	.size	sighandler, .-sighandler
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	die, .-die
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6472, %object
	.size	__PRETTY_FUNCTION__.6472, 5
__PRETTY_FUNCTION__.6472:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
