	.file	"extr_monthcal.c_MONTHCAL_GetDayRect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	MONTHCAL_GetDayRect, @function
MONTHCAL_GetDayRect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	MONTHCAL_ValidateDate@PLT
	test	eax, eax
	je	.L16
	cmp	ebx, -1
	je	.L17
.L4:
	lea	rcx, 4[rsp]
	mov	rdx, rsp
	mov	r8d, ebx
	mov	rsi, r12
	mov	rdi, rbp
	call	MONTHCAL_GetDayPos@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR [rsp]
	mov	r8d, ebx
	mov	rsi, r13
	mov	rdi, rbp
	call	MONTHCAL_GetDayRectI@PLT
	mov	eax, DWORD PTR TRUE[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, r13
	call	SetRectEmpty@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	xor	ebx, ebx
	call	MONTHCAL_CompareMonths@PLT
	test	eax, eax
	jle	.L4
	mov	rdi, rbp
	mov	rbx, QWORD PTR 0[rbp]
	mov	r14d, 4
	call	MONTHCAL_GetCalCount@PLT
	mov	rdi, r12
	cdqe
	lea	rsi, -4[rbx+rax*4]
	mov	ebx, 1
	call	MONTHCAL_CompareMonths@PLT
	test	eax, eax
	js	.L5
	mov	rdi, rbp
	call	MONTHCAL_GetCalCount@PLT
	lea	ebx, -1[rax]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	add	rsi, r14
	add	r14, 4
	call	MONTHCAL_CompareMonths@PLT
	test	rax, rax
	je	.L4
	add	ebx, 1
.L5:
	mov	rdi, rbp
	call	MONTHCAL_GetCalCount@PLT
	sub	eax, 1
	cmp	eax, ebx
	jg	.L6
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	MONTHCAL_GetDayRect, .-MONTHCAL_GetDayRect
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.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_monthcal.c_MONTHCAL_GetDayRect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MONTHCAL_GetDayRect, %function
MONTHCAL_GetDayRect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r3
	ldr	r3, .L18
	sub	sp, sp, #28
	mov	r5, r0
	mov	r0, r1
	mov	r7, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	MONTHCAL_ValidateDate
	cmp	r0, #0
	beq	.L15
	cmn	r4, #1
	beq	.L16
.L4:
	mov	r1, r7
	add	r3, sp, #16
	add	r2, sp, #12
	mov	r0, r5
	str	r4, [sp]
	bl	MONTHCAL_GetDayPos
	ldr	r3, [sp, #16]
	mov	r1, r6
	mov	r0, r5
	ldr	r2, [sp, #12]
	str	r4, [sp]
	bl	MONTHCAL_GetDayRectI
	ldr	r3, .L18+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	mov	r0, r6
	bl	SetRectEmpty
	ldr	r3, .L18+8
	ldr	r0, [r3]
	b	.L1
.L16:
	mov	r0, r7
	ldr	r1, [r5]
	bl	MONTHCAL_CompareMonths
	cmp	r0, #0
	movle	r4, #0
	ble	.L4
	mov	r0, r5
	ldr	r4, [r5]
	bl	MONTHCAL_GetCalCount
	sub	r0, r0, #-1073741823
	add	r1, r4, r0, lsl #2
	mov	r0, r7
	bl	MONTHCAL_CompareMonths
	cmp	r0, #0
	movlt	r4, #1
	blt	.L5
	mov	r0, r5
	bl	MONTHCAL_GetCalCount
	sub	r4, r0, #1
	b	.L4
.L6:
	ldr	r1, [r5]
	mov	r0, r7
	add	r1, r1, r4, lsl #2
	bl	MONTHCAL_CompareMonths
	cmp	r0, #0
	beq	.L4
	add	r4, r4, #1
.L5:
	mov	r0, r5
	bl	MONTHCAL_GetCalCount
	sub	r0, r0, #1
	cmp	r0, r4
	bgt	.L6
	b	.L4
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	TRUE
	.word	FALSE
	.size	MONTHCAL_GetDayRect, .-MONTHCAL_GetDayRect
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
