	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmain
_pmain:                                 ## @pmain
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$1, %esi
	callq	_lua_tointeger
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_lua_touserdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_lua_checkstack
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.3:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	xorl	%r14d, %r14d
	leaq	L_.str.1(%rip), %r12
	movq	_LUA_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, %rbx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_IS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_luaL_loadfile
	cmpq	(%r15), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movq	%rax, %rdi
	callq	_fatal
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_combine
	movq	%rax, %r14
	movq	_listing@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	xorl	%esi, %esi
	cmpl	$2, %eax
	setge	%sil
	movq	%r14, %rdi
	callq	_luaU_print
LBB0_12:
	movq	_dumping@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.13:
	movq	_output@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_18
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	callq	_cannot
LBB0_18:
	movq	%r13, %rdi
	callq	_lua_lock
	movq	_writer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_stripping@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_luaU_dump
	movq	%r13, %rdi
	callq	_lua_unlock
	movq	%r15, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.4(%rip), %rdi
	callq	_cannot
LBB0_20:
	movq	%r15, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.5(%rip), %rdi
	callq	_cannot
LBB0_22:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_18
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many input files"

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

	.comm	_LUA_OK,8,3                     ## @LUA_OK
	.comm	_listing,4,2                    ## @listing
	.comm	_dumping,8,3                    ## @dumping
	.comm	_output,8,3                     ## @output
	.comm	_stdout,8,3                     ## @stdout
L_.str.2:                               ## @.str.2
	.asciz	"wb"

L_.str.3:                               ## @.str.3
	.asciz	"open"

	.comm	_writer,4,2                     ## @writer
	.comm	_stripping,4,2                  ## @stripping
L_.str.4:                               ## @.str.4
	.asciz	"write"

L_.str.5:                               ## @.str.5
	.asciz	"close"

	.no_dead_strip	_pmain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmain
_pmain:                                 ; @pmain
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w1, #1
	bl	_lua_tointeger
	mov	x20, x0
	mov	x0, x19
	mov	w1, #2
	bl	_lua_touserdata
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_lua_checkstack
	cbz	w0, LBB0_2
; %bb.1:
	cmp	w20, #1
	b.ge	LBB0_3
	b	LBB0_10
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	cmp	w20, #1
	b.lt	LBB0_10
LBB0_3:
	and	x23, x20, #0xffffffff
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x24, _LUA_OK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _LUA_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #8
	subs	x23, x23, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_IS
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_luaL_loadfile
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_tostring
	bl	_fatal
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_combine
	mov	x20, x0
Lloh6:
	adrp	x8, _listing@GOTPAGE
Lloh7:
	ldr	x8, [x8, _listing@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.11:
	cmp	w8, #1
	cset	w1, gt
	mov	x0, x20
	bl	_luaU_print
LBB0_12:
Lloh9:
	adrp	x8, _dumping@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dumping@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.13:
Lloh12:
	adrp	x8, _output@GOTPAGE
Lloh13:
	ldr	x8, [x8, _output@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	cbz	x0, LBB0_21
; %bb.14:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	mov	x21, x0
	cbnz	x21, LBB0_16
LBB0_15:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_cannot
LBB0_16:
	mov	x0, x19
	bl	_lua_lock
Lloh19:
	adrp	x8, _writer@GOTPAGE
Lloh20:
	ldr	x8, [x8, _writer@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _stripping@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stripping@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_luaU_dump
	mov	x0, x19
	bl	_lua_unlock
	mov	x0, x21
	bl	_ferror
	cbz	x0, LBB0_18
; %bb.17:
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_cannot
LBB0_18:
	mov	x0, x21
	bl	_fclose
	cbz	x0, LBB0_20
; %bb.19:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_cannot
LBB0_20:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
Lloh29:
	adrp	x8, _stdout@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh31:
	ldr	x21, [x8]
	cbnz	x21, LBB0_16
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many input files"

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

	.comm	_LUA_OK,8,3                     ; @LUA_OK
	.comm	_listing,4,2                    ; @listing
	.comm	_dumping,8,3                    ; @dumping
	.comm	_output,8,3                     ; @output
	.comm	_stdout,8,3                     ; @stdout
l_.str.2:                               ; @.str.2
	.asciz	"wb"

l_.str.3:                               ; @.str.3
	.asciz	"open"

	.comm	_writer,4,2                     ; @writer
	.comm	_stripping,4,2                  ; @stripping
l_.str.4:                               ; @.str.4
	.asciz	"write"

l_.str.5:                               ; @.str.5
	.asciz	"close"

	.no_dead_strip	_pmain
.subsections_via_symbols
