	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sparse_keymap_locate
_sparse_keymap_locate:                  ## @sparse_keymap_locate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_INPUT_KEYMAP_BY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.5:
	movl	4(%rsi), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sparse_keymap_entry_by_index   ## TAILCALL
LBB0_1:
	leaq	-12(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_input_scancode_to_scalar
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movl	-12(%rbp), %esi
	movq	%rbx, %rdi
	callq	_sparse_keymap_entry_from_scancode
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_KEYMAP_BY_INDEX,4,2      ## @INPUT_KEYMAP_BY_INDEX
	.no_dead_strip	_sparse_keymap_locate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sparse_keymap_locate
_sparse_keymap_locate:                  ; @sparse_keymap_locate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _INPUT_KEYMAP_BY_INDEX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INPUT_KEYMAP_BY_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x8, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_sparse_keymap_entry_by_index
LBB0_2:
	add	x1, sp, #12
	mov	x0, x8
	bl	_input_scancode_to_scalar
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, #0
	b	LBB0_5
LBB0_4:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_sparse_keymap_entry_from_scancode
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_KEYMAP_BY_INDEX,4,2      ; @INPUT_KEYMAP_BY_INDEX
	.no_dead_strip	_sparse_keymap_locate
.subsections_via_symbols
