	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_IsDateInValidRange
_MONTHCAL_IsDateInValidRange:           ## @MONTHCAL_IsDateInValidRange
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_max_allowed_date@GOTPCREL(%rip), %rbx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_MONTHCAL_CompareSystemTime
	cmpl	$1, %eax
	je	LBB0_7
## %bb.1:
	movq	_min_allowed_date@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_MONTHCAL_CompareSystemTime
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.2:
	movl	(%r12), %eax
	movq	_GDTR_MAX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	leaq	12(%r12), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_MONTHCAL_CompareSystemTime
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	cmoveq	%r13, %rbx
	movl	(%r12), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_GDTR_MIN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	addq	$4, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_MONTHCAL_CompareSystemTime
	cmpl	$-1, %eax
	cmoveq	%r12, %rbx
LBB0_7:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_10:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	sete	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_allowed_date,8,2           ## @max_allowed_date
	.comm	_min_allowed_date,8,2           ## @min_allowed_date
	.comm	_GDTR_MAX,4,2                   ## @GDTR_MAX
	.comm	_GDTR_MIN,4,2                   ## @GDTR_MIN
	.no_dead_strip	_MONTHCAL_IsDateInValidRange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_IsDateInValidRange
_MONTHCAL_IsDateInValidRange:           ; @MONTHCAL_IsDateInValidRange
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x21, _max_allowed_date@GOTPAGE
Lloh1:
	ldr	x21, [x21, _max_allowed_date@GOTPAGEOFF]
	mov	x0, x1
	mov	x1, x21
	bl	_MONTHCAL_CompareSystemTime
	cmp	w0, #1
	b.eq	LBB0_7
; %bb.1:
Lloh2:
	adrp	x21, _min_allowed_date@GOTPAGE
Lloh3:
	ldr	x21, [x21, _min_allowed_date@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_MONTHCAL_CompareSystemTime
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _GDTR_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GDTR_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x21, x22, #12
	mov	x0, x19
	mov	x1, x21
	bl	_MONTHCAL_CompareSystemTime
	cmp	w0, #1
	csel	x21, x21, xzr, eq
	ldr	w8, [x22]
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
Lloh7:
	adrp	x9, _GDTR_MIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GDTR_MIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	add	x22, x22, #4
	mov	x0, x19
	mov	x1, x22
	bl	_MONTHCAL_CompareSystemTime
	cmn	w0, #1
	csel	x21, x22, x21, eq
LBB0_7:
	cbz	w20, LBB0_10
; %bb.8:
	cbz	x21, LBB0_10
; %bb.9:
	ldr	d0, [x21]
	str	d0, [x19]
LBB0_10:
	cmp	x21, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_max_allowed_date,8,2           ; @max_allowed_date
	.comm	_min_allowed_date,8,2           ; @min_allowed_date
	.comm	_GDTR_MAX,4,2                   ; @GDTR_MAX
	.comm	_GDTR_MIN,4,2                   ; @GDTR_MIN
	.no_dead_strip	_MONTHCAL_IsDateInValidRange
.subsections_via_symbols
