	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_GoToMonth
_MONTHCAL_GoToMonth:                    ## @MONTHCAL_GoToMonth
	.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	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %r15d
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_MONTHCAL_GetCalCount
	movl	%eax, %r15d
LBB0_2:
	movq	_DIRECTION_BACKWARD@GOTPCREL(%rip), %rbx
	cmpl	%r14d, (%rbx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	8(%r13), %r12
	cmpl	%r14d, (%rbx)
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	%r15d, %esi
	negl	%esi
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	callq	_MONTHCAL_GetCalCount
	cltq
	movl	-4(%r12,%rax,4), %eax
	movl	%eax, -44(%rbp)
	movl	%r15d, %esi
LBB0_5:
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_MONTHCAL_GetMonth
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_MONTHCAL_IsDateInValidRange
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_MCS_NOSELCHANGEONNAV@GOTPCREL(%rip), %rax
	movl	%r15d, %esi
	negl	%esi
	cmpl	%r14d, (%rbx)
	movl	(%rax), %ebx
	cmovnel	%r15d, %esi
	movl	4(%r13), %r14d
	movl	%ebx, %edx
	andl	%r14d, %edx
	movq	%r13, %rdi
	callq	_MONTHCAL_Scroll
	movq	%r13, %rdi
	callq	_MONTHCAL_NotifyDayState
	andl	%r14d, %ebx
	jne	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_MONTHCAL_NotifySelectionChange
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_DIRECTION_BACKWARD,4,2         ## @DIRECTION_BACKWARD
L_.str.1:                               ## @.str.1
	.asciz	"back"

L_.str.2:                               ## @.str.2
	.asciz	"fwd"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MCS_NOSELCHANGEONNAV,4,2       ## @MCS_NOSELCHANGEONNAV
	.no_dead_strip	_MONTHCAL_GoToMonth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_GoToMonth
_MONTHCAL_GoToMonth:                    ; @MONTHCAL_GoToMonth
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	cbnz	w21, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_MONTHCAL_GetCalCount
	mov	x21, x0
LBB0_2:
Lloh0:
	adrp	x23, _DIRECTION_BACKWARD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DIRECTION_BACKWARD@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w20
	csel	x1, x10, x9, eq
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w8, [x23]
	ldr	x22, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x22]
	str	w8, [sp, #12]
	neg	w1, w21
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_MONTHCAL_GetCalCount
	add	x8, x22, w0, sxtw #2
	ldur	w8, [x8, #-4]
	str	w8, [sp, #12]
	mov	x1, x21
LBB0_5:
	add	x0, sp, #12
	bl	_MONTHCAL_GetMonth
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x19
	bl	_MONTHCAL_IsDateInValidRange
	cbz	w0, LBB0_8
; %bb.6:
Lloh11:
	adrp	x8, _MCS_NOSELCHANGEONNAV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MCS_NOSELCHANGEONNAV@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh13:
	ldr	w8, [x8]
	and	w22, w8, w9
	ldr	w8, [x23]
	cmp	w8, w20
	cneg	w1, w21, eq
	mov	x0, x19
	mov	x2, x22
	bl	_MONTHCAL_Scroll
	mov	x0, x19
	bl	_MONTHCAL_NotifyDayState
	cbnz	w22, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_MONTHCAL_NotifySelectionChange
LBB0_8:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_DIRECTION_BACKWARD,4,2         ; @DIRECTION_BACKWARD
l_.str.1:                               ; @.str.1
	.asciz	"back"

l_.str.2:                               ; @.str.2
	.asciz	"fwd"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MCS_NOSELCHANGEONNAV,4,2       ; @MCS_NOSELCHANGEONNAV
	.no_dead_strip	_MONTHCAL_GoToMonth
.subsections_via_symbols
