	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Key_KeynumToString             ## -- Begin function Key_KeynumToString
	.p2align	4, 0x90
_Key_KeynumToString:                    ## @Key_KeynumToString
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rax
	testl	%edi, %edi
	js	LBB0_15
## %bb.3:
	movq	_MAX_KEYS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_15
## %bb.4:
	leal	-33(%rdi), %eax
	cmpl	$93, %eax
	ja	LBB0_8
## %bb.5:
	cmpl	$59, %edi
	je	LBB0_8
## %bb.6:
	cmpl	$34, %edi
	jne	LBB0_7
LBB0_8:
	movq	_keynames@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	cmpl	%edi, 8(%rcx)
	je	LBB0_15
## %bb.10:
	addq	$24, %rcx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	16(%rcx), %rdx
	cmpl	%edi, (%rcx)
	movq	%rdx, %rcx
	jne	LBB0_11
LBB0_15:
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rax
	popq	%rbp
	retq
LBB0_13:
	movl	%edi, %eax
	shrl	$4, %eax
	movl	%edi, %ecx
	andl	$15, %ecx
	movw	$30768, _Key_KeynumToString.tinystr(%rip) ## imm = 0x7830
	leal	48(%rax), %edx
	addl	$87, %eax
	cmpl	$160, %edi
	cmovll	%edx, %eax
	movb	%al, _Key_KeynumToString.tinystr+2(%rip)
	leal	87(%rcx), %eax
	leal	48(%rcx), %edi
	cmpl	$10, %ecx
	cmovael	%eax, %edi
	leaq	_Key_KeynumToString.tinystr+4(%rip), %rcx
	leaq	_Key_KeynumToString.tinystr+3(%rip), %rdx
	jmp	LBB0_14
LBB0_7:
	leaq	_Key_KeynumToString.tinystr+1(%rip), %rcx
	leaq	_Key_KeynumToString.tinystr(%rip), %rdx
LBB0_14:
	leaq	_Key_KeynumToString.tinystr(%rip), %rax
	movb	%dil, (%rdx)
	movb	$0, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_Key_KeynumToString.tinystr,5,0 ## @Key_KeynumToString.tinystr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<KEY NOT FOUND>"

	.comm	_MAX_KEYS,4,2                   ## @MAX_KEYS
L_.str.1:                               ## @.str.1
	.asciz	"<OUT OF RANGE>"

	.comm	_keynames,8,3                   ## @keynames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Key_KeynumToString             ; -- Begin function Key_KeynumToString
	.p2align	2
_Key_KeynumToString:                    ; @Key_KeynumToString
	.cfi_startproc
; %bb.0:
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	tbnz	w0, #31, LBB0_11
; %bb.2:
Lloh2:
	adrp	x9, _MAX_KEYS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_KEYS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w0
	b.le	LBB0_11
; %bb.3:
	sub	w8, w0, #33
Lloh5:
	adrp	x9, _Key_KeynumToString.tinystr@PAGE
Lloh6:
	add	x9, x9, _Key_KeynumToString.tinystr@PAGEOFF
	cmp	w8, #93
	b.hi	LBB0_6
; %bb.4:
	cmp	w0, #59
	b.eq	LBB0_6
; %bb.5:
	cmp	w0, #34
	b.ne	LBB0_14
LBB0_6:
Lloh7:
	adrp	x8, _keynames@GOTPAGE
Lloh8:
	ldr	x8, [x8, _keynames@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x8]
	ldr	x8, [x10]
	cbz	x8, LBB0_13
; %bb.7:
	ldr	w11, [x10, #8]
	cmp	w11, w0
	b.eq	LBB0_11
; %bb.8:
	add	x10, x10, #24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x10, #-8]
	cbz	x8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w11, [x10], #16
	cmp	w11, w0
	b.ne	LBB0_9
LBB0_11:
	mov	x0, x8
	ret
LBB0_12:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	ret
LBB0_13:
	and	w8, w0, #0xf
	mov	w10, #30768
	strh	w10, [x9]
	mov	w10, #48
	mov	w11, #87
	cmp	w0, #159
	csel	w11, w11, w10, gt
	add	w11, w11, w0, lsr #4
	strb	w11, [x9, #2]
	add	w11, w8, #87
	bfxil	w10, w0, #0, #4
	cmp	w8, #9
	csel	w0, w11, w10, hi
	add	x8, x9, #4
	add	x9, x9, #3
	b	LBB0_15
LBB0_14:
	add	x8, x9, #1
LBB0_15:
	strb	w0, [x9]
	strb	wzr, [x8]
Lloh12:
	adrp	x8, _Key_KeynumToString.tinystr@PAGE
Lloh13:
	add	x8, x8, _Key_KeynumToString.tinystr@PAGEOFF
	mov	x0, x8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_Key_KeynumToString.tinystr,5,0 ; @Key_KeynumToString.tinystr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<KEY NOT FOUND>"

	.comm	_MAX_KEYS,4,2                   ; @MAX_KEYS
l_.str.1:                               ; @.str.1
	.asciz	"<OUT OF RANGE>"

	.comm	_keynames,8,3                   ; @keynames
.subsections_via_symbols
