	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_scancode_to_scalar       ## -- Begin function input_scancode_to_scalar
	.p2align	4, 0x90
_input_scancode_to_scalar:              ## @input_scancode_to_scalar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	cmpl	$4, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_3
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_4
LBB0_3:
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_scancode_to_scalar       ; -- Begin function input_scancode_to_scalar
	.p2align	2
_input_scancode_to_scalar:              ; @input_scancode_to_scalar
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x0]
	cmp	w9, #4
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #2
	b.eq	LBB0_3
; %bb.2:
	cmp	w9, #1
	b.ne	LBB0_4
LBB0_3:
	mov	w0, #0
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	str	w8, [x1]
	ret
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
