	.file	"21633.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Nemoguce otvoriti file: %s\n"
	.text
	.globl	safe_open
	.type	safe_open, @function
safe_open:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	safe_open, .-safe_open
	.section	.rodata
.LC1:
	.string	"Not enough RAM!\n"
	.text
	.globl	create_new_element
	.type	create_new_element, @function
create_new_element:
.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	QWORD PTR -40[rbp], rdx
	movsd	QWORD PTR -48[rbp], xmm0
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR -48[rbp]
	movsd	QWORD PTR 32[rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_new_element, .-create_new_element
	.globl	add
	.type	add, @function
add:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	add
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add, .-add
	.section	.rodata
.LC2:
	.string	"%s %s %s %lf"
	.text
	.globl	read_from_file
	.type	read_from_file, @function
read_from_file:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L11
.L12:
	mov	rsi, QWORD PTR -56[rbp]
	lea	rdx, -28[rbp]
	lea	rcx, -37[rbp]
	lea	rax, -19[rbp]
	movq	xmm0, rsi
	mov	rsi, rcx
	mov	rdi, rax
	call	create_new_element
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add
.L11:
	lea	rdi, -56[rbp]
	lea	rsi, -28[rbp]
	lea	rcx, -37[rbp]
	lea	rdx, -19[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_from_file, .-read_from_file
	.section	.rodata
.LC3:
	.string	"%-10s %-8s %-8s %5.2lf\n"
	.text
	.globl	safe_list_to_file
	.type	safe_list_to_file, @function
safe_list_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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdi, 20[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, 11[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	r8, rdi
	mov	rcx, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -16[rbp], rax
.L15:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	safe_list_to_file, .-safe_list_to_file
	.globl	find_best
	.type	find_best, @function
find_best:
.LFB11:
	.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	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
	jmp	.L18
.L22:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	cmp	QWORD PTR -8[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR 32[rax]
	comisd	xmm0, xmm1
	jbe	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
.L18:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	find_best, .-find_best
	.globl	write_best
	.type	write_best, @function
write_best:
.LFB12:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdi, 20[rax]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, 11[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rcx
	mov	r8, rdi
	mov	rcx, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -16[rbp], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	write_best, .-write_best
	.globl	destroy_list
	.type	destroy_list, @function
destroy_list:
.LFB13:
	.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	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	rdi, rax
	call	destroy_list
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	destroy_list, .-destroy_list
	.section	.rodata
	.align 8
.LC4:
	.string	"Pogresan poziv programa\nPrimer poziva: ./program PC Sandbox igra.txt analiza.txt"
.LC5:
	.string	"r"
.LC6:
	.string	"w"
	.align 8
.LC7:
	.string	"\nZa %s platformu ne postoje '%s' igre!\n"
	.align 8
.LC8:
	.string	"\nNajpovoljnija '%s' igra za %s platformu je:\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 5
	je	.L30
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	safe_open
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	safe_open
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -56[rbp], 0
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_from_file
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	safe_list_to_file
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	find_best
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L31
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L32
.L31:
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	write_best
.L32:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	destroy_list
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"21633.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Nemoguce otvoriti file: %s\012\000"
	.text
	.align	2
	.global	safe_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	safe_open, %function
safe_open:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r1, [fp, #-16]
	ldr	r0, .L4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	safe_open, .-safe_open
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Not enough RAM!\012\000"
	.text
	.align	2
	.global	create_new_element
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_new_element, %function
create_new_element:
	@ args = 8, 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]
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L9
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #11
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r1, [fp, #-8]
	ldmib	fp, {r2-r3}
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.size	create_new_element, .-create_new_element
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L11
.L12:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #40
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	add
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add, .-add
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s %s %s %lf\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L15
.L16:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	ip, fp, #32
	sub	r1, fp, #44
	sub	r0, fp, #20
	stm	sp, {r2-r3}
	mov	r2, ip
	bl	create_new_element
	str	r0, [fp, #-56]
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-68]
	bl	add
.L15:
	sub	r1, fp, #44
	sub	r2, fp, #20
	sub	r3, fp, #52
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L18+4
	ldr	r0, [fp, #-64]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	.LC2
	.size	read_from_file, .-read_from_file
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%-10s %-8s %-8s %5.2lf\012\000"
	.text
	.align	2
	.global	safe_list_to_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	safe_list_to_file, %function
safe_list_to_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L21
.L22:
	ldr	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	ip, r3, #11
	ldr	r3, [fp, #-12]
	add	r1, r3, #20
	ldr	r3, [fp, #-12]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r1, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, .L23
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-12]
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L22
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC4
	.size	safe_list_to_file, .-safe_list_to_file
	.global	__aeabi_dcmpgt
	.align	2
	.global	find_best
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_best, %function
find_best:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L26
.L30:
	ldr	r3, [fp, #-16]
	add	r3, r3, #20
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L27
.L28:
	ldr	r3, [fp, #-8]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-16]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
.L27:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-16]
.L26:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	find_best, .-find_best
	.align	2
	.global	write_best
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_best, %function
write_best:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	ip, r3, #11
	ldr	r3, [fp, #-12]
	add	r1, r3, #20
	ldr	r3, [fp, #-12]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r1, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r1, .L34
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-12]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC4
	.size	write_best, .-write_best
	.align	2
	.global	destroy_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_list, %function
destroy_list:
	@ 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	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #40
	mov	r0, r3
	bl	destroy_list
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
.L38:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroy_list, .-destroy_list
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Pogresan poziv programa\012Primer poziva: ./program"
	.ascii	" PC Sandbox igra.txt analiza.txt\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"\012Za %s platformu ne postoje '%s' igre!\012\000"
	.align	2
.LC9:
	.ascii	"\012Najpovoljnija '%s' igra za %s platformu je:\012"
	.ascii	"\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #5
	beq	.L40
	ldr	r0, .L45+4
	bl	puts
	mov	r0, #1
	bl	exit
.L40:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L45+8
	mov	r0, r3
	bl	safe_open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-44]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L45+12
	mov	r0, r3
	bl	safe_open
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read_from_file
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	safe_list_to_file
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	find_best
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, .L45+16
	ldr	r0, [fp, #-16]
	bl	fprintf
	b	.L42
.L41:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, .L45+20
	ldr	r0, [fp, #-16]
	bl	fprintf
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	write_best
.L42:
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	sub	r3, fp, #32
	mov	r0, r3
	bl	destroy_list
	mov	r3, #0
	ldr	r2, .L45
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC10
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
