	.file	"3261674.c"
	.intel_syntax noprefix
	.text
	.globl	days_in_a_month
	.type	days_in_a_month, @function
days_in_a_month:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 12
	ja	.L2
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L3-.L4
	.long	.L6-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L2-.L4
	.long	.L3-.L4
	.text
.L3:
	mov	eax, 31
	jmp	.L7
.L5:
	mov	eax, 30
	jmp	.L7
.L6:
	mov	eax, 28
	jmp	.L7
.L2:
	mov	eax, -1
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	days_in_a_month, .-days_in_a_month
	.section	.rodata
	.align 8
.LC0:
	.string	"Inserisci il numero del mese (1 = gennaio, ..., 12 = domenica): "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Inserisci il giorno di inizio mese (1 = luned\303\254, ..., 7 = domenica): "
.LC3:
	.string	"L\tM\tM\tG\tV\tS\tD"
.LC4:
	.string	"\t\n"
.LC5:
	.string	"\t"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	days_in_a_month
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -16[rbp], 1
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -16[rbp], eax
	setl	al
	movzx	eax, al
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -20[rbp], edx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	edx, DWORD PTR -16[rbp]
	movsx	rax, edx
	imul	rax, rax, -1840700269
	shr	rax, 32
	add	eax, edx
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 3
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L12
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	add	DWORD PTR -16[rbp], 1
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jle	.L14
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"3261674.c"
	.text
	.align	2
	.global	days_in_a_month
	.syntax unified
	.arm
	.fpu softvfp
	.type	days_in_a_month, %function
days_in_a_month:
	@ 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]
	sub	r3, r3, #1
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L5
	.word	.L3
	.word	.L5
	.word	.L3
	.word	.L3
	.word	.L5
	.word	.L3
	.word	.L2
	.word	.L3
.L3:
	mov	r3, #31
	b	.L7
.L5:
	mov	r3, #30
	b	.L7
.L6:
	mov	r3, #28
	b	.L7
.L2:
	mvn	r3, #0
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	days_in_a_month, .-days_in_a_month
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Inserisci il numero del mese (1 = gennaio, ..., 12 "
	.ascii	"= domenica): \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Inserisci il giorno di inizio mese (1 = luned\303\254"
	.ascii	", ..., 7 = domenica): \000"
	.align	2
.LC3:
	.ascii	"L\011M\011M\011G\011V\011S\011D\000"
	.align	2
.LC4:
	.ascii	"\011\012\000"
	.align	2
.LC5:
	.ascii	"\011\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.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
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r0, .L17+12
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
	ldr	r0, .L17+16
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	days_in_a_month
	str	r0, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L9
.L14:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L17+8
	bl	printf
.L11:
	ldr	r2, [fp, #-16]
	ldr	r3, .L17+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #3
	sub	r3, r3, r1
	sub	r1, r2, r3
	cmp	r1, #0
	bne	.L12
	ldr	r0, .L17+24
	bl	printf
	b	.L13
.L12:
	ldr	r0, .L17+28
	bl	printf
.L13:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-1840700269
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
