	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_tonumber_                 ## -- Begin function luaV_tonumber_
	.p2align	4, 0x90
_luaV_tonumber_:                        ## @luaV_tonumber_
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ttisinteger
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ivalue
	movl	%eax, %edi
	callq	_cast_num
LBB0_5:
	movl	%eax, (%r14)
	movl	$1, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_cvt2num
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_svalue
	leaq	-36(%rbp), %rsi
	movl	%eax, %edi
	callq	_luaO_str2num
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_vslen
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_6
## %bb.4:
	leaq	-36(%rbp), %rdi
	callq	_nvalue
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaV_tonumber_                 ; -- Begin function luaV_tonumber_
	.p2align	2
_luaV_tonumber_:                        ; @luaV_tonumber_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	bl	_ttisinteger
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_ivalue
	bl	_cast_num
LBB0_2:
	str	w0, [x19]
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x0, x20
	bl	_cvt2num
	cbz	x0, LBB0_3
; %bb.5:
	mov	x0, x20
	bl	_svalue
	add	x1, sp, #12
	bl	_luaO_str2num
	mov	x21, x0
	mov	x0, x20
	bl	_vslen
	add	x8, x0, #1
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.6:
	add	x0, sp, #12
	bl	_nvalue
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
