	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_key_name                     ## -- Begin function v_key_name
	.p2align	4, 0x90
_v_key_name:                            ## @v_key_name
	.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, %rbx
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, (%r15)
	jne	LBB0_3
## %bb.2:
	addq	$8, %r15
	movq	%r15, %r12
	jmp	LBB0_17
LBB0_3:
	movq	%rbx, (%r15)
	leaq	8(%r15), %r12
	movq	8(%r15), %rax
	movb	%bl, (%rax)
	movq	8(%r15), %rax
	movsbl	(%rax), %r14d
	movb	$0, 1(%rax)
	movq	_O_PRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_STR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_strstr
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_16
LBB0_5:
	movq	_O_NOPRINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_STR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_CAN_PRINT
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_16
LBB0_8:
	movl	%r14d, %edi
	callq	_iscntrl
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leal	-127(%r14), %eax
	cmpb	$-96, %al
	ja	LBB0_11
## %bb.10:
	leal	64(%r14), %eax
	cmpb	$127, %r14b
	movq	(%r12), %rcx
	movb	$94, (%rcx)
	movzbl	%al, %ecx
	movl	$63, %eax
	cmovnel	%ecx, %eax
	movl	$2, %ecx
	movl	$1, %edx
	jmp	LBB0_15
LBB0_11:
	movq	_O_OCTAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_O_ISSET
	movq	8(%r15), %rcx
	movb	$92, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	shrl	$6, %eax
	andl	$3, %eax
	leaq	_v_key_name.octdigit(%rip), %rcx
	movb	(%rax,%rcx), %al
	movq	(%r12), %rdx
	movb	%al, 1(%rdx)
	movl	%r14d, %eax
	shrl	$3, %eax
	andl	$7, %eax
	movb	(%rax,%rcx), %al
	movq	(%r12), %rdx
	movb	%al, 2(%rdx)
	andl	$7, %r14d
	jmp	LBB0_14
LBB0_13:
	movq	(%r12), %rax
	movb	$120, 1(%rax)
	movl	%r14d, %eax
	shrl	$4, %eax
	andl	$15, %eax
	leaq	_v_key_name.hexdigit(%rip), %rcx
	movb	(%rax,%rcx), %al
	movq	(%r12), %rdx
	movb	%al, 2(%rdx)
	andl	$15, %r14d
LBB0_14:
	movb	(%r14,%rcx), %al
	movl	$4, %ecx
	movl	$3, %edx
LBB0_15:
	movq	(%r12), %rsi
	movb	%al, (%rsi,%rdx)
LBB0_16:
	movq	8(%r15), %rax
	movq	%rcx, 16(%r15)
	movb	$0, (%rax,%rcx)
LBB0_17:
	movq	(%r12), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @v_key_name.hexdigit
_v_key_name.hexdigit:
	.asciz	"0123456789abcdef"

_v_key_name.octdigit:                   ## @v_key_name.octdigit
	.asciz	"01234567"

	.comm	_O_PRINT,4,2                    ## @O_PRINT
	.comm	_O_NOPRINT,4,2                  ## @O_NOPRINT
	.comm	_O_OCTAL,4,2                    ## @O_OCTAL
	.comm	_IC_IE_TO_UTF16,8,3             ## @IC_IE_TO_UTF16
	.comm	_MB_CUR_MAX,8,3                 ## @MB_CUR_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v_key_name                     ; -- Begin function v_key_name
	.p2align	2
_v_key_name:                            ; @v_key_name
	.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	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	add	x22, x19, #8
	b	LBB0_18
LBB0_3:
	str	x21, [x19]
	mov	x22, x19
	ldr	x8, [x22, #8]!
	strb	w21, [x8]
	ldr	x8, [x22]
	ldrsb	w20, [x8]
	strb	wzr, [x8, #1]
Lloh0:
	adrp	x8, _O_PRINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_PRINT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_STR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [x22]
	bl	_strstr
	cbnz	x0, LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _O_NOPRINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_NOPRINT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_STR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x1, [x22]
	bl	_strstr
	cbnz	x0, LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_CAN_PRINT
	cbz	x0, LBB0_9
LBB0_8:
	mov	w8, #1
	b	LBB0_17
LBB0_9:
	mov	x0, x20
	bl	_iscntrl
	cbz	x0, LBB0_12
; %bb.10:
	sub	w8, w20, #127
	and	w8, w8, #0xff
	cmp	w8, #160
	b.hi	LBB0_12
; %bb.11:
	ldr	x8, [x22]
	mov	w9, #94
	add	w10, w20, #64
	mov	w11, #63
	strb	w9, [x8]
	cmp	w20, #127
	csel	w9, w11, w10, eq
	mov	w8, #2
	mov	w10, #1
	b	LBB0_16
LBB0_12:
Lloh6:
	adrp	x8, _O_OCTAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_OCTAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_O_ISSET
	ldr	x8, [x19, #8]
	mov	w9, #92
	strb	w9, [x8]
	cbz	x0, LBB0_14
; %bb.13:
	ubfx	x8, x20, #6, #2
Lloh9:
	adrp	x9, _v_key_name.octdigit@PAGE
Lloh10:
	add	x9, x9, _v_key_name.octdigit@PAGEOFF
	ldrb	w8, [x9, x8]
	ldr	x10, [x22]
	strb	w8, [x10, #1]
	ubfx	x8, x20, #3, #3
	ldrb	w8, [x9, x8]
	ldr	x10, [x22]
	strb	w8, [x10, #2]
	and	x8, x20, #0x7
	b	LBB0_15
LBB0_14:
	ldr	x8, [x22]
	mov	w9, #120
	strb	w9, [x8, #1]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	ubfx	x8, x20, #4, #4
Lloh11:
	adrp	x9, _v_key_name.hexdigit@PAGE
Lloh12:
	add	x9, x9, _v_key_name.hexdigit@PAGEOFF
	ldrb	w8, [x9, x8]
	ldr	x10, [x22]
	strb	w8, [x10, #2]
	and	x8, x20, #0xf
LBB0_15:
	ldrb	w9, [x9, x8]
	mov	w8, #4
	mov	w10, #3
LBB0_16:
	ldr	x11, [x22]
	strb	w9, [x11, x10]
LBB0_17:
	ldr	x9, [x19, #8]
	str	x8, [x19, #16]
	strb	wzr, [x9, x8]
LBB0_18:
	ldr	x0, [x22]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_v_key_name.hexdigit:                   ; @v_key_name.hexdigit
	.asciz	"0123456789abcdef"

_v_key_name.octdigit:                   ; @v_key_name.octdigit
	.asciz	"01234567"

	.comm	_O_PRINT,4,2                    ; @O_PRINT
	.comm	_O_NOPRINT,4,2                  ; @O_NOPRINT
	.comm	_O_OCTAL,4,2                    ; @O_OCTAL
	.comm	_IC_IE_TO_UTF16,8,3             ; @IC_IE_TO_UTF16
	.comm	_MB_CUR_MAX,8,3                 ; @MB_CUR_MAX
.subsections_via_symbols
