	.file	"extr_calendar.c_gdate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gdate
	.type	gdate, @function
gdate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sar	edx, 31
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movsx	rax, edi
	lea	r12, 12[rsp]
	mov	QWORD PTR 16[rsp], 0
	imul	rax, rax, -1282606671
	shr	rax, 32
	add	eax, edi
	sar	eax, 8
	sub	eax, edx
	mov	DWORD PTR 12[rsp], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	sub	DWORD PTR 12[rsp], 1
.L2:
	mov	rdi, r12
	call	ndaysgi@PLT
	cmp	ebx, eax
	jl	.L3
	mov	edi, DWORD PTR 12[rsp]
	mov	rcx, QWORD PTR month1s[rip]
	sub	ebx, eax
	mov	DWORD PTR 16[rsp], 11
	cmp	edi, 1582
	cmovne	rcx, QWORD PTR month1[rip]
	mov	edx, DWORD PTR 44[rcx]
	cmp	ebx, edx
	jge	.L10
	mov	eax, 10
	.p2align 4,,10
	.p2align 3
.L7:
	mov	DWORD PTR 16[rsp], eax
	mov	rsi, rax
	sub	rax, 1
	mov	edx, DWORD PTR 4[rcx+rax*4]
	cmp	edx, ebx
	jg	.L7
.L6:
	sub	ebx, edx
	cmp	edi, DWORD PTR jiswitch[rip]
	mov	DWORD PTR 20[rsp], ebx
	je	.L14
.L8:
	mov	rsi, r12
	mov	rdi, rbp
	call	idt2date@PLT
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	QWORD PTR jiswitch[rip+8], rsi
	jne	.L8
	cmp	ebx, DWORD PTR jiswitch[rip+16]
	jle	.L8
	add	ebx, 10
	mov	DWORD PTR 20[rsp], ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 11
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gdate, .-gdate
	.comm	month1s,8,8
	.comm	month1,8,8
	.comm	jiswitch,24,16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_calendar.c_gdate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gdate
	.syntax unified
	.arm
	.fpu softvfp
	.type	gdate, %function
gdate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	mov	r0, #0
	ldr	r3, .L16
	asr	r2, r4, #31
	smull	ip, r3, r4, r3
	add	r3, r3, r4
	rsb	r3, r2, r3, asr #8
	ldr	r2, .L16+4
	sub	sp, sp, #20
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r5, r1
	str	r3, [sp]
	str	r0, [sp, #4]
	str	r0, [sp, #8]
	b	.L2
.L3:
	ldr	r3, [sp]
	sub	r3, r3, #1
	str	r3, [sp]
.L2:
	mov	r0, sp
	bl	ndaysgi
	cmp	r4, r0
	blt	.L3
	mov	r1, #11
	ldr	r3, .L16+8
	ldr	ip, [sp]
	sub	r0, r4, r0
	cmp	ip, r3
	ldreq	r3, .L16+12
	ldrne	r3, .L16+16
	ldr	r2, [r3]
	str	r1, [sp, #4]
	ldr	r4, [r2, #44]
	cmp	r0, r4
	bge	.L6
	mov	r3, #10
	add	r2, r2, #44
.L7:
	str	r3, [sp, #4]
	ldr	r4, [r2, #-4]!
	mov	r1, r3
	cmp	r4, r0
	sub	r3, r3, #1
	bgt	.L7
.L6:
	ldr	r3, .L16+20
	sub	r0, r0, r4
	ldr	r2, [r3]
	str	r0, [sp, #8]
	cmp	ip, r2
	beq	.L14
.L8:
	mov	r1, sp
	mov	r0, r5
	bl	idt2date
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L14:
	ldr	r2, [r3, #4]
	cmp	r2, r1
	bne	.L8
	ldr	r3, [r3, #8]
	cmp	r0, r3
	addgt	r0, r0, #10
	strgt	r0, [sp, #8]
	b	.L8
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	-1282606671
	.word	.LC0
	.word	1582
	.word	month1s
	.word	month1
	.word	jiswitch
	.size	gdate, .-gdate
	.comm	month1s,4,4
	.comm	month1,4,4
	.comm	jiswitch,12,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
