	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_tolstring
_lua_tolstring:                         ## @lua_tolstring
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_index2adr
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ttisstring
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	testq	%r14, %r14
	je	LBB0_8
LBB0_7:
	movl	%ebx, %edi
	callq	_tsvalue
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svalue                         ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_luaV_tostring
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	%r12, %rdi
	callq	_luaC_checkGC
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_index2adr
	movl	%eax, %ebx
	testq	%r14, %r14
	jne	LBB0_7
	jmp	LBB0_8
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	$0, (%r14)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lua_tolstring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_tolstring
_lua_tolstring:                         ; @lua_tolstring
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_index2adr
	mov	x21, x0
	bl	_ttisstring
	cbz	w0, LBB0_4
; %bb.1:
	cbz	x19, LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_tsvalue
	ldr	x8, [x0]
	str	x8, [x19]
LBB0_3:
	mov	x0, x21
	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
	b	_svalue
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	bl	_luaV_tostring
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_luaC_checkGC
	mov	x0, x22
	mov	x1, x20
	bl	_index2adr
	mov	x21, x0
	cbnz	x19, LBB0_2
	b	LBB0_3
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	str	xzr, [x19]
LBB0_8:
	mov	x0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lua_tolstring
.subsections_via_symbols
