	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_lookup_by_scancode
_ir_lookup_by_scancode:                 ## @ir_lookup_by_scancode
	.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), %r9d
	movl	$-1, %eax
	testl	%r9d, %r9d
	jle	LBB0_8
## %bb.1:
	decl	%r9d
	movq	8(%rdi), %r8
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	movl	%edx, %edi
	cmpl	%r9d, %edi
	jg	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rdi), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	cmpl	%esi, (%r8,%rcx,4)
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	jbe	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%edx
	movl	%edx, %r9d
	cmpl	%r9d, %edi
	jle	LBB0_2
LBB0_8:
	popq	%rbp
	retq
LBB0_5:
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ir_lookup_by_scancode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_lookup_by_scancode
_ir_lookup_by_scancode:                 ; @ir_lookup_by_scancode
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	subs	w8, w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w9, #0
	ldr	x10, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w0, #1
	cmp	w9, w8
	b.gt	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w8, w9
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w0, w11, #1
	ldr	w11, [x10, w0, sxtw #2]
	cmp	w11, w1
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	b.ls	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w0, #1
	cmp	w9, w8
	b.le	LBB0_3
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ir_lookup_by_scancode
.subsections_via_symbols
