	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stack_init
_stack_init:                            ## @stack_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	_BASIC_STACK_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_TValue@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_luaM_newvector
	movl	%eax, %edi
	movl	%eax, (%r15)
	movl	(%r14), %eax
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ebx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_setnilvalue
	incl	%ebx
	movl	(%r15), %edi
	cmpl	(%r14), %ebx
	jl	LBB0_2
## %bb.3:
	movl	4(%r15), %eax
LBB0_4:
	addl	%edi, %eax
	movq	_EXTRA_STACK@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, 12(%r15)
	leaq	24(%r15), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r15)
	movl	$0, 48(%r15)
	movl	%edi, 24(%r15)
	leal	1(%rdi), %eax
	movl	%eax, 8(%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_setnilvalue
	movq	_LUA_MINSTACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	8(%r15), %eax
	movl	%eax, 28(%r15)
	movq	%rbx, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BASIC_STACK_SIZE,4,2           ## @BASIC_STACK_SIZE
	.comm	_TValue,4,2                     ## @TValue
	.comm	_EXTRA_STACK,4,2                ## @EXTRA_STACK
	.comm	_LUA_MINSTACK,4,2               ## @LUA_MINSTACK
	.no_dead_strip	_stack_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stack_init
_stack_init:                            ; @stack_init
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x20, _BASIC_STACK_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BASIC_STACK_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x9, _TValue@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TValue@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_luaM_newvector
	str	w0, [x19]
	ldr	w8, [x20]
	str	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w0, w21
	bl	_setnilvalue
	add	w21, w21, #1
	ldr	w8, [x20]
	ldr	w0, [x19]
	cmp	w21, w8
	b.lt	LBB0_2
; %bb.3:
	ldr	w8, [x19, #4]
LBB0_4:
Lloh5:
	adrp	x9, _EXTRA_STACK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EXTRA_STACK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w8, w8, w0
	sub	w8, w8, w9
	str	w0, [x19, #24]!
	stp	xzr, xzr, [x19, #8]
	str	wzr, [x19, #24]
	add	w9, w0, #1
	stp	w9, w8, [x19, #-16]
	bl	_setnilvalue
	ldur	w8, [x19, #-16]
Lloh8:
	adrp	x9, _LUA_MINSTACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LUA_MINSTACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	add	w8, w9, w8
	str	w8, [x19, #4]
	stur	x19, [x19, #-8]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BASIC_STACK_SIZE,4,2           ; @BASIC_STACK_SIZE
	.comm	_TValue,4,2                     ; @TValue
	.comm	_EXTRA_STACK,4,2                ; @EXTRA_STACK
	.comm	_LUA_MINSTACK,4,2               ; @LUA_MINSTACK
	.no_dead_strip	_stack_init
.subsections_via_symbols
