	.file	"21954.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"ingredienti.txt"
	.align 8
.LC2:
	.string	"Per quante persone vuoi cucinare? "
.LC3:
	.string	"%d"
.LC4:
	.string	"Ricerca ingrediente: "
.LC5:
	.string	"%s"
.LC6:
	.string	"%s: %d\n"
.LC7:
	.string	"Ingrediente non trovato"
.LC8:
	.string	"stop"
.LC9:
	.string	"Errore apertura file."
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L3
.L6:
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ricQuan
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -64[rbp]
	imul	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L5:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L3:
	lea	rax, -48[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L7
.L2:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC10:
	.string	"%s %d"
	.text
	.globl	ricQuan
	.type	ricQuan, @function
ricQuan:
.LFB1:
	.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
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L11
.L13:
	lea	rcx, -60[rbp]
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -56[rbp], eax
.L11:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L12
	cmp	DWORD PTR -52[rbp], 0
	je	.L13
.L12:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	ricQuan, .-ricQuan
	.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	"21954.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"ingredienti.txt\000"
	.align	2
.LC2:
	.ascii	"Per quante persone vuoi cucinare? \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"Ricerca ingrediente: \000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"%s: %d\012\000"
	.align	2
.LC7:
	.ascii	"Ingrediente non trovato\000"
	.align	2
.LC8:
	.ascii	"stop\000"
	.align	2
.LC9:
	.ascii	"Errore apertura file.\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L10+4
	ldr	r0, .L10+8
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L10+12
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L10+16
	bl	__isoc99_scanf
	ldr	r0, .L10+20
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L10+24
	bl	__isoc99_scanf
	b	.L3
.L6:
	sub	r3, fp, #40
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	ricQuan
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	b	.L5
.L4:
	ldr	r0, .L10+32
	bl	puts
.L5:
	ldr	r0, .L10+20
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L10+24
	bl	__isoc99_scanf
.L3:
	sub	r3, fp, #40
	ldr	r1, .L10+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-48]
	bl	fclose
	b	.L7
.L2:
	ldr	r0, .L10+40
	bl	printf
.L7:
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
.LC11:
	.ascii	"%s %d\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ricQuan
	.syntax unified
	.arm
	.fpu softvfp
	.type	ricQuan, %function
ricQuan:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L13
.L15:
	sub	r3, fp, #52
	sub	r2, fp, #40
	ldr	r1, .L18+4
	ldr	r0, [fp, #-60]
	bl	__isoc99_fscanf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-48]
.L13:
	ldr	r0, [fp, #-60]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L15
.L14:
	ldr	r0, [fp, #-60]
	bl	rewind
	ldr	r3, [fp, #-48]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC12
	.word	.LC11
	.size	ricQuan, .-ricQuan
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
