	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hidinput_locate_usage
_hidinput_locate_usage:                 ## @hidinput_locate_usage
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_INPUT_KEYMAP_BY_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.5:
	movq	_match_index@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%rsi), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hidinput_find_key              ## TAILCALL
LBB0_1:
	leaq	-20(%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:
	movq	_match_scancode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_hidinput_find_key
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INPUT_KEYMAP_BY_INDEX,4,2      ## @INPUT_KEYMAP_BY_INDEX
	.comm	_match_index,4,2                ## @match_index
	.comm	_match_scancode,4,2             ## @match_scancode
	.no_dead_strip	_hidinput_locate_usage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hidinput_locate_usage
_hidinput_locate_usage:                 ; @hidinput_locate_usage
	.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	x19, x2
	mov	x8, x1
	mov	x20, 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:
Lloh3:
	adrp	x9, _match_index@GOTPAGE
Lloh4:
	ldr	x9, [x9, _match_index@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w2, [x8, #4]
	mov	x0, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_hidinput_find_key
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:
Lloh6:
	adrp	x8, _match_scancode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _match_scancode@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x3, x19
	bl	_hidinput_find_key
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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INPUT_KEYMAP_BY_INDEX,4,2      ; @INPUT_KEYMAP_BY_INDEX
	.comm	_match_index,4,2                ; @match_index
	.comm	_match_scancode,4,2             ; @match_scancode
	.no_dead_strip	_hidinput_locate_usage
.subsections_via_symbols
