	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_doargs
	movslq	%eax, %r15
	subl	%eax, %ebx
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_usage
LBB0_2:
	leaq	(%r14,%r15,8), %r15
	xorl	%eax, %eax
	callq	_lua_open
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_4:
	movl	%ebx, -40(%rbp)
	movq	%r15, -32(%rbp)
	movq	_pmain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lua_cpcall
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movq	%rax, %rdi
	callq	_fatal
LBB0_6:
	movq	%r14, %rdi
	callq	_lua_close
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no input files given"

L_.str.1:                               ## @.str.1
	.asciz	"not enough memory for state"

	.comm	_pmain,4,2                      ## @pmain
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	_doargs
	sub	w20, w20, w0
	add	x21, x19, w0, sxtw #3
	cmp	w20, #0
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_usage
LBB0_2:
	bl	_lua_open
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_4:
	str	w20, [sp]
	str	x21, [sp, #8]
Lloh4:
	adrp	x8, _pmain@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pmain@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_lua_cpcall
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_tostring
	bl	_fatal
LBB0_6:
	mov	x0, x19
	bl	_lua_close
Lloh7:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no input files given"

l_.str.1:                               ; @.str.1
	.asciz	"not enough memory for state"

	.comm	_pmain,4,2                      ; @pmain
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
