	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TAB_LButtonDown
_TAB_LButtonDown:                       ## @TAB_LButtonDown
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	12(%r12), %esi
	movq	_WM_LBUTTONDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_TAB_RelayEvent
LBB0_2:
	movq	_TCS_FOCUSNEVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_4
## %bb.3:
	movl	12(%r12), %edi
	callq	_SetFocus
LBB0_4:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movl	12(%r12), %esi
	movq	_WM_LBUTTONDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_TAB_RelayEvent
LBB0_6:
	movl	%r14d, %edi
	callq	_LOWORD
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_HIWORD
	shll	$16, %eax
	movzwl	%bx, %esi
	orl	%eax, %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_TAB_InternalHitTest
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	cmpl	$-1, %r14d
	je	LBB0_24
## %bb.7:
	cmpl	%r14d, 4(%r12)
	je	LBB0_24
## %bb.8:
	movl	(%r12), %eax
	movq	_TCS_BUTTONS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.9:
	movq	_TCS_MULTISELECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.10:
	movq	_MK_CONTROL@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.11:
	movq	_TCIS_BUTTONPRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_TAB_GetItem
	xorl	%ebx, (%rax)
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_TAB_InternalGetItemRect
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:
	movl	12(%r12), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-44(%rbp), %rsi
	callq	_InvalidateRect
	jmp	LBB0_24
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpl	$0, 8(%r12)
	jle	LBB0_19
## %bb.14:
	xorl	%ebx, %ebx
	movq	_TCIS_BUTTONPRESSED@GOTPCREL(%rip), %r15
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	cmpl	8(%r12), %ebx
	jge	LBB0_19
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_TAB_GetItem
	movl	(%r15), %ecx
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	4(%r12), %ebx
	je	LBB0_18
## %bb.17:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_19:
	movq	_TCN_SELCHANGING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_TAB_SendSimpleNotify
	testq	%rax, %rax
	jne	LBB0_24
## %bb.20:
	testq	%r13, %r13
	je	LBB0_22
## %bb.21:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_TAB_DeselectAll
	jmp	LBB0_23
LBB0_22:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_TAB_SetCurSel
LBB0_23:
	movq	_TCN_SELCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_TAB_SendSimpleNotify
LBB0_24:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_LBUTTONDOWN,4,2             ## @WM_LBUTTONDOWN
	.comm	_TCS_FOCUSNEVER,4,2             ## @TCS_FOCUSNEVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"On Tab, item %d\n"

	.comm	_TCS_BUTTONS,4,2                ## @TCS_BUTTONS
	.comm	_TCS_MULTISELECT,4,2            ## @TCS_MULTISELECT
	.comm	_MK_CONTROL,4,2                 ## @MK_CONTROL
	.comm	_TCIS_BUTTONPRESSED,4,2         ## @TCIS_BUTTONPRESSED
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TCN_SELCHANGING,4,2            ## @TCN_SELCHANGING
	.comm	_TCN_SELCHANGE,4,2              ## @TCN_SELCHANGE
	.no_dead_strip	_TAB_LButtonDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TAB_LButtonDown
_TAB_LButtonDown:                       ; @TAB_LButtonDown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x22, _WM_LBUTTONDOWN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM_LBUTTONDOWN@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #12]
	ldr	w2, [x22]
	mov	x3, x21
	mov	x4, x20
	bl	_TAB_RelayEvent
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _TCS_FOCUSNEVER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TCS_FOCUSNEVER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_SetFocus
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x19, #12]
	ldr	w2, [x22]
	mov	x3, x21
	mov	x4, x20
	bl	_TAB_RelayEvent
LBB0_6:
	mov	x0, x20
	bl	_LOWORD
	mov	x22, x0
	mov	x0, x20
	bl	_HIWORD
	lsl	w1, w0, #16
	bfxil	x1, x22, #0, #16
	add	x2, sp, #12
	mov	x0, x19
	bl	_TAB_InternalHitTest
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	cmn	w20, #1
	b.eq	LBB0_24
; %bb.7:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.eq	LBB0_24
; %bb.8:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _TCS_BUTTONS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TCS_BUTTONS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
Lloh10:
	adrp	x9, _TCS_MULTISELECT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TCS_MULTISELECT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
Lloh13:
	adrp	x8, _MK_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MK_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.11:
Lloh16:
	adrp	x8, _TCIS_BUTTONPRESSED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TCIS_BUTTONPRESSED@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_TAB_GetItem
	ldr	w8, [x0]
	eor	w8, w8, w21
	str	w8, [x0]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_TAB_InternalGetItemRect
	cbz	x0, LBB0_24
; %bb.12:
	ldr	w0, [x19, #12]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
	add	x1, sp, #8
	bl	_InvalidateRect
	b	LBB0_24
LBB0_13:
Lloh22:
	adrp	x22, _FALSE@GOTPAGE
Lloh23:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	x23, [x22]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.14:
	mov	w21, #0
Lloh24:
	adrp	x24, _TCIS_BUTTONPRESSED@GOTPAGE
Lloh25:
	ldr	x24, [x24, _TCIS_BUTTONPRESSED@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.ge	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_TAB_GetItem
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.eq	LBB0_15
; %bb.18:
Lloh26:
	adrp	x8, _TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh28:
	ldr	x23, [x8]
LBB0_19:
Lloh29:
	adrp	x8, _TCN_SELCHANGING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TCN_SELCHANGING@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAB_SendSimpleNotify
	cbnz	x0, LBB0_24
; %bb.20:
	cbz	x23, LBB0_22
; %bb.21:
	ldr	x1, [x22]
	mov	x0, x19
	bl	_TAB_DeselectAll
	b	LBB0_23
LBB0_22:
	mov	x0, x19
	mov	x1, x20
	bl	_TAB_SetCurSel
LBB0_23:
Lloh32:
	adrp	x8, _TCN_SELCHANGE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TCN_SELCHANGE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAB_SendSimpleNotify
LBB0_24:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_LBUTTONDOWN,4,2             ; @WM_LBUTTONDOWN
	.comm	_TCS_FOCUSNEVER,4,2             ; @TCS_FOCUSNEVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"On Tab, item %d\n"

	.comm	_TCS_BUTTONS,4,2                ; @TCS_BUTTONS
	.comm	_TCS_MULTISELECT,4,2            ; @TCS_MULTISELECT
	.comm	_MK_CONTROL,4,2                 ; @MK_CONTROL
	.comm	_TCIS_BUTTONPRESSED,4,2         ; @TCIS_BUTTONPRESSED
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TCN_SELCHANGING,4,2            ; @TCN_SELCHANGING
	.comm	_TCN_SELCHANGE,4,2              ; @TCN_SELCHANGE
	.no_dead_strip	_TAB_LButtonDown
.subsections_via_symbols
