	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_get_key_code                ## -- Begin function in_get_key_code
	.p2align	4, 0x90
_in_get_key_code:                       ## @in_get_key_code
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	testl	%edi, %edi
	jns	LBB0_2
## %bb.1:
	movq	_menu_last_used_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	callq	_get_dev
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r12
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.4:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r12), %rcx
	jmp	LBB0_6
LBB0_11:
	movl	%ebx, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_last_used_dev,4,2         ## @menu_last_used_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_in_get_key_code                ; -- Begin function in_get_key_code
	.p2align	2
_in_get_key_code:                       ; @in_get_key_code
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x8, _menu_last_used_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _menu_last_used_dev@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, lt
	bl	_get_dev
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_8
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_6
LBB0_4:
	mov	x1, x19
	bl	_strcasecmp
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x21]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21, #8]
	ldr	x0, [x9, x20, lsl #3]
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_8:
	mov	w20, #-1
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_last_used_dev,4,2         ; @menu_last_used_dev
.subsections_via_symbols
