	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TAB_SetCurFocus
_TAB_SetCurFocus:                       ## @TAB_SetCurFocus
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_TRACE
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.3:
	cmpl	%ebx, 8(%r14)
	jle	LBB0_19
## %bb.4:
	movq	_TCS_BUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %esi
	testl	%eax, 12(%r14)
	je	LBB0_12
## %bb.5:
	cmpl	%ebx, %esi
	je	LBB0_19
## %bb.6:
	movl	%ebx, (%r14)
	cmpl	4(%r14), %esi
	je	LBB0_9
## %bb.7:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_TAB_InternalGetItemRect
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	16(%r14), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rsi
	callq	_InvalidateRect
LBB0_9:
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	callq	_TAB_InternalGetItemRect
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	16(%r14), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rsi
	callq	_InvalidateRect
LBB0_11:
	movq	_TCN_FOCUSCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TAB_SendSimpleNotify
	jmp	LBB0_19
LBB0_1:
	movl	$-1, (%r14)
	cmpl	$-1, 4(%r14)
	je	LBB0_19
## %bb.2:
	movl	$-1, 4(%r14)
	movq	_TCN_SELCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TAB_SendSimpleNotify
LBB0_18:
	movq	%r14, %rdi
	callq	_TAB_InvalidateTabArea
LBB0_19:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	cmpl	%ebx, 4(%r14)
	jne	LBB0_14
## %bb.13:
	cmpl	$-1, %esi
	jne	LBB0_19
LBB0_14:
	movl	%ebx, (%r14)
	cmpl	$-1, %esi
	je	LBB0_19
## %bb.15:
	movq	_TCN_SELCHANGING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TAB_SendSimpleNotify
	movl	%ebx, 4(%r14)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_TCN_SELCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TAB_SendSimpleNotify
LBB0_17:
	movq	%r14, %rdi
	callq	_TAB_EnsureSelectionVisible
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p %d)\n"

	.comm	_TCN_SELCHANGE,4,2              ## @TCN_SELCHANGE
	.comm	_TCS_BUTTONS,4,2                ## @TCS_BUTTONS
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TCN_FOCUSCHANGE,4,2            ## @TCN_FOCUSCHANGE
	.comm	_TCN_SELCHANGING,4,2            ## @TCN_SELCHANGING
	.no_dead_strip	_TAB_SetCurFocus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TAB_SetCurFocus
_TAB_SetCurFocus:                       ; @TAB_SetCurFocus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_TRACE
	tbnz	w20, #31, LBB0_10
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.le	LBB0_13
; %bb.2:
	ldr	w8, [x19, #12]
Lloh2:
	adrp	x9, _TCS_BUTTONS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TCS_BUTTONS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w1, [x19]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.3:
	cmp	w1, w20
	b.eq	LBB0_13
; %bb.4:
	str	w20, [x19]
	ldr	w8, [x19, #4]
	cmp	w1, w8
	b.eq	LBB0_7
; %bb.5:
	add	x2, sp, #12
	mov	x0, x19
	mov	x3, #0
	bl	_TAB_InternalGetItemRect
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_InvalidateRect
LBB0_7:
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_TAB_InternalGetItemRect
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #12
	bl	_InvalidateRect
LBB0_9:
Lloh11:
	adrp	x8, _TCN_FOCUSCHANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCN_FOCUSCHANGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAB_SendSimpleNotify
	b	LBB0_13
LBB0_10:
	mov	w8, #-1
	str	w8, [x19]
	ldr	w9, [x19, #4]
	cmn	w9, #1
	b.eq	LBB0_13
; %bb.11:
	str	w8, [x19, #4]
Lloh14:
	adrp	x8, _TCN_SELCHANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TCN_SELCHANGE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAB_SendSimpleNotify
LBB0_12:
	mov	x0, x19
	bl	_TAB_InvalidateTabArea
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
	ldr	w8, [x19, #4]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.15:
	cmn	w1, #1
	b.ne	LBB0_13
LBB0_16:
	str	w20, [x19]
	cmn	w1, #1
	b.eq	LBB0_13
; %bb.17:
Lloh17:
	adrp	x8, _TCN_SELCHANGING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TCN_SELCHANGING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAB_SendSimpleNotify
	str	w20, [x19, #4]
	cbnz	w0, LBB0_19
; %bb.18:
Lloh20:
	adrp	x8, _TCN_SELCHANGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCN_SELCHANGE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TAB_SendSimpleNotify
LBB0_19:
	mov	x0, x19
	bl	_TAB_EnsureSelectionVisible
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p %d)\n"

	.comm	_TCN_SELCHANGE,4,2              ; @TCN_SELCHANGE
	.comm	_TCS_BUTTONS,4,2                ; @TCS_BUTTONS
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TCN_FOCUSCHANGE,4,2            ; @TCN_FOCUSCHANGE
	.comm	_TCN_SELCHANGING,4,2            ; @TCN_SELCHANGING
	.no_dead_strip	_TAB_SetCurFocus
.subsections_via_symbols
