	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_ListBox_HandleKey         ## -- Begin function Item_ListBox_HandleKey
	.p2align	4, 0x90
_Item_ListBox_HandleKey:                ## @Item_ListBox_HandleKey
	.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
	movq	%rcx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	24(%rdi), %r13
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rdi), %edi
	callq	*(%rax)
	movl	%eax, %r14d
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_3:
	movq	%r15, %rdi
	callq	_Item_ListBox_MaxScroll
	movl	%eax, %ecx
	movl	8(%r15), %esi
	movq	_WINDOW_HORIZONTAL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_24
## %bb.4:
	movl	12(%r15), %eax
	cltd
	idivl	(%r13)
                                        ## kill: def $eax killed $eax def $rax
	movq	_K_LEFTARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_K_KP_LEFTARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_6
## %bb.12:
	movq	_K_RIGHTARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_14
## %bb.13:
	movq	_K_KP_RIGHTARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	jne	LBB0_31
LBB0_14:
	cmpl	$0, 16(%r13)
	je	LBB0_15
## %bb.22:
	movl	8(%r13), %eax
	incl	%eax
	movl	%eax, 8(%r13)
	movq	_qtrue@GOTPCREL(%rip), %rbx
	cmpl	%r14d, %eax
	jl	LBB0_62
## %bb.23:
	decl	%r14d
	movl	%r14d, 8(%r13)
	jmp	LBB0_62
LBB0_1:
	leaq	12(%r15), %rdi
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	24(%rax), %edx
	movl	28(%rax), %esi
	callq	_Rect_ContainsPoint
	movq	_qfalse@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_62
## %bb.2:
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	jne	LBB0_3
	jmp	LBB0_62
LBB0_24:
	movl	16(%r15), %eax
	cltd
	idivl	12(%r13)
                                        ## kill: def $eax killed $eax def $rax
	movq	_K_UPARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_6
## %bb.25:
	movq	_K_KP_UPARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_6
## %bb.26:
	movq	_K_DOWNARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_28
## %bb.27:
	movq	_K_KP_DOWNARROW@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_28
LBB0_31:
	movq	_K_MOUSE1@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_33
## %bb.32:
	movq	_K_MOUSE2@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_33
## %bb.45:
	movq	_K_HOME@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_47
## %bb.46:
	movq	_K_KP_HOME@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_47
## %bb.48:
	movq	_K_END@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_50
## %bb.49:
	movq	_K_KP_END@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_50
## %bb.51:
	movq	_K_PGUP@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_53
## %bb.52:
	movq	_K_KP_PGUP@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_53
## %bb.55:
	movq	_K_PGDN@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_58
## %bb.56:
	movq	_K_KP_PGDN@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_58
## %bb.57:
	movq	_qfalse@GOTPCREL(%rip), %rbx
	jmp	LBB0_62
LBB0_6:
	cmpl	$0, 16(%r13)
	je	LBB0_7
LBB0_34:
	movl	8(%r13), %eax
	leal	-1(%rax), %ecx
	xorl	%edx, %edx
	testl	%eax, %eax
	cmovgl	%ecx, %edx
	movl	%edx, 8(%r13)
	jmp	LBB0_61
LBB0_7:
	movl	4(%r13), %ecx
	movl	8(%r13), %edx
	leal	-1(%rcx), %edi
	xorl	%esi, %esi
	testl	%ecx, %ecx
	cmovgl	%edi, %esi
LBB0_8:
	movl	%esi, 4(%r13)
	cmpl	%edx, %esi
	movl	%edx, %ecx
	cmovll	%esi, %ecx
	leal	(%rcx,%rax), %edi
	cmpl	%edi, %esi
	jge	LBB0_10
## %bb.9:
	cmpl	%edx, %esi
	jge	LBB0_11
LBB0_10:
	movl	%esi, %edx
	subl	%eax, %edx
	incl	%edx
	cmpl	%edi, %esi
	cmovll	%ecx, %edx
	movl	%edx, 8(%r13)
	jmp	LBB0_11
LBB0_33:
	movq	_WINDOW_LB_LEFTARROW@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	jne	LBB0_34
## %bb.35:
	movq	_WINDOW_LB_RIGHTARROW@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	jne	LBB0_29
## %bb.36:
	movq	_WINDOW_LB_PGUP@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	jne	LBB0_37
## %bb.38:
	movq	_WINDOW_LB_PGDN@GOTPCREL(%rip), %rdx
	testl	%esi, (%rdx)
	jne	LBB0_60
