	.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:
	cmpl	$255, %edi
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rax
	popq	%rbp
	retq
LBB0_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_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>"

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_3
; %bb.1:
	cmp	w0, #255
	b.ls	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	ret
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ret
LBB0_4:
	sub	w8, w0, #33
Lloh4:
	adrp	x9, _Key_KeynumToString.tinystr@PAGE
Lloh5:
	add	x9, x9, _Key_KeynumToString.tinystr@PAGEOFF
	cmp	w8, #93
	b.hi	LBB0_7
; %bb.5:
	cmp	w0, #59
	b.eq	LBB0_7
; %bb.6:
	cmp	w0, #34
	b.ne	LBB0_14
LBB0_7:
Lloh6:
	adrp	x8, _keynames@GOTPAGE
Lloh7:
	ldr	x8, [x8, _keynames@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x8]
	ldr	x8, [x10]
	cbz	x8, LBB0_13
; %bb.8:
	ldr	w11, [x10, #8]
	cmp	w11, w0
	b.eq	LBB0_12
; %bb.9:
	add	x10, x10, #24
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x10, #-8]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w11, [x10], #16
	cmp	w11, w0
	b.ne	LBB0_10
LBB0_12:
	mov	x0, x8
	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]
Lloh9:
	adrp	x8, _Key_KeynumToString.tinystr@PAGE
Lloh10:
	add	x8, x8, _Key_KeynumToString.tinystr@PAGEOFF
	mov	x0, x8
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.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>"

l_.str.1:                               ; @.str.1
	.asciz	"<OUT OF RANGE>"

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