	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_GetDayRect
_MONTHCAL_GetDayRect:                   ## @MONTHCAL_GetDayRect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_MONTHCAL_ValidateDate
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %r13d
	je	LBB0_3
LBB0_10:
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r13d, %r8d
	callq	_MONTHCAL_GetDayPos
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %r8d
	callq	_MONTHCAL_GetDayRectI
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	%r14, %rdi
	callq	_SetRectEmpty
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_MONTHCAL_CompareMonths
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	(%r12), %rbx
	movq	%r12, %rdi
	callq	_MONTHCAL_GetCalCount
	cltq
	leaq	(%rbx,%rax,4), %rsi
	addq	$-4, %rsi
	movq	%r15, %rdi
	callq	_MONTHCAL_CompareMonths
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_MONTHCAL_GetCalCount
	testl	$-2147483648, %ebx              ## imm = 0x80000000
	jne	LBB0_6
## %bb.12:
	decl	%eax
	movl	%eax, %r13d
	jmp	LBB0_10
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_6:
	movl	$1, %r13d
	cmpl	$3, %eax
	jl	LBB0_10
## %bb.7:
	movl	$1, %r13d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_MONTHCAL_CompareMonths
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	%r12, %rdi
	callq	_MONTHCAL_GetCalCount
	decl	%eax
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_8
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_MONTHCAL_GetDayRect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_GetDayRect
_MONTHCAL_GetDayRect:                   ; @MONTHCAL_GetDayRect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_MONTHCAL_ValidateDate
	cbz	w0, LBB0_3
; %bb.1:
	cmn	w22, #1
	b.eq	LBB0_5
LBB0_2:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	x4, x22
	bl	_MONTHCAL_GetDayPos
	ldp	w3, w2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x22
	bl	_MONTHCAL_GetDayRectI
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_SetRectEmpty
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_MONTHCAL_CompareMonths
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x22, [x20]
	mov	x0, x20
	bl	_MONTHCAL_GetCalCount
	add	x8, x22, w0, sxtw #2
	sub	x1, x8, #4
	mov	x0, x21
	bl	_MONTHCAL_CompareMonths
	mov	x22, x0
	mov	x0, x20
	bl	_MONTHCAL_GetCalCount
	tbnz	w22, #31, LBB0_9
; %bb.7:
	sub	w22, w0, #1
	b	LBB0_2
LBB0_8:
	mov	w22, #0
	b	LBB0_2
LBB0_9:
	mov	w22, #1
	cmp	w0, #3
	b.lt	LBB0_2
; %bb.10:
	mov	w23, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x1, x8, x23
	mov	x0, x21
	bl	_MONTHCAL_CompareMonths
	cbz	x0, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_MONTHCAL_GetCalCount
	sub	w8, w0, #1
	add	x23, x23, #4
	cmp	x22, w8, sxtw
	b.lt	LBB0_11
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_MONTHCAL_GetDayRect
.subsections_via_symbols