## %bb.39:
	movq	_WINDOW_LB_THUMB@GOTPCREL(%rip), %rax
	movq	_qtrue@GOTPCREL(%rip), %rbx
	testl	%esi, (%rax)
	jne	LBB0_62
## %bb.40:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rax
	movq	_lastListBoxClickTime@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jge	LBB0_43
## %bb.41:
	movq	24(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	callq	_Item_RunScript
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rcx), %rax
LBB0_43:
	movq	_DOUBLE_CLICK_DELAY@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	movq	%rax, (%r14)
	movl	4(%r13), %esi
	cmpl	%esi, (%r15)
	je	LBB0_62
## %bb.44:
	movl	%esi, (%r15)
	movl	4(%r15), %edi
	callq	*16(%rcx)
	jmp	LBB0_62
LBB0_28:
	cmpl	$0, 16(%r13)
	je	LBB0_15
LBB0_29:
	movl	8(%r13), %eax
	leal	1(%rax), %edx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %edx
	movl	%edx, 8(%r13)
	jmp	LBB0_61
LBB0_15:
	movl	4(%r13), %esi
	movl	8(%r13), %ecx
	incl	%esi
	movl	%esi, 4(%r13)
	cmpl	%ecx, %esi
	jge	LBB0_18
LBB0_17:
	movl	%esi, 8(%r13)
	movl	%esi, %ecx
LBB0_18:
	cmpl	%r14d, %esi
	jl	LBB0_20
## %bb.19:
	decl	%r14d
	movl	%r14d, 4(%r13)
	movl	%r14d, %esi
LBB0_20:
	addl	%eax, %ecx
	cmpl	%ecx, %esi
	jl	LBB0_11
## %bb.21:
	movl	%esi, %ecx
	subl	%eax, %ecx
	incl	%ecx
	movl	%ecx, 8(%r13)
LBB0_11:
	movl	%esi, (%r15)
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%r15), %edi
	callq	*16(%rax)
LBB0_61:
	movq	_qtrue@GOTPCREL(%rip), %rbx
LBB0_62:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	movl	$0, 8(%r13)
	jmp	LBB0_61
LBB0_50:
	movl	%ecx, 8(%r13)
	jmp	LBB0_61
LBB0_53:
	cmpl	$0, 16(%r13)
	je	LBB0_54
LBB0_37:
	movl	8(%r13), %ecx
	subl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	movl	%eax, 8(%r13)
	jmp	LBB0_61
LBB0_58:
	cmpl	$0, 16(%r13)
	je	LBB0_59
LBB0_60:
	addl	8(%r13), %eax
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	%eax, 8(%r13)
	jmp	LBB0_61
LBB0_54:
	movl	4(%r13), %ecx
	movl	8(%r13), %edx
	subl	%eax, %ecx
	xorl	%esi, %esi
	testl	%ecx, %ecx
	cmovgl	%ecx, %esi
	jmp	LBB0_8
LBB0_59:
	movl	4(%r13), %esi
	addl	%eax, %esi
	movl	%esi, 4(%r13)
	movl	8(%r13), %ecx
	cmpl	%ecx, %esi
	jl	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_WINDOW_HORIZONTAL,4,2          ## @WINDOW_HORIZONTAL
	.comm	_K_LEFTARROW,4,2                ## @K_LEFTARROW
	.comm	_K_KP_LEFTARROW,4,2             ## @K_KP_LEFTARROW
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_K_RIGHTARROW,4,2               ## @K_RIGHTARROW
	.comm	_K_KP_RIGHTARROW,4,2            ## @K_KP_RIGHTARROW
	.comm	_K_UPARROW,4,2                  ## @K_UPARROW
	.comm	_K_KP_UPARROW,4,2               ## @K_KP_UPARROW
	.comm	_K_DOWNARROW,4,2                ## @K_DOWNARROW
	.comm	_K_KP_DOWNARROW,4,2             ## @K_KP_DOWNARROW
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_WINDOW_LB_LEFTARROW,4,2        ## @WINDOW_LB_LEFTARROW
	.comm	_WINDOW_LB_RIGHTARROW,4,2       ## @WINDOW_LB_RIGHTARROW
	.comm	_WINDOW_LB_PGUP,4,2             ## @WINDOW_LB_PGUP
	.comm	_WINDOW_LB_PGDN,4,2             ## @WINDOW_LB_PGDN
	.comm	_WINDOW_LB_THUMB,4,2            ## @WINDOW_LB_THUMB
	.comm	_lastListBoxClickTime,8,3       ## @lastListBoxClickTime
	.comm	_DOUBLE_CLICK_DELAY,8,3         ## @DOUBLE_CLICK_DELAY
	.comm	_K_HOME,4,2                     ## @K_HOME
	.comm	_K_KP_HOME,4,2                  ## @K_KP_HOME
	.comm	_K_END,4,2                      ## @K_END
	.comm	_K_KP_END,4,2                   ## @K_KP_END
	.comm	_K_PGUP,4,2                     ## @K_PGUP
	.comm	_K_KP_PGUP,4,2                  ## @K_KP_PGUP
	.comm	_K_PGDN,4,2                     ## @K_PGDN
	.comm	_K_KP_PGDN,4,2                  ## @K_KP_PGDN
	.comm	_qfalse,8,3                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_ListBox_HandleKey         ; -- Begin function Item_ListBox_HandleKey
	.p2align	2
