	.file	"142032.c"
	.intel_syntax noprefix
	.text
	.globl	init_tree
	.type	init_tree, @function
init_tree:
.LFB6:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_tree, .-init_tree
	.globl	add_to_tree
	.type	add_to_tree, @function
add_to_tree:
.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L9
.L3:
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm0, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	movsd	xmm1, QWORD PTR 32[rax]
	comisd	xmm0, xmm1
	jb	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_to_tree
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_to_tree
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	add_to_tree, .-add_to_tree
	.section	.rodata
.LC0:
	.string	"Not enough RAM!"
	.text
	.globl	create_new_item
	.type	create_new_item, @function
create_new_item:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	movsd	QWORD PTR -40[rbp], xmm0
	mov	edi, 56
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 21
	call	exit@PLT
.L11:
	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, 11[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	movsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[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]
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	create_new_item, .-create_new_item
	.section	.rodata
.LC2:
	.string	"%s %s %lf"
	.text
	.globl	read_tree_from
	.type	read_tree_from, @function
read_tree_from:
.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	.L14
.L15:
	mov	rcx, QWORD PTR -64[rbp]
	lea	rdx, -32[rbp]
	lea	rax, -43[rbp]
	movq	xmm0, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	create_new_item
	mov	QWORD PTR -56[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_to_tree
.L14:
	lea	rsi, -64[rbp]
	lea	rcx, -32[rbp]
	lea	rdx, -43[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8, rsi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L15
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_tree_from, .-read_tree_from
	.section	.rodata
.LC3:
	.string	"%3.1f %-10s %s\n"
	.text
	.globl	save_item_to
	.type	save_item_to, @function
save_item_to:
.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
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 11[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	save_item_to, .-save_item_to
	.globl	save_tree_to
	.type	save_tree_to, @function
save_tree_to:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 0
	je	.L20
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	save_tree_to
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	save_item_to
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	save_tree_to
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	save_tree_to, .-save_tree_to
	.globl	destroy_tree
	.type	destroy_tree, @function
destroy_tree:
.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	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	rdi, rax
	call	destroy_tree
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 48
	mov	rdi, rax
	call	destroy_tree
	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
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	destroy_tree, .-destroy_tree
	.section	.rodata
.LC4:
	.string	"Can't open '%s'!\n"
	.text
	.globl	safe_fopen
	.type	safe_fopen, @function
safe_fopen:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	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	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	safe_fopen, .-safe_fopen
	.globl	get_najgori_restoran
	.type	get_najgori_restoran, @function
get_najgori_restoran:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L28
	mov	eax, 0
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L30
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	get_najgori_restoran
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_najgori_restoran, .-get_najgori_restoran
	.section	.rodata
	.align 8
.LC5:
	.string	"USAGE: %s IN_FILENAME OUT_FILENAME\n"
.LC6:
	.string	"r"
.LC7:
	.string	"w"
	.align 8
.LC8:
	.string	"\nNajgore ocenjen restoran u gradu je:\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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], 3
	je	.L32
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 11
	call	exit@PLT
.L32:
	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 -48[rbp]
	mov	edx, 1
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	safe_fopen
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	safe_fopen
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	init_tree
	lea	rdx, -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_tree_from
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	save_tree_to
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_najgori_restoran
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	save_item_to
.L33:
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	destroy_tree
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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	"142032.c"
	.text
	.align	2
	.global	init_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_tree, %function
init_tree:
	@ 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, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	init_tree, .-init_tree
	.global	__aeabi_dcmpge
	.align	2
	.global	add_to_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_tree, %function
add_to_tree:
	@ 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, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L9
.L3:
	ldr	r3, [fp, #-8]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r3, r3, #40
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	add_to_tree
	b	.L9
.L8:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	add	r3, r3, #44
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	add_to_tree
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_to_tree, .-add_to_tree
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Not enough RAM!\000"
	.global	__aeabi_dadd
	.text
	.align	2
	.global	create_new_item
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_new_item, %function
create_new_item:
	@ 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, #-28]
	str	r3, [fp, #-24]
	mov	r0, #48
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L13
	bl	puts
	mov	r0, #21
	bl	exit
.L11:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #11
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	mov	r2, #0
	ldr	r3, .L13+4
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-8]
	str	r2, [r1, #32]
	str	r3, [r1, #36]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #44]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	1072693248
	.size	create_new_item, .-create_new_item
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s %s %lf\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_tree_from
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_tree_from, %function
read_tree_from:
	@ 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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L16
.L17:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #32
	sub	r0, fp, #44
	bl	create_new_item
	str	r0, [fp, #-56]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-56]
	bl	add_to_tree
.L16:
	sub	r1, fp, #32
	sub	r2, fp, #44
	sub	r3, fp, #52
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L19+4
	ldr	r0, [fp, #-64]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	.LC1
	.size	read_tree_from, .-read_tree_from
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%3.1f %-10s %s\012\000"
	.text
	.align	2
	.global	save_item_to
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_item_to, %function
save_item_to:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	add	r0, r0, #11
	str	r0, [sp, #4]
	str	r1, [sp]
	ldr	r1, .L22
	ldr	r0, [fp, #-8]
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.size	save_item_to, .-save_item_to
	.align	2
	.global	save_tree_to
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_tree_to, %function
save_tree_to:
	@ 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, #-12]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #40]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	save_tree_to
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	save_item_to
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	save_tree_to
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	save_tree_to, .-save_tree_to
	.align	2
	.global	destroy_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_tree, %function
destroy_tree:
	@ 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	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #40
	mov	r0, r3
	bl	destroy_tree
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #44
	mov	r0, r3
	bl	destroy_tree
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
.L29:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroy_tree, .-destroy_tree
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Can't open '%s'!\012\000"
	.text
	.align	2
	.global	safe_fopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	safe_fopen, %function
safe_fopen:
	@ 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, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L31
	ldr	r1, [fp, #-16]
	ldr	r0, .L33
	bl	printf
	ldr	r0, [fp, #-24]
	bl	exit
.L31:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC4
	.size	safe_fopen, .-safe_fopen
	.align	2
	.global	get_najgori_restoran
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_najgori_restoran, %function
get_najgori_restoran:
	@ 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]
	cmp	r3, #0
	bne	.L36
	mov	r3, #0
	b	.L37
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-8]
	b	.L37
.L38:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #44]
	mov	r0, r3
	bl	get_najgori_restoran
	mov	r3, r0
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_najgori_restoran, .-get_najgori_restoran
	.section	.rodata
	.align	2
.LC5:
	.ascii	"USAGE: %s IN_FILENAME OUT_FILENAME\012\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"\012Najgore ocenjen restoran u gradu je:\012\000"
	.align	2
.LC9:
	.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, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	beq	.L40
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L44+4
	bl	printf
	mov	r0, #11
	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]
	mov	r2, #1
	ldr	r1, .L44+8
	ldr	r0, [fp, #-28]
	bl	safe_fopen
	str	r0, [fp, #-20]
	mov	r2, #2
	ldr	r1, .L44+12
	ldr	r0, [fp, #-24]
	bl	safe_fopen
	str	r0, [fp, #-16]
	sub	r3, fp, #32
	mov	r0, r3
	bl	init_tree
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read_tree_from
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	save_tree_to
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	get_najgori_restoran
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-16]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L44+16
	bl	fwrite
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	save_item_to
.L41:
	sub	r3, fp, #32
	mov	r0, r3
	bl	destroy_tree
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC9
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
