	.file	"353904.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Invalid number of command line arguements"
	.align 8
.LC1:
	.string	"<./a.out> <total # of players> <inputfile 1> <inputfile 2> <inputfile 3> <outputfile>\n"
	.align 8
.LC2:
	.string	"Unable to allocate memory for the players."
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 6
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 2
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	read_from_file
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, [rax+rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	edi, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, edi
	mov	rdi, rax
	call	read_from_file
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edi, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, edx
	mov	edx, edi
	mov	rdi, rax
	call	read_from_file
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculate_slugging
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sort_array
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	write_to_file
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"r"
.LC4:
	.string	"Unable to open input file."
.LC5:
	.string	"%s"
.LC6:
	.string	"%d"
	.text
	.globl	read_from_file
	.type	read_from_file, @function
read_from_file:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 25[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 52[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 60[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 68[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	QWORD PTR -32[rbp], 76
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_from_file, .-read_from_file
	.globl	calculate_slugging
	.type	calculate_slugging, @function
calculate_slugging:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 52[rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	add	eax, eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	addss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 60[rax]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	addss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 64[rax]
	sal	eax, 2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 68[rax]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR 72[rax], xmm0
	add	QWORD PTR -24[rbp], 76
	add	DWORD PTR -4[rbp], 1
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L12
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	calculate_slugging, .-calculate_slugging
	.globl	sort_array
	.type	sort_array, @function
sort_array:
.LFB9:
	.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, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -136[rbp], rdi
	mov	DWORD PTR -140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -120[rbp], 0
	jmp	.L14
.L19:
	mov	DWORD PTR -116[rbp], 0
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR 72[rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR 72[rax]
	comiss	xmm0, xmm1
	jbe	.L16
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -104[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -88[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rbx
	mov	rcx, QWORD PTR 48[rax]
	mov	rbx, QWORD PTR 56[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rdx, QWORD PTR 64[rax]
	mov	QWORD PTR -48[rbp], rdx
	mov	eax, DWORD PTR 72[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -116[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 3
	add	rax, rcx
	add	rax, rax
	add	rax, rcx
	sal	rax, 2
	mov	rcx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR 48[rdx]
	mov	rbx, QWORD PTR 56[rdx]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR 64[rdx]
	mov	QWORD PTR 64[rax], rcx
	mov	edx, DWORD PTR 72[rdx]
	mov	DWORD PTR 72[rax], edx
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rdx, QWORD PTR -48[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR 72[rax], edx
.L16:
	add	DWORD PTR -116[rbp], 1
.L15:
	mov	eax, DWORD PTR -140[rbp]
	sub	eax, DWORD PTR -120[rbp]
	sub	eax, 1
	cmp	DWORD PTR -116[rbp], eax
	jl	.L18
	add	DWORD PTR -120[rbp], 1
.L14:
	mov	eax, DWORD PTR -140[rbp]
	sub	eax, 1
	cmp	DWORD PTR -120[rbp], eax
	jl	.L19
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sort_array, .-sort_array
	.section	.rodata
.LC7:
	.string	"w"
.LC8:
	.string	"Unable to open output file."
.LC9:
	.string	"%s "
.LC10:
	.string	"%d "
.LC11:
	.string	"%.4f "
	.text
	.globl	write_to_file
	.type	write_to_file, @function
write_to_file:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L23
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L22
.L23:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L26:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 25[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 52[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 60[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 64[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 68[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR 72[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	QWORD PTR -32[rbp], 76
	add	DWORD PTR -12[rbp], 1
.L25:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L26
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	write_to_file, .-write_to_file
	.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	"353904.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid number of command line arguements\000"
	.align	2
.LC1:
	.ascii	"<./a.out> <total # of players> <inputfile 1> <input"
	.ascii	"file 2> <inputfile 3> <outputfile>\012\000"
	.align	2
.LC2:
	.ascii	"Unable to allocate memory for the players.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #6
	beq	.L2
	ldr	r0, .L5
	bl	puts
	ldr	r0, .L5+4
	bl	puts
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L5+8
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L5+12
	bl	puts
	mov	r3, #2
	b	.L3
.L4:
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-8]
	bl	read_from_file
	ldr	r3, [fp, #-28]
	add	r3, r3, #12
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, r2
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	bl	read_from_file
	ldr	r3, [fp, #-28]
	add	r3, r3, #16
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r1, r3, r2
	ldr	r3, [fp, #-16]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	bl	read_from_file
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	calculate_slugging
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	sort_array
	ldr	r3, [fp, #-28]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	write_to_file
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	1431655766
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"Unable to open input file.\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.text
	.align	2
	.global	read_from_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_from_file, %function
read_from_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r1, .L12
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L12+4
	bl	puts
	b	.L7
.L8:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	b	.L10
.L11:
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, .L12+8
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #25
	mov	r2, r3
	ldr	r1, .L12+8
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #52
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #56
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #60
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #64
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #68
	mov	r2, r3
	ldr	r1, .L12+12
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-20]
	add	r3, r3, #76
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L11
	ldr	r0, [fp, #-8]
	bl	fclose
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	read_from_file, .-read_from_file
	.global	__aeabi_i2f
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.align	2
	.global	calculate_slugging
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculate_slugging, %function
calculate_slugging:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L15
.L16:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #52]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #56]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #64]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #68]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #72]	@ float
	ldr	r3, [fp, #-24]
	add	r3, r3, #76
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L16
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	calculate_slugging, .-calculate_slugging
	.global	__aeabi_fcmplt
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sort_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_array, %function
sort_array:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L18
.L23:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L19
.L22:
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	ldr	r0, [r3, #72]	@ float
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	ldr	r3, [r3, #72]	@ float
	mov	r1, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r2, r3, r2
	sub	r3, fp, #84
	mov	r1, r2
	mov	r2, #76
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r1, r3, r2
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	mov	r3, #76
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r3, r2
	mov	r0, r3
	sub	r3, fp, #84
	mov	r2, #76
	mov	r1, r3
	bl	memcpy
.L20:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L19:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-92]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L18:
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L23
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.size	sort_array, .-sort_array
	.section	.rodata
	.align	2
.LC8:
	.ascii	"w\000"
	.align	2
.LC9:
	.ascii	"Unable to open output file.\000"
	.align	2
.LC10:
	.ascii	"%s \000"
	.align	2
.LC11:
	.ascii	"%d \000"
	.global	__aeabi_f2d
	.align	2
.LC12:
	.ascii	"%.4f \000"
	.text
	.align	2
	.global	write_to_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_to_file, %function
write_to_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r1, .L33
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L33+4
	bl	puts
	b	.L28
.L29:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L31
.L32:
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, .L33+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #25
	mov	r2, r3
	ldr	r1, .L33+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #56]
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #60]
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #64]
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #68]
	mov	r2, r3
	ldr	r1, .L33+12
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #72]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L33+16
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r1, [fp, #-8]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-20]
	add	r3, r3, #76
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L31:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L32
	ldr	r0, [fp, #-8]
	bl	fclose
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	write_to_file, .-write_to_file
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
