	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LISTBOX_HandleLButtonDown
_LISTBOX_HandleLButtonDown:             ## @LISTBOX_HandleLButtonDown
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_LISTBOX_GetItemFromPoint
	movl	%eax, %r12d
	leaq	16(%rbx), %r13
	movq	16(%rbx), %rsi
	movl	52(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_TRACE
	cmpl	$0, 48(%rbx)
	movq	40(%rbx), %rax
	je	LBB0_1
## %bb.2:
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	cmpl	$-1, %r12d
	jne	LBB0_9
	jmp	LBB0_24
LBB0_1:
	testq	%rax, %rax
	jne	LBB0_24
LBB0_3:
	movq	24(%rbx), %rax
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.5:
	movq	%rax, %rcx
LBB0_6:
	movq	(%rcx), %rdi
LBB0_7:
	callq	_SetFocus
	cmpl	$-1, %r12d
	je	LBB0_24
LBB0_9:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rbx)
	jne	LBB0_12
## %bb.10:
	movq	_LBS_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_12
## %bb.11:
	movl	12(%rbx), %r13d
	movq	_WM_LBTRACKPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_MAKELPARAM
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_SendMessageW
LBB0_12:
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rdi
	callq	_SetCapture
	movq	_LBS_EXTENDEDSEL@GOTPCREL(%rip), %rcx
	movq	_LBS_MULTIPLESEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%eax, (%rbx)
	je	LBB0_19
## %bb.13:
	movq	_MK_SHIFT@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, (%rax)
	jne	LBB0_15
## %bb.14:
	movl	%r12d, 8(%rbx)
LBB0_15:
	movq	_MK_CONTROL@GOTPCREL(%rip), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%esi, (%rax)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	je	LBB0_17
## %bb.16:
	callq	_LISTBOX_SetCaretIndex
	movq	32(%rbx), %rax
	movslq	%r12d, %rcx
	xorl	%edx, %edx
	cmpl	$0, (%rax,%rcx,4)
	sete	%dl
	movl	(%rbx), %eax
	jmp	LBB0_20
LBB0_19:
	movl	%r12d, 8(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_LISTBOX_MoveCaret
	movl	(%r13), %edx
	movl	(%rbx), %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_17:
	callq	_LISTBOX_MoveCaret
	movl	(%rbx), %eax
	movq	32(%rbx), %rcx
	movslq	%r12d, %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	_LBS_EXTENDEDSEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_20
## %bb.18:
	xorl	%ecx, %ecx
	testl	%edx, %edx
	sete	%cl
	movl	%ecx, %edx
LBB0_20:
	movq	_LBS_NOTIFY@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	andl	(%rsi), %eax
	setne	%cl
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_LISTBOX_SetSelection
	cmpq	$0, 24(%rbx)
	je	LBB0_21
LBB0_24:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	(%r13), %rdi
	movq	_GWL_EXSTYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_WS_EX_DRAGDETECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.22:
	movq	(%r13), %rdi
	shlq	$32, %r14
	movl	%r15d, %esi
	orq	%r14, %rsi
	callq	_DragDetect
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	12(%rbx), %edi
	movq	_WM_BEGINDRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%p]: lbuttondown %d,%d item %d, focus item %d\n"

	.comm	_LBS_NOTIFY,4,2                 ## @LBS_NOTIFY
	.comm	_WM_LBTRACKPOINT,4,2            ## @WM_LBTRACKPOINT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_LBS_EXTENDEDSEL,4,2            ## @LBS_EXTENDEDSEL
	.comm	_LBS_MULTIPLESEL,4,2            ## @LBS_MULTIPLESEL
	.comm	_MK_SHIFT,4,2                   ## @MK_SHIFT
	.comm	_MK_CONTROL,4,2                 ## @MK_CONTROL
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GWL_EXSTYLE,4,2                ## @GWL_EXSTYLE
	.comm	_WS_EX_DRAGDETECT,4,2           ## @WS_EX_DRAGDETECT
	.comm	_WM_BEGINDRAG,4,2               ## @WM_BEGINDRAG
	.no_dead_strip	_LISTBOX_HandleLButtonDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LISTBOX_HandleLButtonDown
