	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnTabChange
_OnTabChange:                           ## @OnTabChange
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%esi, %esi
	callq	_GetWindowLongPtrW
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	shlq	$4, %rax
	movq	8(%rcx,%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	_SW_HIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
LBB0_3:
	movl	16(%r14), %edi
	movq	_TCM_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	_TAB_NUMTABS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.4:
	movq	8(%r14), %rdx
	addq	$8, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, -8(%rdx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	addq	$16, %rdx
	cmpq	%rsi, %rcx
	jne	LBB0_5
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	jmp	LBB0_10
LBB0_8:
	movq	%rsi, (%r14)
	movq	(%rdx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_SW_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p\n"

	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_TCM_GETCURSEL,4,2              ## @TCM_GETCURSEL
	.comm	_TAB_NUMTABS,4,2                ## @TAB_NUMTABS
L_.str.1:                               ## @.str.1
	.asciz	"Tab ID %d does not correspond to a valid index in the tab list.\n"

	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
	.no_dead_strip	_OnTabChange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnTabChange
_OnTabChange:                           ; @OnTabChange
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	w1, #0
	bl	_GetWindowLongPtrW
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	cbz	x19, LBB0_10
; %bb.1:
	ldp	x9, x8, [x19]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_3:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _TCM_GETCURSEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCM_GETCURSEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	mov	x1, x0
Lloh8:
	adrp	x8, _TAB_NUMTABS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TAB_NUMTABS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x9, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	cmp	w11, w1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FIXME
	b	LBB0_10
LBB0_8:
	str	x9, [x19]
	ldr	x0, [x10]
	cbz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _SW_SHOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SW_SHOW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p\n"

	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_TCM_GETCURSEL,4,2              ; @TCM_GETCURSEL
	.comm	_TAB_NUMTABS,4,2                ; @TAB_NUMTABS
l_.str.1:                               ; @.str.1
	.asciz	"Tab ID %d does not correspond to a valid index in the tab list.\n"

	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
	.no_dead_strip	_OnTabChange
.subsections_via_symbols
