	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_keymaps_translate_rk_to_str ## -- Begin function input_keymaps_translate_rk_to_str
	.p2align	4, 0x90
_input_keymaps_translate_rk_to_str:     ## @input_keymaps_translate_rk_to_str
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	xorl	%edi, %edi
	cmpq	$2, %rdx
	setae	%dil
	callq	_retro_assert
	movb	$0, (%r15)
	movq	_RETROK_a@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	ja	LBB0_2
## %bb.1:
	movq	_RETROK_z@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jb	LBB0_2
## %bb.8:
	subl	%eax, %ebx
	addb	$97, %bl
	movb	%bl, (%r15)
	movb	$0, 1(%r15)
	jmp	LBB0_9
LBB0_2:
	movq	_input_config_key_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.3:
	cmpl	%ebx, (%rax)
	je	LBB0_7
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ebx, (%rax,%rdx)
	jne	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETROK_a,4,2                   ## @RETROK_a
	.comm	_RETROK_z,4,2                   ## @RETROK_z
	.comm	_input_config_key_map,8,3       ## @input_config_key_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_input_keymaps_translate_rk_to_str ; -- Begin function input_keymaps_translate_rk_to_str
	.p2align	2
_input_keymaps_translate_rk_to_str:     ; @input_keymaps_translate_rk_to_str
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	cmp	x2, #1
	cset	w0, hi
	bl	_retro_assert
	strb	wzr, [x19]
Lloh0:
	adrp	x8, _RETROK_a@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETROK_a@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RETROK_z@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RETROK_z@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #0, ls
	b.hs	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _input_config_key_map@GOTPAGE
Lloh7:
	ldr	x8, [x8, _input_config_key_map@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_8
; %bb.2:
	ldr	w9, [x8]
	cmp	w9, w21
	b.eq	LBB0_6
; %bb.3:
	mov	x9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w9, #1
	add	x10, x8, w9, uxtw #4
	ldr	x1, [x10, #8]
	cbz	x1, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x10, x9, #4
	ldr	w10, [x8, x10]
	cmp	w10, w21
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x19
	mov	x2, 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
	b	_strlcpy
LBB0_7:
	sub	w8, w21, w8
	add	w8, w8, #97
	strb	w8, [x19]
	strb	wzr, [x19, #1]
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RETROK_a,4,2                   ; @RETROK_a
	.comm	_RETROK_z,4,2                   ; @RETROK_z
	.comm	_input_config_key_map,8,3       ; @input_config_key_map
.subsections_via_symbols
