	.file	"70482.c"
	.intel_syntax noprefix
	.text
	.globl	leapyear
	.type	leapyear, @function
leapyear:
.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, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L2
	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
	sete	al
	movzx	eax, al
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	sete	al
	movzx	eax, al
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	leapyear, .-leapyear
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"friday.in"
.LC2:
	.string	"w"
.LC3:
	.string	"friday.out"
.LC4:
	.string	"%d"
.LC5:
	.string	"%d\n"
.LC6:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	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	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -116[rbp], 2
	mov	DWORD PTR -124[rbp], 1900
	jmp	.L5
.L10:
	mov	DWORD PTR -120[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -116[rbp]
	lea	edx, 12[rax]
	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
	movsx	rdx, eax
	mov	edx, DWORD PTR -96[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	cmp	DWORD PTR -120[rbp], 1
	jne	.L7
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	leapyear
	cmp	eax, 1
	jne	.L7
	mov	eax, DWORD PTR -116[rbp]
	add	eax, 29
	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 -116[rbp], edx
	mov	ecx, DWORD PTR -116[rbp]
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -116[rbp], eax
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	edx, DWORD PTR -64[rbp+rax*4]
	mov	eax, DWORD PTR -116[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 -116[rbp], edx
	mov	ecx, DWORD PTR -116[rbp]
	mov	edx, ecx
	sal	edx, 3
	sub	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -116[rbp], eax
.L8:
	add	DWORD PTR -120[rbp], 1
.L6:
	cmp	DWORD PTR -120[rbp], 11
	jle	.L9
	add	DWORD PTR -124[rbp], 1
.L5:
	mov	eax, DWORD PTR -128[rbp]
	add	eax, 1899
	cmp	DWORD PTR -124[rbp], eax
	jle	.L10
	mov	DWORD PTR -120[rbp], 0
	jmp	.L11
.L14:
	cmp	DWORD PTR -120[rbp], 6
	jne	.L12
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	mov	edx, DWORD PTR -96[rbp+rax*4]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L13:
	add	DWORD PTR -120[rbp], 1
.L11:
	cmp	DWORD PTR -120[rbp], 6
	jle	.L14
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"70482.c"
	.text
	.align	2
	.global	leapyear
	.syntax unified
	.arm
	.fpu softvfp
	.type	leapyear, %function
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	r1, [fp, #-8]
	ldr	r3, .L4
	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	.L2
	ldr	r1, [fp, #-8]
	ldr	r3, .L4
	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
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	and	r3, r3, #3
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	1374389535
	.size	leapyear, .-leapyear
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"friday.in\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"friday.out\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"%d\012\000"
	.align	2
.LC7:
	.ascii	"%d \000"
	.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
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L18+4
	ldr	r0, .L18+8
	bl	fopen
	str	r0, [fp, #-92]
	ldr	r1, .L18+12
	ldr	r0, .L18+16
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, .L18+20
	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, #84
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L18+24
	ldr	r0, [fp, #-92]
	bl	__isoc99_fscanf
	mov	r3, #2
	str	r3, [fp, #-96]
	ldr	r3, .L18+28
	str	r3, [fp, #-104]
	b	.L7
.L12:
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L8
.L11:
	ldr	r3, [fp, #-96]
	add	r1, r3, #12
	ldr	r3, .L18+32
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r3, r2, r3
	mov	r2, r3
	lsl	r2, r2, #3
	sub	r2, r2, r3
	sub	r3, r1, r2
	lsl	r2, r3, #2
	sub	r1, fp, #4
	add	r2, r1, r2
	ldr	r2, [r2, #-80]
	add	r2, r2, #1
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-80]
	ldr	r3, [fp, #-100]
	cmp	r3, #1
	bne	.L9
	ldr	r0, [fp, #-104]
	bl	leapyear
	mov	r3, r0
	cmp	r3, #1
	bne	.L9
	ldr	r3, [fp, #-96]
	add	r2, r3, #29
	ldr	r3, .L18+32
	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, #-96]
	b	.L10
.L9:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-52]
	ldr	r3, [fp, #-96]
	add	r2, r2, r3
	ldr	r3, .L18+32
	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, #-96]
.L10:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L8:
	ldr	r3, [fp, #-100]
	cmp	r3, #11
	ble	.L11
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L7:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1888
	add	r3, r3, #11
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L13
.L16:
	ldr	r3, [fp, #-100]
	cmp	r3, #6
	bne	.L14
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	mov	r2, r3
	ldr	r1, .L18+36
	ldr	r0, [fp, #-88]
	bl	fprintf
	b	.L15
.L14:
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-80]
	mov	r2, r3
	ldr	r1, .L18+40
	ldr	r0, [fp, #-88]
	bl	fprintf
.L15:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L13:
	ldr	r3, [fp, #-100]
	cmp	r3, #6
	ble	.L16
	mov	r0, #0
	bl	exit
.L19:
	.align	2
.L18:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC0
	.word	.LC5
	.word	1900
	.word	-1840700269
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
