	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interp_init                    ## -- Begin function interp_init
	.p2align	4, 0x90
_interp_init:                           ## @interp_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
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.2(%rip), %rdi
	callq	_LDBG
	movq	_interp_lua_realloc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_lua_newstate
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	_lua_softc@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_loadedlibs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_luaL_requiref
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	(%rbx), %rdx
	addq	$16, %rbx
	testq	%rdx, %rdx
	jne	LBB0_3
LBB0_4:
	movq	_LOADER_LUA@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_interp_include
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%r15, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lua_pop                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_lua_softc,8,3                  ## @lua_softc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"script.lang"

L_.str.1:                               ## @.str.1
	.asciz	"lua"

L_.str.2:                               ## @.str.2
	.asciz	"creating context"

	.comm	_interp_lua_realloc,4,2         ## @interp_lua_realloc
	.comm	_loadedlibs,8,3                 ## @loadedlibs
	.comm	_LOADER_LUA,8,3                 ## @LOADER_LUA
L_.str.4:                               ## @.str.4
	.asciz	"unknown"

L_.str.5:                               ## @.str.5
	.asciz	"Startup error in %s:\nLUA ERROR: %s.\n"

L_str:                                  ## @str
	.asciz	"problem initializing the Lua interpreter"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_interp_init                    ; -- Begin function interp_init
	.p2align	2
_interp_init:                           ; @interp_init
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_setenv
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LDBG
Lloh6:
	adrp	x8, _interp_lua_realloc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _interp_lua_realloc@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_lua_newstate
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh9:
	adrp	x8, _lua_softc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lua_softc@GOTPAGEOFF]
Lloh11:
	str	x0, [x8]
Lloh12:
	adrp	x8, _loadedlibs@GOTPAGE
Lloh13:
	ldr	x8, [x8, _loadedlibs@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x2, [x8]
	cbz	x2, LBB0_4
; %bb.2:
	add	x20, x8, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w1, [x20, #-8]
	mov	x0, x19
	mov	w3, #1
	bl	_luaL_requiref
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	ldr	x2, [x20], #16
	cbnz	x2, LBB0_3
LBB0_4:
Lloh15:
	adrp	x8, _LOADER_LUA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOADER_LUA@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_interp_include
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_tostring
Lloh18:
	adrp	x8, l_.str.4@PAGE
Lloh19:
	add	x8, x8, l_.str.4@PAGEOFF
	cmp	x0, #0
	csel	x8, x8, x0, eq
	stp	x20, x8, [sp]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_lua_pop
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_lua_softc,8,3                  ; @lua_softc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"script.lang"

l_.str.1:                               ; @.str.1
	.asciz	"lua"

l_.str.2:                               ; @.str.2
	.asciz	"creating context"

	.comm	_interp_lua_realloc,4,2         ; @interp_lua_realloc
	.comm	_loadedlibs,8,3                 ; @loadedlibs
	.comm	_LOADER_LUA,8,3                 ; @LOADER_LUA
l_.str.4:                               ; @.str.4
	.asciz	"unknown"

l_.str.5:                               ; @.str.5
	.asciz	"Startup error in %s:\nLUA ERROR: %s.\n"

l_str:                                  ; @str
	.asciz	"problem initializing the Lua interpreter"

.subsections_via_symbols