_Item_ListBox_HandleKey:                ; @Item_ListBox_HandleKey
	.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, x1
	mov	x19, x0
	ldr	x23, [x0, #24]
Lloh0:
	adrp	x24, _DC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DC@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w0, [x0, #4]
	blr	x8
	mov	x20, x0
	cbz	x22, LBB0_7
LBB0_1:
	mov	x0, x19
	bl	_Item_ListBox_MaxScroll
	ldr	w9, [x19, #8]
Lloh2:
	adrp	x8, _WINDOW_HORIZONTAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINDOW_HORIZONTAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_10
; %bb.2:
	ldr	w8, [x19, #12]
	ldr	w10, [x23]
	sdiv	w8, w8, w10
Lloh5:
	adrp	x10, _K_LEFTARROW@GOTPAGE
Lloh6:
	ldr	x10, [x10, _K_LEFTARROW@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _K_KP_LEFTARROW@GOTPAGE
Lloh9:
	ldr	x11, [x11, _K_KP_LEFTARROW@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	w10, w21
	ccmp	w11, w21, #4, ne
	b.eq	LBB0_11
; %bb.3:
Lloh11:
	adrp	x10, _K_RIGHTARROW@GOTPAGE
Lloh12:
	ldr	x10, [x10, _K_RIGHTARROW@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _K_KP_RIGHTARROW@GOTPAGE
Lloh15:
	ldr	x11, [x11, _K_KP_RIGHTARROW@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	cmp	w10, w21
	ccmp	w11, w21, #4, ne
	b.ne	LBB0_22
; %bb.4:
	ldr	w9, [x23, #16]
	cbz	w9, LBB0_16
; %bb.5:
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	cmp	w8, w20
	b.lt	LBB0_40
; %bb.6:
	sub	w8, w20, #1
	b	LBB0_13
LBB0_7:
	add	x0, x19, #12
	ldr	x8, [x24]
	ldp	w2, w1, [x8, #24]
	bl	_Rect_ContainsPoint
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x19, #8]
Lloh17:
	adrp	x9, _WINDOW_HASFOCUS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
LBB0_9:
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_41
LBB0_10:
	ldr	w8, [x19, #16]
	ldr	w10, [x23, #12]
	sdiv	w8, w8, w10
Lloh22:
	adrp	x10, _K_UPARROW@GOTPAGE
Lloh23:
	ldr	x10, [x10, _K_UPARROW@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	adrp	x11, _K_KP_UPARROW@GOTPAGE
Lloh26:
	ldr	x11, [x11, _K_KP_UPARROW@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	cmp	w10, w21
	ccmp	w11, w21, #4, ne
	b.ne	LBB0_14
LBB0_11:
	ldr	w9, [x23, #16]
	cbz	w9, LBB0_34
LBB0_12:
	ldr	w8, [x23, #8]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w8, w9, wzr, gt
LBB0_13:
	str	w8, [x23, #8]
	b	LBB0_40
LBB0_14:
Lloh28:
	adrp	x10, _K_DOWNARROW@GOTPAGE
Lloh29:
	ldr	x10, [x10, _K_DOWNARROW@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
Lloh31:
	adrp	x11, _K_KP_DOWNARROW@GOTPAGE
Lloh32:
	ldr	x11, [x11, _K_KP_DOWNARROW@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	cmp	w10, w21
	ccmp	w11, w21, #4, ne
	b.ne	LBB0_22
; %bb.15:
	ldr	w9, [x23, #16]
	cbnz	w9, LBB0_44
LBB0_16:
	ldp	w10, w9, [x23, #4]
	add	w1, w10, #1
	str	w1, [x23, #4]
	cmp	w1, w9
	b.ge	LBB0_18
LBB0_17:
	str	w1, [x23, #8]
	mov	x9, x1
LBB0_18:
	cmp	w1, w20
	b.lt	LBB0_20
; %bb.19:
	sub	w1, w20, #1
	str	w1, [x23, #4]
LBB0_20:
	add	w9, w9, w8
	cmp	w1, w9
	b.lt	LBB0_38
; %bb.21:
	sub	w8, w1, w8
	add	w8, w8, #1
	b	LBB0_37
LBB0_22:
Lloh34:
	adrp	x10, _K_MOUSE1@GOTPAGE
Lloh35:
	ldr	x10, [x10, _K_MOUSE1@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	cmp	w10, w21
	b.eq	LBB0_42
; %bb.23:
Lloh37:
	adrp	x10, _K_MOUSE2@GOTPAGE
Lloh38:
	ldr	x10, [x10, _K_MOUSE2@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	cmp	w10, w21
	b.eq	LBB0_42
; %bb.24:
Lloh40:
	adrp	x9, _K_HOME@GOTPAGE
Lloh41:
	ldr	x9, [x9, _K_HOME@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_45
; %bb.25:
Lloh43:
	adrp	x9, _K_KP_HOME@GOTPAGE
Lloh44:
	ldr	x9, [x9, _K_KP_HOME@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_45
; %bb.26:
Lloh46:
	adrp	x9, _K_END@GOTPAGE
Lloh47:
	ldr	x9, [x9, _K_END@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_46
; %bb.27:
Lloh49:
	adrp	x9, _K_KP_END@GOTPAGE
Lloh50:
	ldr	x9, [x9, _K_KP_END@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_46
; %bb.28:
Lloh52:
	adrp	x9, _K_PGUP@GOTPAGE
Lloh53:
	ldr	x9, [x9, _K_PGUP@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_50
; %bb.29:
Lloh55:
	adrp	x9, _K_KP_PGUP@GOTPAGE
Lloh56:
	ldr	x9, [x9, _K_KP_PGUP@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_50
; %bb.30:
Lloh58:
	adrp	x9, _K_PGDN@GOTPAGE
Lloh59:
	ldr	x9, [x9, _K_PGDN@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_32
; %bb.31:
Lloh61:
	adrp	x9, _K_KP_PGDN@GOTPAGE
Lloh62:
	ldr	x9, [x9, _K_KP_PGDN@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_9
LBB0_32:
	ldr	w9, [x23, #16]
	cbnz	w9, LBB0_49
; %bb.33:
	ldp	w10, w9, [x23, #4]
	add	w1, w10, w8
	cmp	w1, w9
	str	w1, [x23, #4]
	b.lt	LBB0_17
	b	LBB0_18
LBB0_34:
	ldp	w9, w11, [x23, #4]
	sub	w10, w9, #1
	cmp	w9, #0
	csel	w1, w10, wzr, gt
LBB0_35:
	str	w1, [x23, #4]
	cmp	w1, w11
	csel	w9, w1, w11, lt
	add	w10, w9, w8
	cmp	w1, w10
	ccmp	w1, w11, #8, lt
	b.ge	LBB0_38
; %bb.36:
	sub	w8, w1, w8
	cmp	w1, w10
	csinc	w8, w9, w8, lt
LBB0_37:
	str	w8, [x23, #8]
LBB0_38:
	str	w1, [x19]
	ldr	x8, [x24]
LBB0_39:
	ldr	x8, [x8, #16]
	ldr	w0, [x19, #4]
	blr	x8
LBB0_40:
Lloh64:
	adrp	x8, _qtrue@GOTPAGE
Lloh65:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_41:
	ldr	x0, [x8]
	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_42:
Lloh66:
	adrp	x10, _WINDOW_LB_LEFTARROW@GOTPAGE
Lloh67:
	ldr	x10, [x10, _WINDOW_LB_LEFTARROW@GOTPAGEOFF]
Lloh68:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_12
; %bb.43:
Lloh69:
	adrp	x10, _WINDOW_LB_RIGHTARROW@GOTPAGE
Lloh70:
	ldr	x10, [x10, _WINDOW_LB_RIGHTARROW@GOTPAGEOFF]
Lloh71:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_47
LBB0_44:
	ldr	w8, [x23, #8]
	cmp	w8, w0
	csinc	w8, w0, w8, ge
	b	LBB0_13
LBB0_45:
	str	wzr, [x23, #8]
	b	LBB0_40
LBB0_46:
	str	w0, [x23, #8]
	b	LBB0_40
LBB0_47:
Lloh72:
	adrp	x10, _WINDOW_LB_PGUP@GOTPAGE
Lloh73:
	ldr	x10, [x10, _WINDOW_LB_PGUP@GOTPAGEOFF]
Lloh74:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_51
; %bb.48:
Lloh75:
	adrp	x10, _WINDOW_LB_PGDN@GOTPAGE
Lloh76:
	ldr	x10, [x10, _WINDOW_LB_PGDN@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_53
LBB0_49:
	ldr	w9, [x23, #8]
	add	w8, w9, w8
	cmp	w8, w0
	csel	w8, w8, w0, lt
	b	LBB0_13
LBB0_50:
	ldr	w9, [x23, #16]
	cbz	w9, LBB0_52
LBB0_51:
	ldr	w9, [x23, #8]
	sub	w8, w9, w8
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	b	LBB0_13
LBB0_52:
	ldp	w9, w11, [x23, #4]
	sub	w9, w9, w8
	cmp	w9, #0
	csel	w1, w9, wzr, gt
	b	LBB0_35
LBB0_53:
Lloh78:
	adrp	x8, _WINDOW_LB_THUMB@GOTPAGE
Lloh79:
	ldr	x8, [x8, _WINDOW_LB_THUMB@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_40
; %bb.54:
	ldr	x8, [x24]
	ldr	x9, [x8, #8]
Lloh81:
	adrp	x20, _lastListBoxClickTime@GOTPAGE
Lloh82:
	ldr	x20, [x20, _lastListBoxClickTime@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ge	LBB0_57
; %bb.55:
	ldr	x1, [x23, #24]
	cbz	x1, LBB0_57
; %bb.56:
	mov	x0, x19
	bl	_Item_RunScript
	ldr	x8, [x24]
	ldr	x9, [x8, #8]
LBB0_57:
Lloh83:
	adrp	x10, _DOUBLE_CLICK_DELAY@GOTPAGE
Lloh84:
	ldr	x10, [x10, _DOUBLE_CLICK_DELAY@GOTPAGEOFF]
Lloh85:
	ldr	x10, [x10]
	add	x9, x10, x9
	str	x9, [x20]
	ldr	w9, [x19]
	ldr	w1, [x23, #4]
	cmp	w9, w1
	b.eq	LBB0_40
; %bb.58:
	str	w1, [x19]
	b	LBB0_39
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_WINDOW_HORIZONTAL,4,2          ; @WINDOW_HORIZONTAL
	.comm	_K_LEFTARROW,4,2                ; @K_LEFTARROW
	.comm	_K_KP_LEFTARROW,4,2             ; @K_KP_LEFTARROW
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_K_RIGHTARROW,4,2               ; @K_RIGHTARROW
	.comm	_K_KP_RIGHTARROW,4,2            ; @K_KP_RIGHTARROW
	.comm	_K_UPARROW,4,2                  ; @K_UPARROW
	.comm	_K_KP_UPARROW,4,2               ; @K_KP_UPARROW
	.comm	_K_DOWNARROW,4,2                ; @K_DOWNARROW
	.comm	_K_KP_DOWNARROW,4,2             ; @K_KP_DOWNARROW
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_WINDOW_LB_LEFTARROW,4,2        ; @WINDOW_LB_LEFTARROW
	.comm	_WINDOW_LB_RIGHTARROW,4,2       ; @WINDOW_LB_RIGHTARROW
	.comm	_WINDOW_LB_PGUP,4,2             ; @WINDOW_LB_PGUP
	.comm	_WINDOW_LB_PGDN,4,2             ; @WINDOW_LB_PGDN
	.comm	_WINDOW_LB_THUMB,4,2            ; @WINDOW_LB_THUMB
	.comm	_lastListBoxClickTime,8,3       ; @lastListBoxClickTime
	.comm	_DOUBLE_CLICK_DELAY,8,3         ; @DOUBLE_CLICK_DELAY
	.comm	_K_HOME,4,2                     ; @K_HOME
	.comm	_K_KP_HOME,4,2                  ; @K_KP_HOME
	.comm	_K_END,4,2                      ; @K_END
	.comm	_K_KP_END,4,2                   ; @K_KP_END
	.comm	_K_PGUP,4,2                     ; @K_PGUP
	.comm	_K_KP_PGUP,4,2                  ; @K_KP_PGUP
	.comm	_K_PGDN,4,2                     ; @K_PGDN
	.comm	_K_KP_PGDN,4,2                  ; @K_KP_PGDN
	.comm	_qfalse,8,3                     ; @qfalse
.subsections_via_symbols
