	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_HandleChar
_LISTBOX_HandleChar:                    ## @LISTBOX_HandleChar
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movb	%sil, -26(%rbp)
	movb	$0, -25(%rbp)
	movq	_LBS_WANTKEYBOARDINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.1:
	movl	16(%rbx), %eax
	movl	32(%rbx), %r14d
	movq	_WM_CHARTOITEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movsbl	%sil, %edi
	movl	%eax, %esi
	callq	_MAKEWPARAM
	movl	24(%rbx), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_SendMessageW
	cmpl	$-2, %eax
	je	LBB0_10
## %bb.2:
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_4
LBB0_3:
	movl	16(%rbx), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-26(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_LISTBOX_FindString
	movl	%eax, %r14d
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_IS_MULTISELECT
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	cmpl	$-1, 4(%rbx)
	jne	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LISTBOX_SetSelection
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LISTBOX_MoveCaret
	movq	_LBS_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_LBN_SELCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SEND_NOTIFICATION
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBS_WANTKEYBOARDINPUT,4,2      ## @LBS_WANTKEYBOARDINPUT
	.comm	_WM_CHARTOITEM,4,2              ## @WM_CHARTOITEM
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LBS_NOTIFY,4,2                 ## @LBS_NOTIFY
	.comm	_LBN_SELCHANGE,4,2              ## @LBN_SELCHANGE
	.no_dead_strip	_LISTBOX_HandleChar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_HandleChar
_LISTBOX_HandleChar:                    ; @LISTBOX_HandleChar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	strb	w1, [sp, #14]
	strb	wzr, [sp, #15]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LBS_WANTKEYBOARDINPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LBS_WANTKEYBOARDINPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w20, [x19, #32]
Lloh3:
	adrp	x8, _WM_CHARTOITEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM_CHARTOITEM@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w8, [x19, #16]
	mov	x0, x1
	mov	x1, x8
	bl	_MAKEWPARAM
	mov	x2, x0
	ldr	w3, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_SendMessageW
	cmn	w0, #2
	b.eq	LBB0_10
; %bb.2:
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
LBB0_3:
	ldr	w1, [x19, #16]
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x2, sp, #14
	mov	x0, x19
	bl	_LISTBOX_FindString
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_IS_MULTISELECT
Lloh9:
	adrp	x21, _TRUE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	w2, [x21]
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_LISTBOX_SetSelection
LBB0_7:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_LISTBOX_MoveCaret
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _LBS_NOTIFY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LBS_NOTIFY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _LBN_SELCHANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LBN_SELCHANGE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SEND_NOTIFICATION
LBB0_10:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LBS_WANTKEYBOARDINPUT,4,2      ; @LBS_WANTKEYBOARDINPUT
	.comm	_WM_CHARTOITEM,4,2              ; @WM_CHARTOITEM
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LBS_NOTIFY,4,2                 ; @LBS_NOTIFY
	.comm	_LBN_SELCHANGE,4,2              ; @LBN_SELCHANGE
	.no_dead_strip	_LISTBOX_HandleChar
.subsections_via_symbols
