	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Key_StringToKeynum             ## -- Begin function Key_StringToKeynum
	.p2align	4, 0x90
_Key_StringToKeynum:                    ## @Key_StringToKeynum
	.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
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r15
	movsbl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.2:
	movb	1(%r15), %cl
	testb	%cl, %cl
	je	LBB0_3
## %bb.4:
	cmpb	$48, %al
	jne	LBB0_14
## %bb.5:
	cmpb	$120, %cl
	jne	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jne	LBB0_14
## %bb.7:
	movsbl	2(%r15), %r14d
	leal	-48(%r14), %eax
	cmpb	$9, %al
	ja	LBB0_9
## %bb.8:
	addl	$-48, %r14d
	jmp	LBB0_10
LBB0_14:
	movq	_keynames@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	24(%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_16
	jmp	LBB0_18
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_17:
	movl	(%rbx), %r14d
	jmp	LBB0_18
LBB0_9:
	leal	-97(%r14), %eax
	addl	$-87, %r14d
	xorl	%ecx, %ecx
	cmpb	$6, %al
	cmovbl	%r14d, %ecx
	movl	%ecx, %r14d
LBB0_10:
	movsbl	3(%r15), %eax
	leal	-48(%rax), %ecx
	cmpb	$9, %cl
	ja	LBB0_12
## %bb.11:
	addl	$-48, %eax
	jmp	LBB0_13
LBB0_12:
	leal	-97(%rax), %ecx
	addl	$-87, %eax
	xorl	%edx, %edx
	cmpb	$6, %cl
	cmovbl	%eax, %edx
	movl	%edx, %eax
LBB0_13:
	shll	$4, %r14d
	addl	%eax, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_StringToKeynum             ; -- Begin function Key_StringToKeynum
	.p2align	2
_Key_StringToKeynum:                    ; @Key_StringToKeynum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldrsb	w0, [x0]
	cbz	w0, LBB0_10
; %bb.2:
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_11
; %bb.3:
	cmp	w0, #48
	b.ne	LBB0_7
; %bb.4:
	cmp	w8, #120
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_strlen
	cmp	w0, #4
	b.ne	LBB0_7
; %bb.6:
	ldrsb	w8, [x19, #2]
	sub	w9, w8, #48
	sub	w10, w8, #97
	sub	w8, w8, #87
	cmp	w10, #6
	csel	w8, w8, wzr, lo
	cmp	w9, #9
	csel	w8, w8, w9, hi
	ldrsb	w9, [x19, #3]
	sub	w10, w9, #48
	sub	w11, w9, #97
	sub	w9, w9, #87
	cmp	w11, #6
	csel	w9, w9, wzr, lo
	cmp	w10, #9
	csel	w9, w9, w10, hi
	add	w0, w9, w8, lsl #4
	b	LBB0_11
LBB0_7:
Lloh0:
	adrp	x8, _keynames@GOTPAGE
Lloh1:
	ldr	x8, [x8, _keynames@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x20, #24]
	add	x20, x20, #16
	cbnz	x1, LBB0_8
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w0, [x20]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_keynames,8,3                   ; @keynames
.subsections_via_symbols
