	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applespi_code_to_key
_applespi_code_to_key:                  ## @applespi_code_to_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_applespi_scancodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %edi
	movq	_fnmode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	callq	_applespi_translate_fn_key
	movl	%eax, %edi
LBB0_2:
	movq	_iso_layout@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	popq	%rbp
	jmp	_applespi_translate_iso_layout  ## TAILCALL
LBB0_3:
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_applespi_scancodes,8,3         ## @applespi_scancodes
	.comm	_fnmode,8,3                     ## @fnmode
	.comm	_iso_layout,8,3                 ## @iso_layout
	.no_dead_strip	_applespi_code_to_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applespi_code_to_key
_applespi_code_to_key:                  ; @applespi_code_to_key
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _applespi_scancodes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _applespi_scancodes@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8, x0, lsl #2]
Lloh3:
	adrp	x8, _fnmode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fnmode@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_applespi_translate_fn_key
LBB0_2:
Lloh6:
	adrp	x8, _iso_layout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iso_layout@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_applespi_translate_iso_layout
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_applespi_scancodes,8,3         ; @applespi_scancodes
	.comm	_fnmode,8,3                     ; @fnmode
	.comm	_iso_layout,8,3                 ; @iso_layout
	.no_dead_strip	_applespi_code_to_key
.subsections_via_symbols
