	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_script
_handle_script:                         ## @handle_script
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_getargs
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_lua_setglobal
	movslq	%ebx, %rbx
	movq	(%r13,%rbx,8), %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-8(%r13,%rbx,8), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovneq	%rcx, %r12
LBB0_2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_luaL_loadfile
	movl	%eax, %ebx
	movl	%r14d, %esi
	notl	%esi
	movq	%r15, %rdi
	callq	_lua_insert
	movq	%r15, %rdi
	movl	%r14d, %esi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	callq	_lua_pop
	jmp	LBB0_5
LBB0_3:
	xorl	%edx, %edx
	callq	_docall
	movl	%eax, %ebx
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_report                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arg"

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

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

	.no_dead_strip	_handle_script
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_script
_handle_script:                         ; @handle_script
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_getargs
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lua_setglobal
	ldr	x21, [x22, w23, sxtw #3]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.1:
	sxtw	x8, w23
	add	x8, x22, x8, lsl #3
	ldur	x0, [x8, #-8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	csel	x21, x21, xzr, eq
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_luaL_loadfile
	mov	x21, x0
	mvn	w1, w20
	mov	x0, x19
	bl	_lua_insert
	mov	x0, x19
	mov	x1, x20
	cbz	w21, LBB0_4
; %bb.3:
	bl	_lua_pop
	b	LBB0_5
LBB0_4:
	mov	w2, #0
	bl	_docall
	mov	x21, x0
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	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
	b	_report
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arg"

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

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

	.no_dead_strip	_handle_script
.subsections_via_symbols
