	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TAB_KeyDown
_TAB_KeyDown:                           ## @TAB_KeyDown
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	movl	%edi, -36(%rbp)
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movl	%eax, -44(%rbp)
	movq	_TCN_KEYDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movl	%ebx, -48(%rbp)
	movl	%r15d, -32(%rbp)
	movl	16(%r14), %edi
	movq	_WM_NOTIFY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-48(%rbp), %rcx
	movl	%eax, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_8
## %bb.2:
	movq	(%r14), %rax
	leaq	-1(%rax), %rsi
	testq	%rsi, %rsi
	jns	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movq	(%r14), %rax
	leaq	1(%rax), %rsi
	testq	%rsi, %rsi
	js	LBB0_8
LBB0_5:
	cmpq	8(%r14), %rsi
	jge	LBB0_8
## %bb.6:
	cmpq	%rsi, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_TAB_SetCurFocus
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_TCN_KEYDOWN,4,2                ## @TCN_KEYDOWN
	.comm	_WM_NOTIFY,4,2                  ## @WM_NOTIFY
	.no_dead_strip	_TAB_KeyDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TAB_KeyDown
_TAB_KeyDown:                           ; @TAB_KeyDown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #20]
	str	w0, [sp, #20]
Lloh0:
	adrp	x8, _GWLP_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWLP_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
	mov	x2, x0
Lloh3:
	adrp	x8, _TCN_KEYDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCN_KEYDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w20, w0, [sp, #8]
	str	w8, [sp, #16]
	str	w21, [sp, #24]
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, _WM_NOTIFY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM_NOTIFY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #8
	bl	_SendMessageW
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x19]
	sub	x1, x8, #1
	tbz	x1, #63, LBB0_4
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19]
	add	x1, x8, #1
	tbnz	x1, #63, LBB0_7
LBB0_4:
	ldr	x9, [x19, #8]
	cmp	x1, x9
	b.ge	LBB0_7
; %bb.5:
	cmp	x8, x1
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_TAB_SetCurFocus
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_TCN_KEYDOWN,4,2                ; @TCN_KEYDOWN
	.comm	_WM_NOTIFY,4,2                  ; @WM_NOTIFY
	.no_dead_strip	_TAB_KeyDown
.subsections_via_symbols
