	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mainfunc
_mainfunc:                              ## @mainfunc
	.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, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdx
	callq	_open_func
	movq	(%r14), %rax
	movl	$1, (%rax)
	movq	_VLOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %r15
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_init_exp
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_newupvalue
	movq	%rbx, %rdi
	callq	_luaX_next
	movq	%rbx, %rdi
	callq	_statlist
	movq	_TK_EOS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_check
	movq	%rbx, %rdi
	callq	_close_func
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLOCAL,4,2                     ## @VLOCAL
	.comm	_TK_EOS,4,2                     ## @TK_EOS
	.no_dead_strip	_mainfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mainfunc
_mainfunc:                              ; @mainfunc
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #12
	bl	_open_func
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
Lloh0:
	adrp	x8, _VLOCAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_init_exp
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_newupvalue
	mov	x0, x20
	bl	_luaX_next
	mov	x0, x20
	bl	_statlist
Lloh3:
	adrp	x8, _TK_EOS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TK_EOS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_check
	mov	x0, x20
	bl	_close_func
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VLOCAL,4,2                     ; @VLOCAL
	.comm	_TK_EOS,4,2                     ; @TK_EOS
	.no_dead_strip	_mainfunc
.subsections_via_symbols
