	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stackerror
_stackerror:                            ## @stackerror
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movq	_LUAI_MAXCCALLS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_luaG_runerror                  ## TAILCALL
LBB0_1:
	movl	%ecx, %edx
	sarl	$3, %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.2:
	popq	%rbp
	retq
LBB0_4:
	movq	_LUA_ERRERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_luaD_throw                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LUAI_MAXCCALLS,4,2             ## @LUAI_MAXCCALLS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"C stack overflow"

	.comm	_LUA_ERRERR,4,2                 ## @LUA_ERRERR
	.no_dead_strip	_stackerror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stackerror
_stackerror:                            ; @stackerror
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _LUAI_MAXCCALLS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LUAI_MAXCCALLS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	_luaG_runerror
LBB0_2:
	add	w9, w9, w9, asr #3
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
	ret
LBB0_4:
Lloh5:
	adrp	x8, _LUA_ERRERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LUA_ERRERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	b	_luaD_throw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LUAI_MAXCCALLS,4,2             ; @LUAI_MAXCCALLS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"C stack overflow"

	.comm	_LUA_ERRERR,4,2                 ; @LUA_ERRERR
	.no_dead_strip	_stackerror
.subsections_via_symbols
