	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atkbd_compat_scancode
_atkbd_compat_scancode:                 ## @atkbd_compat_scancode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$3, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	%esi, %eax
	orl	$256, %eax                      ## imm = 0x100
	cmpl	$1, 4(%rdi)
	cmovnel	%esi, %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %eax
	andl	$127, %eax
	andl	$128, %esi
	cmpl	$1, 4(%rdi)
	leal	(%rax,%rsi,2), %ecx
	leal	128(%rax,%rsi,2), %eax
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_atkbd_compat_scancode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atkbd_compat_scancode
_atkbd_compat_scancode:                 ; @atkbd_compat_scancode
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #3
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	orr	w9, w1, #0x100
	cmp	w8, #1
	csel	w0, w9, w1, eq
	ret
LBB0_2:
	lsr	w8, w1, #7
	and	w9, w1, #0x7f
	bfi	w9, w8, #8, #1
	ldr	w8, [x0, #4]
	orr	w10, w9, #0x80
	cmp	w8, #1
	csel	w0, w10, w9, eq
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_atkbd_compat_scancode
.subsections_via_symbols
