	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IntVKFromKbdInput
_IntVKFromKbdInput:                     ## @IntVKFromKbdInput
	.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
	movq	%rdi, %r14
	movq	_ENHANCED_KEY@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_1
## %bb.6:
	movl	(%r14), %esi
	andl	$127, %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINT
	movq	_KeyTableEnhanced@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_1:
	movq	_NUMLOCK_ON@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.4:
	movq	_KeyTableNumlock@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%r14), %esi
	andl	$127, %esi
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DPRINT
	jmp	LBB0_7
LBB0_2:
	movl	(%r14), %esi
	andl	$127, %esi
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DPRINT
	movq	_KeyTable@GOTPCREL(%rip), %rbx
LBB0_7:
	movq	(%rbx), %rax
	movl	(%r14), %ecx
	andl	$127, %ecx
	movl	(%rax,%rcx,4), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENHANCED_KEY,4,2               ## @ENHANCED_KEY
	.comm	_NUMLOCK_ON,4,2                 ## @NUMLOCK_ON
	.comm	_KeyTableNumlock,8,3            ## @KeyTableNumlock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Numlock, using %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not enhanced, using %x\n"

	.comm	_KeyTable,8,3                   ## @KeyTable
L_.str.2:                               ## @.str.2
	.asciz	"Enhanced, using %x\n"

	.comm	_KeyTableEnhanced,8,3           ## @KeyTableEnhanced
	.no_dead_strip	_IntVKFromKbdInput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IntVKFromKbdInput
_IntVKFromKbdInput:                     ; @IntVKFromKbdInput
	.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	x19, x0
Lloh0:
	adrp	x8, _ENHANCED_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENHANCED_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	and	w1, w8, #0x7f
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
Lloh5:
	adrp	x8, _KeyTableEnhanced@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KeyTableEnhanced@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh7:
	adrp	x8, _NUMLOCK_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NUMLOCK_ON@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _KeyTableNumlock@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KeyTableNumlock@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w9, [x19]
	and	x1, x9, #0x7f
	ldr	w8, [x8, x1, lsl #2]
	cbz	w8, LBB0_6
; %bb.4:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DPRINT
Lloh15:
	adrp	x8, _KeyTableNumlock@GOTPAGE
Lloh16:
	ldr	x8, [x8, _KeyTableNumlock@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19]
	and	w1, w8, #0x7f
LBB0_6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_DPRINT
Lloh19:
	adrp	x8, _KeyTable@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KeyTable@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	ldr	w9, [x19]
	and	x9, x9, #0x7f
	ldr	w0, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENHANCED_KEY,4,2               ; @ENHANCED_KEY
	.comm	_NUMLOCK_ON,4,2                 ; @NUMLOCK_ON
	.comm	_KeyTableNumlock,8,3            ; @KeyTableNumlock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Numlock, using %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not enhanced, using %x\n"

	.comm	_KeyTable,8,3                   ; @KeyTable
l_.str.2:                               ; @.str.2
	.asciz	"Enhanced, using %x\n"

	.comm	_KeyTableEnhanced,8,3           ; @KeyTableEnhanced
	.no_dead_strip	_IntVKFromKbdInput
.subsections_via_symbols
