	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaX_token2str                 ## -- Begin function luaX_token2str
	.p2align	4, 0x90
_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
	movq	%rdi, %r14
	movq	_FIRST_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	jle	LBB0_1
## %bb.3:
	movl	%ebx, %edi
	callq	_cast_uchar
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_lua_assert
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_luaO_pushfstring               ## TAILCALL
LBB0_1:
	movq	_luaX_tokens@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	subl	%eax, %edx
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rax
	movq	_TK_EOS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jle	LBB0_2
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_luaO_pushfstring               ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRST_RESERVED,4,2             ## @FIRST_RESERVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%c'"

	.comm	_luaX_tokens,8,3                ## @luaX_tokens
	.comm	_TK_EOS,4,2                     ## @TK_EOS
L_.str.1:                               ## @.str.1
	.asciz	"'%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaX_token2str                 ; -- Begin function luaX_token2str
	.p2align	2
_luaX_token2str:                        ; @luaX_token2str
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FIRST_RESERVED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIRST_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cast_uchar
	cmp	w0, w19
	cset	w0, eq
	bl	_lua_assert
	ldr	w0, [x20]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _luaX_tokens@GOTPAGE
Lloh6:
	ldr	x9, [x9, _luaX_tokens@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	w8, w19, w8
	ldr	x0, [x9, w8, sxtw #3]
Lloh8:
	adrp	x8, _TK_EOS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TK_EOS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.3:
	ldr	w8, [x20]
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
LBB0_4:
	bl	_luaO_pushfstring
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRST_RESERVED,4,2             ; @FIRST_RESERVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%c'"

	.comm	_luaX_tokens,8,3                ; @luaX_tokens
	.comm	_TK_EOS,4,2                     ; @TK_EOS
l_.str.1:                               ; @.str.1
	.asciz	"'%s'"

.subsections_via_symbols
