	.file	"169384.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Errore nell'apertura del file"
.LC2:
	.string	"%d"
.LC3:
	.string	"Troppi colori!"
.LC4:
	.string	"%s %d %d %d"
.LC5:
	.string	"Numero di campi errato (%d)\n"
.LC6:
	.string	"Numero di colori errato"
	.text
	.globl	leggi_tavolozza
	.type	leggi_tavolozza, @function
leggi_tavolozza:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -232[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -192[rbp]
	mov	esi, 81
	mov	rdi, rax
	call	fgets@PLT
	lea	rdx, -212[rbp]
	lea	rax, -192[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -208[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -208[rbp], eax
	jl	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdi, -216[rbp]
	lea	rsi, -220[rbp]
	lea	rcx, -224[rbp]
	lea	rdx, -96[rbp]
	lea	rax, -192[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 4
	jne	.L5
	add	DWORD PTR -208[rbp], 1
	jmp	.L3
.L5:
	cmp	DWORD PTR -204[rbp], 0
	jle	.L3
	mov	eax, DWORD PTR -204[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rdx, QWORD PTR -200[rbp]
	lea	rax, -192[rbp]
	mov	esi, 81
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -208[rbp], eax
	je	.L9
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	leggi_tavolozza, .-leggi_tavolozza
	.section	.rodata
	.align 8
.LC7:
	.string	"UTILIZZO: ./programma FILE_COLORI"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	je	.L11
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	leggi_tavolozza
	mov	eax, 0
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"169384.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Errore nell'apertura del file\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Troppi colori!\000"
	.align	2
.LC4:
	.ascii	"%s %d %d %d\000"
	.align	2
.LC5:
	.ascii	"Numero di campi errato (%d)\012\000"
	.align	2
.LC6:
	.ascii	"Numero di colori errato\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	leggi_tavolozza
	.syntax unified
	.arm
	.fpu softvfp
	.type	leggi_tavolozza, %function
leggi_tavolozza:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	str	r0, [fp, #-208]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L10+4
	ldr	r0, [fp, #-208]
	bl	fopen
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L10+8
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #176
	ldr	r2, [fp, #-184]
	mov	r1, #81
	mov	r0, r3
	bl	fgets
	sub	r2, fp, #192
	sub	r3, fp, #176
	ldr	r1, .L10+12
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L3
.L6:
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	blt	.L4
	ldr	r0, .L10+16
	bl	puts
	ldr	r0, [fp, #-184]
	bl	fclose
	mov	r0, #1
	bl	exit
.L4:
	sub	r1, fp, #204
	sub	r2, fp, #92
	sub	r0, fp, #176
	sub	r3, fp, #196
	str	r3, [sp, #4]
	sub	r3, fp, #200
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L10+20
	bl	__isoc99_sscanf
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #4
	bne	.L5
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
	b	.L3
.L5:
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	ble	.L3
	ldr	r1, [fp, #-180]
	ldr	r0, .L10+24
	bl	printf
	ldr	r0, [fp, #-184]
	bl	fclose
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #176
	ldr	r2, [fp, #-184]
	mov	r1, #81
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-184]
	bl	fclose
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-188]
	cmp	r2, r3
	beq	.L9
	ldr	r0, .L10+28
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	leggi_tavolozza, .-leggi_tavolozza
	.section	.rodata
	.align	2
.LC8:
	.ascii	"UTILIZZO: ./programma FILE_COLORI\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	cmp	r3, #2
	beq	.L13
	ldr	r0, .L15
	bl	puts
	mov	r3, #1
	b	.L14
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	leggi_tavolozza
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
