	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_SetSelection
_LISTBOX_SetSelection:                  ## @LISTBOX_SetSelection
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	testq	%rcx, %rcx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_TRACE
	movl	4(%rbx), %eax
	movq	_LBS_NOSEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	%r14d, (%rbx)
	jmp	LBB0_7
LBB0_2:
	cmpl	$-1, %r14d
	jl	LBB0_7
## %bb.3:
	movl	8(%rbx), %edx
	cmpl	%r14d, %edx
	jle	LBB0_7
## %bb.4:
	movq	_LBS_MULTIPLESEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	cmpl	$-1, %r14d
	je	LBB0_12
## %bb.6:
	movl	%r14d, %esi
	movl	%r14d, %edx
	jmp	LBB0_13
LBB0_7:
	movq	_LB_ERR@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movslq	(%rbx), %r15
	cmpl	%r14d, %r15d
	jne	LBB0_14
## %bb.11:
	movq	_LB_OKAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_31
LBB0_12:
	xorl	%esi, %esi
LBB0_13:
	movq	%r15, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LISTBOX_SelectItemRange        ## TAILCALL
LBB0_14:
	cmpl	$-1, %r15d
	je	LBB0_16
## %bb.15:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
LBB0_16:
	cmpl	$-1, %r14d
	je	LBB0_18
## %bb.17:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rcx
	movl	%r14d, %edx
	movl	%eax, (%rcx,%rdx,4)
LBB0_18:
	cmpl	$-1, %r15d
	je	LBB0_20
## %bb.19:
	movq	_ODA_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_LISTBOX_RepaintItem
LBB0_20:
	movl	%r14d, (%rbx)
	cmpl	$-1, %r14d
	je	LBB0_22
## %bb.21:
	movq	_ODA_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LISTBOX_RepaintItem
LBB0_22:
	testq	%r12, %r12
	je	LBB0_26
## %bb.23:
	cmpl	$0, 8(%rbx)
	je	LBB0_26
## %bb.24:
	cmpl	$-1, %r14d
	jne	LBB0_28
## %bb.25:
	movq	_LBN_SELCANCEL@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_26:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.27:
	movq	_CBF_SELCHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_30
LBB0_28:
	movq	_LBN_SELCHANGE@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SEND_NOTIFICATION
LBB0_30:
                                        ## implicit-def: $eax
LBB0_31:
	cmpl	%r14d, %r15d
	je	LBB0_9
## %bb.32:
	movq	_LB_OKAY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cur_sel=%d index=%d notify=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"YES"

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

	.comm	_LBS_NOSEL,4,2                  ## @LBS_NOSEL
	.comm	_LB_ERR,4,2                     ## @LB_ERR
	.comm	_LBS_MULTIPLESEL,4,2            ## @LBS_MULTIPLESEL
	.comm	_LB_OKAY,4,2                    ## @LB_OKAY
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_ODA_SELECT,4,2                 ## @ODA_SELECT
	.comm	_LBN_SELCHANGE,4,2              ## @LBN_SELCHANGE
	.comm	_LBN_SELCANCEL,4,2              ## @LBN_SELCANCEL
	.comm	_CBF_SELCHANGE,4,2              ## @CBF_SELCHANGE
	.no_dead_strip	_LISTBOX_SetSelection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_SetSelection
_LISTBOX_SetSelection:                  ; @LISTBOX_SetSelection
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x3, #0
	csel	x3, x9, x8, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_TRACE
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, _LBS_NOSEL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LBS_NOSEL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	str	w19, [x20]
	b	LBB0_7
LBB0_2:
	cmn	w19, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	w2, [x20, #8]
	cmp	w2, w19
	b.le	LBB0_7
; %bb.4:
Lloh9:
	adrp	x9, _LBS_MULTIPLESEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LBS_MULTIPLESEL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x20
	cmn	w19, #1
	b.eq	LBB0_11
; %bb.6:
	mov	x1, x19
	mov	x2, x19
	b	LBB0_12
LBB0_7:
Lloh12:
	adrp	x8, _LB_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LB_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldrsw	x21, [x20]
Lloh15:
	adrp	x23, _LB_OKAY@GOTPAGE
Lloh16:
	ldr	x23, [x23, _LB_OKAY@GOTPAGEOFF]
	cmp	w21, w19
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [x23]
	b	LBB0_27
LBB0_11:
	mov	w1, #0
LBB0_12:
	mov	x3, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_LISTBOX_SelectItemRange
LBB0_13:
	cmn	w21, #1
	b.eq	LBB0_15
; %bb.14:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
	str	w8, [x9, x21, lsl #2]
LBB0_15:
	cmn	w19, #1
	b.eq	LBB0_17
; %bb.16:
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	x9, [x20, #24]
	str	w8, [x9, w19, uxtw #2]
LBB0_17:
Lloh23:
	adrp	x24, _ODA_SELECT@GOTPAGE
Lloh24:
	ldr	x24, [x24, _ODA_SELECT@GOTPAGEOFF]
	cmn	w21, #1
	b.eq	LBB0_19
; %bb.18:
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_LISTBOX_RepaintItem
LBB0_19:
	str	w19, [x20]
	cmn	w19, #1
	b.eq	LBB0_21
; %bb.20:
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_LISTBOX_RepaintItem
LBB0_21:
	cbz	x22, LBB0_24
; %bb.22:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_24
; %bb.23:
Lloh25:
	adrp	x8, _LBN_SELCHANGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LBN_SELCHANGE@GOTPAGEOFF]
Lloh27:
	adrp	x9, _LBN_SELCANCEL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _LBN_SELCANCEL@GOTPAGEOFF]
	cmn	w19, #1
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SEND_NOTIFICATION
	b	LBB0_26
LBB0_24:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_26
; %bb.25:
Lloh29:
	adrp	x9, _CBF_SELCHANGE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CBF_SELCHANGE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_26:
                                        ; implicit-def: $w8
LBB0_27:
	ldr	w9, [x23]
	cmp	w21, w19
	csel	w0, w8, w9, eq
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cur_sel=%d index=%d notify=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"YES"

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

	.comm	_LBS_NOSEL,4,2                  ; @LBS_NOSEL
	.comm	_LB_ERR,4,2                     ; @LB_ERR
	.comm	_LBS_MULTIPLESEL,4,2            ; @LBS_MULTIPLESEL
	.comm	_LB_OKAY,4,2                    ; @LB_OKAY
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_ODA_SELECT,4,2                 ; @ODA_SELECT
	.comm	_LBN_SELCHANGE,4,2              ; @LBN_SELCHANGE
	.comm	_LBN_SELCANCEL,4,2              ; @LBN_SELCANCEL
	.comm	_CBF_SELCHANGE,4,2              ; @CBF_SELCHANGE
	.no_dead_strip	_LISTBOX_SetSelection
.subsections_via_symbols
