	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_GetMinDate
_MONTHCAL_GetMinDate:                   ## @MONTHCAL_GetMinDate
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -40(%rbp)
	movl	8(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -40(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_MONTHCAL_CalculateDayOfWeek
	movl	%eax, %r15d
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_MONTHCAL_GetPrevMonth
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_MONTHCAL_MonthLength
	movl	(%r14), %ecx
	subl	%r15d, %ecx
	movslq	%ecx, %rcx
	imulq	$-1840700269, %rcx, %rdx        ## imm = 0x92492493
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$2, %edx
	addl	%esi, %edx
	leal	(,%rdx,8), %esi
	subl	%esi, %edx
	addl	%ecx, %edx
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%rbx)
	movslq	%eax, %r14
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_MONTHCAL_MonthLength
	cmpq	%r14, %rax
	jge	LBB0_2
## %bb.1:
	addl	$-7, (%rbx)
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MONTHCAL_CalculateDayOfWeek
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_MONTHCAL_GetMinDate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_GetMinDate
_MONTHCAL_GetMinDate:                   ; @MONTHCAL_GetMinDate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #8]
	ldr	x8, [x8]
	str	x8, [sp]
	mov	w8, #1
	str	w9, [sp, #8]
	str	w8, [sp]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_MONTHCAL_CalculateDayOfWeek
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w9, [x8, #8]
	ldr	x8, [x8]
	str	x8, [x19]
	str	w9, [x19, #8]
	mov	x0, x19
	bl	_MONTHCAL_GetPrevMonth
	ldp	w1, w0, [x19, #4]
	bl	_MONTHCAL_MonthLength
	ldr	w8, [x20]
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	sub	w8, w8, w21
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #2
	add	w9, w10, w9, lsr #31
	sub	w9, w9, w9, lsl #3
	add	w8, w8, w9
	add	w8, w0, w8
	add	w20, w8, #1
	str	w20, [x19]
	ldp	w1, w0, [x19, #4]
	bl	_MONTHCAL_MonthLength
	cmp	x0, w20, sxtw
	b.ge	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	sub	w8, w8, #7
	str	w8, [x19]
LBB0_2:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MONTHCAL_CalculateDayOfWeek
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_MONTHCAL_GetMinDate
.subsections_via_symbols
