	.file	"975414.c"
	.intel_syntax noprefix
	.text
	.type	leaps_thru_end_of, @function
leaps_thru_end_of:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	test	eax, eax
	js	.L2
	mov	edx, eax
	lea	ecx, 3[rdx]
	test	edx, edx
	cmovs	edx, ecx
	sar	edx, 2
	mov	esi, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	mov	ecx, edx
	sar	ecx, 5
	cdq
	sub	edx, ecx
	lea	ecx, [rsi+rdx]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 7
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	eax, ecx
	jmp	.L4
.L2:
	not	eax
	mov	edi, eax
	mov	eax, 0
	call	leaps_thru_end_of
	not	eax
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	leaps_thru_end_of, .-leaps_thru_end_of
	.section	.rodata
	.align 8
	.type	year_lengths, @object
	.size	year_lengths, 8
year_lengths:
	.long	365
	.long	366
	.text
	.type	increment_overflow, @function
increment_overflow:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -20[rbp], esi
	mov	rax, QWORD PTR -16[rbp]
	mov	ebx, DWORD PTR [rax]
	test	ebx, ebx
	js	.L6
	mov	eax, 2147483647
	sub	eax, ebx
	cmp	DWORD PTR -20[rbp], eax
	setg	al
	jmp	.L7
.L6:
	mov	eax, -2147483648
	sub	eax, ebx
	cmp	DWORD PTR -20[rbp], eax
	setl	al
.L7:
	test	al, al
	je	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	increment_overflow, .-increment_overflow
	.globl	loop
	.bss
	.align 4
	.type	loop, @object
	.size	loop, 4
loop:
	.zero	4
	.globl	lastyear
	.data
	.align 4
	.type	lastyear, @object
	.size	lastyear, 4
lastyear:
	.long	1970
	.section	.rodata
.LC0:
	.string	"%d -> %d\n"
	.text
	.globl	Ext2DecodeTime
	.type	Ext2DecodeTime, @function
Ext2DecodeTime:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 1970
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR loop[rip], 0
	jmp	.L11
.L19:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1290837165
	shr	rdx, 32
	add	edx, eax
	sar	edx, 8
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	r12, eax
	mov	ebx, r12d
	movsx	rdx, ebx
	mov	rax, r12
	sub	rax, rdx
	test	rax, rax
	jg	.L12
	movsx	rax, ebx
	sub	rax, r12
	test	rax, rax
	jle	.L13
.L12:
	mov	eax, 0
	jmp	.L24
.L13:
	test	ebx, ebx
	jne	.L15
	cmp	DWORD PTR -32[rbp], 0
	jns	.L16
	mov	eax, -1
	jmp	.L17
.L16:
	mov	eax, 1
.L17:
	mov	ebx, eax
.L15:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -36[rbp], eax
	lea	rax, -36[rbp]
	mov	esi, ebx
	mov	rdi, rax
	mov	eax, 0
	call	increment_overflow
	test	eax, eax
	je	.L18
	mov	eax, 0
	jmp	.L24
.L18:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	edi, eax
	mov	eax, 0
	call	leaps_thru_end_of
	mov	ebx, eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	edi, eax
	mov	eax, 0
	call	leaps_thru_end_of
	sub	ebx, eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	imul	edx, eax, -365
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	DWORD PTR -32[rbp], eax
	sub	DWORD PTR -32[rbp], ebx
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR loop[rip]
	add	eax, 1
	mov	DWORD PTR loop[rip], eax
