	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaX_token2str
_luaX_token2str:                        ## @luaX_token2str
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	cmpl	$256, %esi                      ## imm = 0x100
	jg	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movl	%ebx, %edi
	callq	_iscntrl
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	_luaX_tokens@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addl	$-257, %ebx                     ## imm = 0xFEFF
	movq	(%rax,%rbx,8), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_luaO_pushfstring               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"char(%d)"

L_.str.1:                               ## @.str.1
	.asciz	"%c"

	.comm	_luaX_tokens,8,3                ## @luaX_tokens
	.no_dead_strip	_luaX_token2str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaX_token2str
_luaX_token2str:                        ; @luaX_token2str
	.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
	mov	x19, x1
	cmp	w1, #256
	b.gt	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_iscntrl
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _luaX_tokens@GOTPAGE
Lloh3:
	ldr	x8, [x8, _luaX_tokens@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	w9, w19, #257
	ldr	x0, [x8, w9, uxtw #3]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_luaO_pushfstring
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"char(%d)"

l_.str.1:                               ; @.str.1
	.asciz	"%c"

	.comm	_luaX_tokens,8,3                ; @luaX_tokens
	.no_dead_strip	_luaX_token2str
.subsections_via_symbols
