	.file	"193893083.c"
	.intel_syntax noprefix
	.text
	.globl	is_leapyear
	.type	is_leapyear, @function
is_leapyear:
.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], 1581
	jle	.L2
	cmp	DWORD PTR -4[rbp], 2400
	jle	.L3
.L2:
	mov	eax, -1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L5
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	mov	edx, DWORD PTR -4[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	.L5
.L6:
	mov	eax, 1
	jmp	.L4
.L5:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_leapyear, .-is_leapyear
	.globl	get_days_of_month
	.type	get_days_of_month, @function
get_days_of_month:
.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	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	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
	cmp	DWORD PTR -84[rbp], 0
	jle	.L8
	cmp	DWORD PTR -84[rbp], 12
	jg	.L8
	cmp	DWORD PTR -84[rbp], 2
	jne	.L9
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	is_leapyear
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 1
	jne	.L10
	mov	DWORD PTR -60[rbp], 29
	jmp	.L9
.L10:
	cmp	DWORD PTR -68[rbp], -1
	jne	.L9
	mov	eax, -1
	jmp	.L12
.L9:
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -64[rbp+rax*4]
	jmp	.L12
.L8:
	mov	eax, -1
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	get_days_of_month, .-get_days_of_month
	.globl	exists_date
	.type	exists_date, @function
exists_date:
.LFB2:
	.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	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	cmp	DWORD PTR -12[rbp], 1581
	jle	.L15
	cmp	DWORD PTR -12[rbp], 2400
	jg	.L15
	cmp	DWORD PTR -8[rbp], 0
	jle	.L15
	cmp	DWORD PTR -8[rbp], 12
	jg	.L15
	cmp	DWORD PTR -4[rbp], 0
	jle	.L15
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_days_of_month
	cmp	DWORD PTR -4[rbp], eax
	jle	.L16
.L15:
	mov	eax, 0
	jmp	.L17
.L16:
	mov	eax, 1
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	exists_date, .-exists_date
	.globl	day_of_the_year
	.type	day_of_the_year, @function
day_of_the_year:
.LFB3:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 1
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	exists_date
	test	eax, eax
	jne	.L21
	mov	eax, -1
	jmp	.L20
.L24:
	mov	DWORD PTR -8[rbp], 0
	jmp	.L22
.L23:
	add	DWORD PTR -16[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L22:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	get_days_of_month
	cmp	DWORD PTR -8[rbp], eax
	jl	.L23
	add	DWORD PTR -12[rbp], 1
.L21:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L24
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	add	DWORD PTR -16[rbp], 1
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L26
	mov	eax, DWORD PTR -16[rbp]
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	day_of_the_year, .-day_of_the_year
	.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	"193893083.c"
	.text
	.align	2
	.global	is_leapyear
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_leapyear, %function
is_leapyear:
	@ 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]
	ldr	r2, .L7
	cmp	r3, r2
	ble	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #2400
	ble	.L3
.L2:
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldr	r1, [fp, #-8]
	ldr	r3, .L7+4
	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	.L5
.L6:
	mov	r3, #1
	b	.L4
.L5:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	1581
	.word	1374389535
	.size	is_leapyear, .-is_leapyear
	.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
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_days_of_month
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_days_of_month, %function
get_days_of_month:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+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}
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-64]
	cmp	r3, #12
	bgt	.L10
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	bne	.L11
	ldr	r0, [fp, #-68]
	bl	is_leapyear
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bne	.L12
	mov	r3, #29
	str	r3, [fp, #-52]
	b	.L11
.L12:
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	bne	.L11
	mvn	r3, #0
	b	.L14
.L11:
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	b	.L14
.L10:
	mvn	r3, #0
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.size	get_days_of_month, .-get_days_of_month
	.align	2
	.global	exists_date
	.syntax unified
	.arm
	.fpu softvfp
	.type	exists_date, %function
exists_date:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L22
	cmp	r3, r2
	ble	.L19
	ldr	r3, [fp, #-16]
	cmp	r3, #2400
	bgt	.L19
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	bgt	.L19
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L19
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	get_days_of_month
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L20
.L19:
	mov	r3, #0
	b	.L21
.L20:
	mov	r3, #1
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	1581
	.size	exists_date, .-exists_date
	.align	2
	.global	day_of_the_year
	.syntax unified
	.arm
	.fpu softvfp
	.type	day_of_the_year, %function
day_of_the_year:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	exists_date
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	mvn	r3, #0
	b	.L26
.L30:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L28
.L29:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L28:
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-16]
	bl	get_days_of_month
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	blt	.L29
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L27:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L30
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L31
.L32:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-20]
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	day_of_the_year, .-day_of_the_year
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