.L11:
	cmp	DWORD PTR -32[rbp], 0
	js	.L19
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L20
	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
	test	eax, eax
	jne	.L21
	mov	edx, DWORD PTR -28[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	.L20
.L21:
	mov	eax, 1
	jmp	.L22
.L20:
	mov	eax, 0
.L22:
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, year_lengths[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -32[rbp], eax
	jge	.L19
	mov	eax, DWORD PTR lastyear[rip]
	cmp	DWORD PTR -28[rbp], eax
	je	.L23
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR lastyear[rip], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	mov	eax, DWORD PTR -28[rbp]
.L24:
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Ext2DecodeTime, .-Ext2DecodeTime
	.section	.rodata
.LC1:
	.string	"loop %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	Ext2DecodeTime
	add	DWORD PTR -4[rbp], 1
.L27:
	cmp	DWORD PTR -4[rbp], 18299
	jle	.L28
	mov	eax, DWORD PTR loop[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"975414.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	leaps_thru_end_of, %function
leaps_thru_end_of:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r3, r0
	cmp	r3, #0
	blt	.L2
	mov	r2, r3
	add	r1, r2, #3
	cmp	r2, #0
	movlt	r2, r1
	movge	r2, r2
	asr	r2, r2, #2
	mov	r0, r2
	ldr	r2, .L5
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r1, r3, #31
	sub	r2, r1, r2
	add	r2, r0, r2
	ldr	r1, .L5
	smull	r0, r1, r3, r1
	asr	r1, r1, #7
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r3, r2, r3
	b	.L4
.L2:
	mvn	r3, r3
	mov	r0, r3
	bl	leaps_thru_end_of
	mov	r3, r0
	mvn	r3, r3
.L4:
	mov	r0, r3
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	1374389535
	.size	leaps_thru_end_of, .-leaps_thru_end_of
	.section	.rodata
	.align	2
	.type	year_lengths, %object
	.size	year_lengths, 8
year_lengths:
	.word	365
	.word	366
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	increment_overflow, %function
increment_overflow:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, fp}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r4, [r3]
	cmp	r4, #0
	blt	.L8
	mvn	r3, #-2147483648
	sub	r3, r3, r4
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	b	.L9
.L8:
	rsb	r3, r4, #-2147483648
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
.L9:
	cmp	r3, #0
	beq	.L10
	mov	r3, #1
	b	.L11
.L10:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	mov	r3, #0
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{r4, fp}
	bx	lr
	.size	increment_overflow, .-increment_overflow
	.comm	loop,4,4
	.global	lastyear
	.data
	.align	2
	.type	lastyear, %object
	.size	lastyear, 4
lastyear:
	.word	1970
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d -> %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Ext2DecodeTime
	.syntax unified
	.arm
	.fpu softvfp
	.type	Ext2DecodeTime, %function
Ext2DecodeTime:
	@ 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
	str	r0, [fp, #-32]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L28+4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, .L28+8
	mov	r2, #0
	str	r2, [r3]
	b	.L13
.L21:
	ldr	r3, [fp, #-24]
	ldr	r2, .L28+12
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #8
	asr	r3, r3, #31
	sub	r5, r2, r3
	mov	r4, r5
	sub	r3, r5, r4
	cmp	r3, #0
	bgt	.L14
	sub	r3, r4, r5
	cmp	r3, #0
	ble	.L15
.L14:
	mov	r3, #0
	b	.L26
.L15:
	cmp	r4, #0
	bne	.L17
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L18
	mvn	r3, #0
	b	.L19
.L18:
	mov	r3, #1
.L19:
	mov	r4, r3
.L17:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-28]
	sub	r3, fp, #28
	mov	r1, r4
	mov	r0, r3
	bl	increment_overflow
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	b	.L26
.L20:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	mov	r0, r3
	bl	leaps_thru_end_of
	mov	r4, r0
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r0, r3
	bl	leaps_thru_end_of
	mov	r3, r0
	sub	r4, r4, r3
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mvn	r2, #364
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	sub	r3, r3, r4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, .L28+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L28+8
	str	r3, [r2]
.L13:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L21
	ldr	r3, [fp, #-20]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L22
	ldr	r1, [fp, #-20]
	ldr	r3, .L28+16
	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	.L23
	ldr	r1, [fp, #-20]
	ldr	r3, .L28+16
	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	.L22
.L23:
	mov	r3, #1
	b	.L24
.L22:
	mov	r3, #0
.L24:
	ldr	r2, .L28+20
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L21
	ldr	r3, .L28+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L25
	ldr	r2, .L28+24
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-32]
	ldr	r0, .L28+28
	bl	printf
.L25:
	ldr	r3, [fp, #-20]
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC1
	.word	1970
	.word	loop
	.word	-1290837165
	.word	1374389535
	.word	year_lengths
	.word	lastyear
	.word	.LC0
	.size	Ext2DecodeTime, .-Ext2DecodeTime
	.section	.rodata
	.align	2
.LC2:
	.ascii	"loop %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #1
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L31
.L32:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	Ext2DecodeTime
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-8]
	ldr	r2, .L34
	cmp	r3, r2
	ble	.L32
	ldr	r3, .L34+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	18299
	.word	loop
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