_LISTBOX_HandleLButtonDown:             ; @LISTBOX_HandleLButtonDown
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	mov	x1, x2
	mov	x2, x3
	bl	_LISTBOX_GetItemFromPoint
	mov	x22, x0
	mov	x26, x19
	ldr	x1, [x26, #16]!
	ldr	w5, [x26, #36]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_TRACE
	ldr	w9, [x26, #32]
	ldr	x8, [x26, #24]
	cbz	w9, LBB0_3
; %bb.1:
	cbz	x8, LBB0_4
; %bb.2:
	cmn	w22, #1
	b.ne	LBB0_9
	b	LBB0_20
LBB0_3:
	cbnz	x8, LBB0_20
LBB0_4:
	ldr	x8, [x19, #24]
	mov	x9, x26
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x9, x8
LBB0_7:
	ldr	x0, [x9]
LBB0_8:
	bl	_SetFocus
	cmn	w22, #1
	b.eq	LBB0_20
LBB0_9:
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x27, _LBS_NOTIFY@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LBS_NOTIFY@GOTPAGEOFF]
	cbnz	x8, LBB0_12
; %bb.10:
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w24, [x19, #12]
Lloh4:
	adrp	x8, _WM_LBTRACKPOINT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM_LBTRACKPOINT@GOTPAGEOFF]
Lloh6:
	ldr	w25, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_MAKELPARAM
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x22
	bl	_SendMessageW
LBB0_12:
Lloh7:
	adrp	x25, _TRUE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x19, #4]
	ldr	x0, [x19, #16]
	bl	_SetCapture
	ldr	w8, [x19]
Lloh9:
	adrp	x24, _LBS_EXTENDEDSEL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _LBS_EXTENDEDSEL@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh11:
	adrp	x10, _LBS_MULTIPLESEL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LBS_MULTIPLESEL@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
Lloh14:
	adrp	x8, _MK_SHIFT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MK_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_15
; %bb.14:
	str	w22, [x19, #8]
LBB0_15:
Lloh17:
	adrp	x8, _MK_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MK_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _FALSE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x1, x22
	tst	w8, w23
	b.eq	LBB0_24
; %bb.16:
	bl	_LISTBOX_SetCaretIndex
	ldr	x8, [x19, #32]
	ldr	w8, [x8, w22, sxtw #2]
	cmp	w8, #0
	cset	w2, eq
	b	LBB0_18
LBB0_17:
	str	w22, [x19, #8]
Lloh23:
	adrp	x8, _FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_LISTBOX_MoveCaret
	ldr	w2, [x25]
LBB0_18:
	ldr	w8, [x19]
LBB0_19:
	ldr	w9, [x27]
	tst	w9, w8
	cset	w3, ne
	mov	x0, x19
	mov	x1, x22
	bl	_LISTBOX_SetSelection
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_21
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	x0, [x26]
Lloh26:
	adrp	x8, _GWL_EXSTYLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GWL_EXSTYLE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_GetWindowLongW
Lloh29:
	adrp	x8, _WS_EX_DRAGDETECT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WS_EX_DRAGDETECT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_20
; %bb.22:
	ldr	x0, [x26]
	mov	w1, w21
	bfi	x1, x20, #32, #32
	bl	_DragDetect
	cbz	x0, LBB0_20
; %bb.23:
	ldr	w0, [x19, #12]
Lloh32:
	adrp	x8, _WM_BEGINDRAG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _WM_BEGINDRAG@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	b	LBB0_20
LBB0_24:
	bl	_LISTBOX_MoveCaret
	ldr	w8, [x19]
	ldr	w9, [x24]
	ldr	x10, [x19, #32]
	ldr	w2, [x10, w22, sxtw #2]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.25:
	cmp	w2, #0
	cset	w2, eq
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%p]: lbuttondown %d,%d item %d, focus item %d\n"

	.comm	_LBS_NOTIFY,4,2                 ; @LBS_NOTIFY
	.comm	_WM_LBTRACKPOINT,4,2            ; @WM_LBTRACKPOINT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_LBS_EXTENDEDSEL,4,2            ; @LBS_EXTENDEDSEL
	.comm	_LBS_MULTIPLESEL,4,2            ; @LBS_MULTIPLESEL
	.comm	_MK_SHIFT,4,2                   ; @MK_SHIFT
	.comm	_MK_CONTROL,4,2                 ; @MK_CONTROL
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GWL_EXSTYLE,4,2                ; @GWL_EXSTYLE
	.comm	_WS_EX_DRAGDETECT,4,2           ; @WS_EX_DRAGDETECT
	.comm	_WM_BEGINDRAG,4,2               ; @WM_BEGINDRAG
	.no_dead_strip	_LISTBOX_HandleLButtonDown
.subsections_via_symbols
