	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_SetCaretIndex
_LISTBOX_SetCaretIndex:                 ## @LISTBOX_SetCaretIndex
	.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, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_TRACE
	movq	_LB_ERR@GOTPCREL(%rip), %r13
	testq	%rbx, %rbx
	js	LBB0_5
## %bb.1:
	movq	_LBS_NOSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r15), %eax
	jne	LBB0_5
## %bb.2:
	cmpq	%rbx, 16(%r15)
	jle	LBB0_5
## %bb.3:
	movq	_LB_OKAY@GOTPCREL(%rip), %r13
	cmpq	%rbx, %r12
	je	LBB0_5
## %bb.4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LISTBOX_DrawFocusRect
	movq	%rbx, (%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_LISTBOX_MakeItemVisible
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_LISTBOX_DrawFocusRect
LBB0_5:
	movl	(%r13), %eax
	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	"old focus %d, index %d\n"

	.comm	_LBS_NOSEL,4,2                  ## @LBS_NOSEL
	.comm	_LB_ERR,4,2                     ## @LB_ERR
	.comm	_LB_OKAY,4,2                    ## @LB_OKAY
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_LISTBOX_SetCaretIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_SetCaretIndex
_LISTBOX_SetCaretIndex:                 ; @LISTBOX_SetCaretIndex
	.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	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_TRACE
Lloh2:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
	tbnz	x21, #63, LBB0_7
; %bb.1:
	ldr	w9, [x19, #8]
Lloh4:
	adrp	x10, _LBS_NOSEL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _LBS_NOSEL@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	and	w9, w10, w9
	cbnz	w9, LBB0_7
; %bb.2:
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.le	LBB0_6
; %bb.3:
	cmp	x22, x21
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _FALSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LISTBOX_DrawFocusRect
	str	x21, [x19]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_LISTBOX_MakeItemVisible
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LISTBOX_DrawFocusRect
LBB0_5:
Lloh13:
	adrp	x8, _LB_OKAY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LB_OKAY@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"old focus %d, index %d\n"

	.comm	_LBS_NOSEL,4,2                  ; @LBS_NOSEL
	.comm	_LB_ERR,4,2                     ; @LB_ERR
	.comm	_LB_OKAY,4,2                    ; @LB_OKAY
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_LISTBOX_SetCaretIndex
.subsections_via_symbols
