	.file	"153118.c"
	.intel_syntax noprefix
	.text
	.globl	mm
	.bss
	.align 4
	.type	mm, @object
	.size	mm, 4
mm:
	.zero	4
	.globl	id
	.align 4
	.type	id, @object
	.size	id, 4
id:
	.zero	4
	.globl	iyyy
	.align 4
	.type	iyyy, @object
	.size	iyyy, 4
iyyy:
	.zero	4
	.text
	.globl	caldat
	.type	caldat, @function
caldat:
.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 -36[rbp], edi
	mov	DWORD PTR -24[rbp], 2299161
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L2
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1867216
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -20[rbp]
	movsd	xmm1, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm2
	subsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	jmp	.L3
.L2:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L4
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1926591217
	shr	rdx, 32
	sar	edx, 14
	sar	eax, 31
	sub	eax, edx
	add	eax, 1
	imul	edx, eax, 36525
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -28[rbp], eax
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -28[rbp], eax
.L3:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1524
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, 2439870
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC2[rip]
	subsd	xmm0, xmm1
	movsd	xmm2, QWORD PTR .LC3[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, eax, 365
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -12[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -8[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC5[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, DWORD PTR -8[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -4[rbp]
	movsd	xmm1, QWORD PTR .LC5[rip]
	mulsd	xmm1, xmm2
	subsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR id[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR mm[rip], eax
	mov	eax, DWORD PTR mm[rip]
	cmp	eax, 12
	jle	.L5
	mov	eax, DWORD PTR mm[rip]
	sub	eax, 12
	mov	DWORD PTR mm[rip], eax
.L5:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 4715
	mov	DWORD PTR iyyy[rip], eax
	mov	eax, DWORD PTR mm[rip]
	cmp	eax, 2
	jle	.L6
	mov	eax, DWORD PTR iyyy[rip]
	sub	eax, 1
	mov	DWORD PTR iyyy[rip], eax
.L6:
	mov	eax, DWORD PTR iyyy[rip]
	test	eax, eax
	jg	.L7
	mov	eax, DWORD PTR iyyy[rip]
	sub	eax, 1
	mov	DWORD PTR iyyy[rip], eax
.L7:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L9
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1926591217
	shr	rdx, 32
	sar	edx, 14
	sar	eax, 31
	sub	eax, edx
	add	eax, 1
	imul	edx, eax, -100
	mov	eax, DWORD PTR iyyy[rip]
	add	eax, edx
	mov	DWORD PTR iyyy[rip], eax
.L9:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	caldat, .-caldat
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1070596096
	.align 8
.LC1:
	.long	0
	.long	1088542088
	.align 8
.LC2:
	.long	1717986918
	.long	1079936614
	.align 8
.LC3:
	.long	0
	.long	1081529344
	.align 8
.LC4:
	.long	0
	.long	1085937664
	.align 8
.LC5:
	.long	659706977
	.long	1077844384
	.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	"153118.c"
	.text
	.comm	mm,4,4
	.comm	id,4,4
	.comm	iyyy,4,4
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	2
	.global	caldat
	.syntax unified
	.arm
	.fpu softvfp
	.type	caldat, %function
caldat:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	ldr	r3, .L10
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L2
	ldr	r2, [fp, #-48]
	ldr	r3, .L10+4
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L10+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-40]
	b	.L3
.L2:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L4
	ldr	r3, [fp, #-48]
	ldr	r2, .L10+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #14
	asr	r3, r3, #31
	sub	r3, r3, r2
	add	r3, r3, #1
	ldr	r2, .L10+20
	mul	r3, r2, r3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	b	.L3
.L4:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
.L3:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1520
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, .L10+24
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L10+28
	ldr	r3, .L10+32
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L10+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L10+40
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L10+44
	ldr	r3, .L10+48
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	ldr	r2, .L10+44
	ldr	r3, .L10+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	ldr	r2, .L10+52
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L10+56
	str	r3, [r2]
	ldr	r3, .L10+56
	ldr	r3, [r3]
	cmp	r3, #12
	ble	.L5
	ldr	r3, .L10+56
	ldr	r3, [r3]
	sub	r3, r3, #12
	ldr	r2, .L10+56
	str	r3, [r2]
.L5:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #4672
	sub	r3, r3, #43
	ldr	r2, .L10+60
	str	r3, [r2]
	ldr	r3, .L10+56
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L6
	ldr	r3, .L10+60
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L10+60
	str	r3, [r2]
.L6:
	ldr	r3, .L10+60
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, .L10+60
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L10+60
	str	r3, [r2]
.L7:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L9
	ldr	r3, [fp, #-48]
	ldr	r2, .L10+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #14
	asr	r3, r3, #31
	sub	r3, r3, r2
	add	r3, r3, #1
	mvn	r2, #99
	mul	r2, r3, r2
	ldr	r3, .L10+60
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L10+60
	str	r3, [r2]
.L9:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	2299161
	.word	-1867216
	.word	1070596096
	.word	1088542088
	.word	1926591217
	.word	36525
	.word	-2439870
	.word	1717986918
	.word	1079936614
	.word	1081529344
	.word	1085937664
	.word	659706977
	.word	1077844384
	.word	id
	.word	mm
	.word	iyyy
	.size	caldat, .-caldat
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
