	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_MoveCaret
_LISTBOX_MoveCaret:                     ## @LISTBOX_MoveCaret
	.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, %rbx
	movq	16(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	callq	_TRACE
	testq	%r15, %r15
	js	LBB0_10
## %bb.1:
	cmpq	%r15, (%rbx)
	jle	LBB0_10
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_LISTBOX_DrawFocusRect
	movl	8(%rbx), %eax
	movq	_LBS_EXTENDEDSEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.3:
	movl	12(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_min
	movq	%rax, %r12
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	callq	_max
	movq	%rax, %r13
	testq	%r12, %r12
	jle	LBB0_6
## %bb.5:
	movq	%r12, %rdx
	decq	%rdx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_LISTBOX_SelectItemRange
LBB0_6:
	movq	%r13, %rsi
	incq	%rsi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	$-1, %rdx
	callq	_LISTBOX_SelectItemRange
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_LISTBOX_SelectItemRange
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_LBS_MULTIPLESEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_9
## %bb.8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_LISTBOX_SetSelection
LBB0_9:
	movq	%r15, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_LISTBOX_MakeItemVisible
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LISTBOX_DrawFocusRect          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"old focus %d, index %d\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_LBS_EXTENDEDSEL,4,2            ## @LBS_EXTENDEDSEL
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LBS_MULTIPLESEL,4,2            ## @LBS_MULTIPLESEL
	.no_dead_strip	_LISTBOX_MoveCaret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_MoveCaret
_LISTBOX_MoveCaret:                     ; @LISTBOX_MoveCaret
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x1, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_TRACE
	tbnz	x21, #63, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x21
	b.le	LBB0_7
; %bb.2:
Lloh2:
	adrp	x25, _FALSE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_LISTBOX_DrawFocusRect
	ldr	w8, [x19, #8]
Lloh4:
	adrp	x9, _LBS_EXTENDEDSEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LBS_EXTENDEDSEL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x24, _TRUE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	w1, [x19, #12]
	cmn	w1, #1
	b.eq	LBB0_10
; %bb.4:
	mov	x0, x21
	bl	_min
	mov	x22, x0
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_max
	mov	x23, x0
	subs	x2, x22, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, #0
	bl	_LISTBOX_SelectItemRange
LBB0_6:
	add	x1, x23, #1
	ldr	w3, [x25]
	mov	x0, x19
	mov	x2, #-1
	bl	_LISTBOX_SelectItemRange
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_LISTBOX_SelectItemRange
	b	LBB0_10
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x9, _LBS_MULTIPLESEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LBS_MULTIPLESEL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_LISTBOX_SetSelection
LBB0_10:
	str	x21, [x19, #16]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_LISTBOX_MakeItemVisible
	ldr	w1, [x24]
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_LISTBOX_DrawFocusRect
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"old focus %d, index %d\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_LBS_EXTENDEDSEL,4,2            ; @LBS_EXTENDEDSEL
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LBS_MULTIPLESEL,4,2            ; @LBS_MULTIPLESEL
	.no_dead_strip	_LISTBOX_MoveCaret
.subsections_via_symbols
