	.file	"914121.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter today's date (mm dd yyyy): "
.LC1:
	.string	"%i%i%i"
	.align 8
.LC2:
	.string	"Tomorrow's date is %i/%i/%.2i.\n"
	.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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	lea	rcx, 8[rax]
	lea	rax, -48[rbp]
	lea	rdx, 4[rax]
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ebx, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	numberOfDays
	cmp	ebx, eax
	je	.L2
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 12
	jne	.L4
	mov	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
	jmp	.L3
.L4:
	mov	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -48[rbp]
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -28[rbp], eax
.L3:
	mov	edx, DWORD PTR -28[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	ecx, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	numberOfDays
	.type	numberOfDays, @function
numberOfDays:
.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, 96
	mov	rdx, rdi
	mov	eax, esi
	mov	QWORD PTR -96[rbp], rdx
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 31
	mov	DWORD PTR -60[rbp], 28
	mov	DWORD PTR -56[rbp], 31
	mov	DWORD PTR -52[rbp], 30
	mov	DWORD PTR -48[rbp], 31
	mov	DWORD PTR -44[rbp], 30
	mov	DWORD PTR -40[rbp], 31
	mov	DWORD PTR -36[rbp], 31
	mov	DWORD PTR -32[rbp], 30
	mov	DWORD PTR -28[rbp], 31
	mov	DWORD PTR -24[rbp], 30
	mov	DWORD PTR -20[rbp], 31
	mov	rdx, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	isLeapYear
	test	al, al
	je	.L8
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, 2
	jne	.L8
	mov	DWORD PTR -68[rbp], 29
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	mov	DWORD PTR -68[rbp], eax
.L9:
	mov	eax, DWORD PTR -68[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	numberOfDays, .-numberOfDays
	.globl	isLeapYear
	.type	isLeapYear, @function
isLeapYear:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, rdi
	mov	eax, esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L13
	mov	edx, DWORD PTR -24[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L14
.L13:
	mov	edx, DWORD PTR -24[rbp]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L15
.L14:
	mov	BYTE PTR -1[rbp], 1
	jmp	.L16
.L15:
	mov	BYTE PTR -1[rbp], 0
.L16:
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	isLeapYear, .-isLeapYear
	.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	"914121.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter today's date (mm dd yyyy): \000"
	.align	2
.LC2:
	.ascii	"%i%i%i\000"
	.align	2
.LC3:
	.ascii	"Tomorrow's date is %i/%i/%.2i.\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	printf
	sub	r3, fp, #40
	add	r0, r3, #8
	sub	r3, fp, #40
	add	r2, r3, #4
	sub	r1, fp, #40
	mov	r3, r0
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	ldr	r4, [fp, #-36]
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2}
	bl	numberOfDays
	mov	r3, r0
	cmp	r4, r3
	beq	.L2
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	b	.L3
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #12
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L3
.L4:
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
.L3:
	ldr	r0, [fp, #-28]
	ldr	ip, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, .L7+12
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	mov	r3, r1
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L7+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	1374389535
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.word	31
	.word	28
	.word	31
	.word	30
	.word	31
	.word	30
	.word	31
	.word	31
	.word	30
	.word	31
	.word	30
	.word	31
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	numberOfDays
	.syntax unified
	.arm
	.fpu softvfp
	.type	numberOfDays, %function
numberOfDays:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	sub	r3, fp, #72
	stm	r3, {r0, r1, r2}
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	sub	ip, fp, #56
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #72
	ldm	r3, {r0, r1, r2}
	bl	isLeapYear
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	bne	.L10
	mov	r3, #29
	str	r3, [fp, #-60]
	b	.L11
.L10:
	ldr	r3, [fp, #-72]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	str	r3, [fp, #-60]
.L11:
	ldr	r3, [fp, #-60]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC0
	.size	numberOfDays, .-numberOfDays
	.align	2
	.global	isLeapYear
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeapYear, %function
isLeapYear:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	sub	r3, fp, #24
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-16]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L17
	ldr	r1, [fp, #-16]
	ldr	r3, .L22
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L18
.L17:
	ldr	r1, [fp, #-16]
	ldr	r3, .L22
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L19
.L18:
	mov	r3, #1
	strb	r3, [fp, #-5]
	b	.L20
.L19:
	mov	r3, #0
	strb	r3, [fp, #-5]
.L20:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	1374389535
	.size	isLeapYear, .-isLeapYear
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
