	.file	"8304.c"
	.intel_syntax noprefix
	.text
	.globl	is_leap
	.type	is_leap, @function
is_leap:
.LFB6:
	.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	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
	je	.L2
	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	.L3
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L3
.L2:
	mov	eax, 1
	jmp	.L5
.L3:
	mov	eax, 0
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_leap, .-is_leap
	.globl	ndayinmonth
	.type	ndayinmonth, @function
ndayinmonth:
.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, 8
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L7
	mov	eax, 31
	jmp	.L8
.L7:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L9
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	is_leap
	test	eax, eax
	je	.L10
	mov	eax, 29
	jmp	.L8
.L10:
	mov	eax, 28
	jmp	.L8
.L9:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L11
	mov	eax, 31
	jmp	.L8
.L11:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L12
	mov	eax, 30
	jmp	.L8
.L12:
	cmp	DWORD PTR -4[rbp], 4
	jne	.L13
	mov	eax, 31
	jmp	.L8
.L13:
	cmp	DWORD PTR -4[rbp], 5
	jne	.L14
	mov	eax, 30
	jmp	.L8
.L14:
	cmp	DWORD PTR -4[rbp], 6
	jne	.L15
	mov	eax, 31
	jmp	.L8
.L15:
	cmp	DWORD PTR -4[rbp], 7
	jne	.L16
	mov	eax, 31
	jmp	.L8
.L16:
	cmp	DWORD PTR -4[rbp], 8
	jne	.L17
	mov	eax, 30
	jmp	.L8
.L17:
	cmp	DWORD PTR -4[rbp], 9
	jne	.L18
	mov	eax, 31
	jmp	.L8
.L18:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L19
	mov	eax, 30
	jmp	.L8
.L19:
	cmp	DWORD PTR -4[rbp], 11
	jne	.L20
	mov	eax, 31
	jmp	.L8
.L20:
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ndayinmonth, .-ndayinmonth
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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], 0
	mov	DWORD PTR -16[rbp], 1901
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L22
.L24:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	ndayinmonth
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -12[rbp], edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 12
	jne	.L23
	mov	DWORD PTR -20[rbp], 0
	add	DWORD PTR -16[rbp], 1
.L23:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1840700269
	shr	rdx, 32
	add	edx, eax
	sar	edx, 2
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 3
	sub	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	cmp	edx, 6
	jne	.L22
	add	DWORD PTR -8[rbp], 1
.L22:
	cmp	DWORD PTR -16[rbp], 2001
	jne	.L24
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"8304.c"
	.text
	.align	2
	.global	is_leap
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_leap, %function
is_leap:
	@ 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	r1, [fp, #-8]
	ldr	r3, .L6
	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
	beq	.L2
	ldr	r1, [fp, #-8]
	ldr	r3, .L6
	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	.L3
	ldr	r3, [fp, #-8]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r3, #1
	b	.L5
.L3:
	mov	r3, #0
.L5:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	1374389535
	.size	is_leap, .-is_leap
	.align	2
	.global	ndayinmonth
	.syntax unified
	.arm
	.fpu softvfp
	.type	ndayinmonth, %function
ndayinmonth:
	@ 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, #0
	bne	.L9
	mov	r3, #31
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L11
	ldr	r0, [fp, #-12]
	bl	is_leap
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	mov	r3, #29
	b	.L10
.L12:
	mov	r3, #28
	b	.L10
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L13
	mov	r3, #31
	b	.L10
.L13:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L14
	mov	r3, #30
	b	.L10
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bne	.L15
	mov	r3, #31
	b	.L10
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	bne	.L16
	mov	r3, #30
	b	.L10
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	bne	.L17
	mov	r3, #31
	b	.L10
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #7
	bne	.L18
	mov	r3, #31
	b	.L10
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #8
	bne	.L19
	mov	r3, #30
	b	.L10
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	bne	.L20
	mov	r3, #31
	b	.L10
.L20:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L21
	mov	r3, #30
	b	.L10
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	bne	.L22
	mov	r3, #31
	b	.L10
.L22:
	mov	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ndayinmonth, .-ndayinmonth
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.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
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L28
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L24
.L26:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	ndayinmonth
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, .L28+4
	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	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #12
	bne	.L25
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r2, [fp, #-16]
	ldr	r3, .L28+4
	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, #6
	bne	.L24
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L24:
	ldr	r3, [fp, #-20]
	ldr	r2, .L28+8
	cmp	r3, r2
	bne	.L26
	ldr	r1, [fp, #-12]
	ldr	r0, .L28+12
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	1901
	.word	-1840700269
	.word	2001
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
