	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_Scroll
_MONTHCAL_Scroll:                       ## @MONTHCAL_Scroll
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_MONTHCAL_GetCalCount
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	leaq	4(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rdi
	addq	%r15, %rdi
	movl	%r14d, %esi
	callq	_MONTHCAL_GetMonth
	incq	%r12
	movq	%r13, %rdi
	callq	_MONTHCAL_GetCalCount
	cltq
	addq	$4, %r15
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %ebx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rsi
	addq	%r15, %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_MONTHCAL_CompareMonths
	negq	%rax
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	orl	%r12d, %ebx
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
LBB0_6:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.7:
	movq	_MCS_MULTISELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_9
## %bb.8:
	leaq	-56(%rbp), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_MONTHCAL_GetSelRange
	subl	%ebx, %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_MONTHCAL_GetMonth
	leaq	-52(%rbp), %rdi
	movl	%r14d, %esi
	callq	_MONTHCAL_GetMonth
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_MONTHCAL_SetSelRange
	jmp	LBB0_10
LBB0_9:
	movl	4(%r13), %eax
	movl	%eax, -56(%rbp)
	subl	%ebx, %r14d
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_MONTHCAL_GetMonth
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_MONTHCAL_SetCurSel
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MCS_MULTISELECT,4,2            ## @MCS_MULTISELECT
	.no_dead_strip	_MONTHCAL_Scroll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_Scroll
_MONTHCAL_Scroll:                       ; @MONTHCAL_Scroll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_MONTHCAL_GetCalCount
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	add	x22, x19, #4
	mov	w23, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	mov	x1, x20
	bl	_MONTHCAL_GetMonth
	add	x25, x25, #1
	mov	x0, x19
	bl	_MONTHCAL_GetCalCount
	add	x24, x24, #4
	cmp	x25, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w23, #1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x24
	mov	x0, x22
	bl	_MONTHCAL_CompareMonths
	cmp	x0, #0
	csinv	w23, w25, wzr, eq
	b	LBB0_2
LBB0_5:
	mov	w23, #-1
LBB0_6:
	cbnz	x21, LBB0_10
; %bb.7:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _MCS_MULTISELECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCS_MULTISELECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x21, sp
	mov	x1, sp
	mov	x0, x19
	bl	_MONTHCAL_GetSelRange
	sub	w20, w20, w23
	mov	x0, sp
	mov	x1, x20
	bl	_MONTHCAL_GetMonth
	add	x0, x21, #4
	mov	x1, x20
	bl	_MONTHCAL_GetMonth
	mov	x1, sp
	mov	x0, x19
	bl	_MONTHCAL_SetSelRange
	b	LBB0_10
LBB0_9:
	ldr	w8, [x19, #4]
	str	w8, [sp]
	sub	w1, w20, w23
	mov	x0, sp
	bl	_MONTHCAL_GetMonth
	mov	x1, sp
	mov	x0, x19
	bl	_MONTHCAL_SetCurSel
LBB0_10:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MCS_MULTISELECT,4,2            ; @MCS_MULTISELECT
	.no_dead_strip	_MONTHCAL_Scroll
.subsections_via_symbols
