	.file	"273056.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter date ('YYYY MM DD'): "
.LC1:
	.string	"%d %d %d"
	.align 8
.LC2:
	.string	"%d days of year %d have elapsed [leap year]\n"
	.align 8
.LC3:
	.string	"%d days of year %d have elapsed\n"
.LC4:
	.string	"\nEnter date ('YYYY MM DD'): "
	.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, 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	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	isLeap
	mov	edx, eax
	mov	ecx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	countDays
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	isLeap
	test	eax, eax
	je	.L3
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L3:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jns	.L5
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	isLeap
	.type	isLeap, @function
isLeap:
.LFB1:
	.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
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L9
	mov	edx, DWORD PTR -4[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
	je	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isLeap, .-isLeap
	.globl	countDays
	.type	countDays, @function
countDays:
.LFB2:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -20[rbp], 1
	jmp	.L12
.L32:
	cmp	DWORD PTR -20[rbp], 7
	jg	.L13
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L14
	cmp	DWORD PTR -20[rbp], 2
	je	.L14
	mov	DWORD PTR -8[rbp], 1
	jmp	.L15
.L16:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L15:
	cmp	DWORD PTR -8[rbp], 30
	jle	.L16
	jmp	.L26
.L14:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L18
	cmp	DWORD PTR -20[rbp], 2
	je	.L18
	mov	DWORD PTR -8[rbp], 1
	jmp	.L19
.L20:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L19:
	cmp	DWORD PTR -8[rbp], 31
	jle	.L20
	jmp	.L26
.L18:
	cmp	DWORD PTR -28[rbp], 0
	je	.L21
	mov	DWORD PTR -8[rbp], 1
	jmp	.L22
.L23:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L22:
	cmp	DWORD PTR -8[rbp], 29
	jle	.L23
	jmp	.L26
.L21:
	mov	DWORD PTR -8[rbp], 1
	jmp	.L24
.L25:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L24:
	cmp	DWORD PTR -8[rbp], 28
	jle	.L25
	jmp	.L26
.L13:
	cmp	DWORD PTR -20[rbp], 7
	jle	.L26
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L27
	cmp	DWORD PTR -20[rbp], 2
	je	.L27
	mov	DWORD PTR -8[rbp], 1
	jmp	.L28
.L29:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L28:
	cmp	DWORD PTR -8[rbp], 31
	jle	.L29
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L26
	cmp	DWORD PTR -20[rbp], 2
	je	.L26
	mov	DWORD PTR -8[rbp], 1
	jmp	.L30
.L31:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L30:
	cmp	DWORD PTR -8[rbp], 30
	jle	.L31
.L26:
	sub	DWORD PTR -20[rbp], 1
.L12:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L32
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	countDays, .-countDays
	.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	"273056.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter date ('YYYY MM DD'): \000"
	.align	2
.LC1:
	.ascii	"%d %d %d\000"
	.align	2
.LC2:
	.ascii	"%d days of year %d have elapsed [leap year]\012\000"
	.align	2
.LC3:
	.ascii	"%d days of year %d have elapsed\012\000"
	.align	2
.LC4:
	.ascii	"\012Enter date ('YYYY MM DD'): \000"
	.align	2
.LC5:
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	printf
	sub	r3, fp, #24
	sub	r2, fp, #28
	sub	r1, fp, #32
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	b	.L2
.L5:
	ldr	r4, [fp, #-28]
	ldr	r5, [fp, #-24]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	isLeap
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	countDays
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	isLeap
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+12
	bl	printf
	b	.L4
.L3:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+16
	bl	printf
.L4:
	ldr	r0, .L8+20
	bl	printf
	sub	r3, fp, #24
	sub	r2, fp, #28
	sub	r1, fp, #32
	ldr	r0, .L8+8
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L5
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	isLeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeap, %function
isLeap:
	@ 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]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L11
	ldr	r1, [fp, #-8]
	ldr	r3, .L13
	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
	beq	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	1374389535
	.size	isLeap, .-isLeap
	.align	2
	.global	countDays
	.syntax unified
	.arm
	.fpu softvfp
	.type	countDays, %function
countDays:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L16
.L36:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	bgt	.L17
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L18
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L19
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #30
	ble	.L20
	b	.L30
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L22
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #31
	ble	.L24
	b	.L30
.L22:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L25
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L26
.L27:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	ble	.L27
	b	.L30
.L25:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L28
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #28
	ble	.L29
	b	.L30
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L30
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L31
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L32
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L32:
	ldr	r3, [fp, #-12]
	cmp	r3, #31
	ble	.L33
	b	.L30
.L31:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L30
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L30
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L34
.L35:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L34:
	ldr	r3, [fp, #-12]
	cmp	r3, #30
	ble	.L35
.L30:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L36
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	countDays, .-countDays
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
