	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pushargs
_pushargs:                              ## @pushargs
	.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
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	callq	_lua_getglobal
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_luaL_error
LBB0_2:
	movl	$-1, %r15d
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_luaL_len
	movq	%rax, %r14
	leal	3(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_luaL_checkstack
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.3:
	movl	%r14d, %r13d
	negl	%r13d
	movl	$1, %r15d
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_lua_rawgeti
	leal	(%r15,%r13), %eax
	incl	%eax
	movl	%r15d, %ecx
	incl	%ecx
	decl	%ebx
	movl	%ecx, %r15d
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.5:
	movl	%r14d, %r15d
	notl	%r15d
LBB0_6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_lua_remove
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arg"

	.comm	_LUA_TTABLE,8,3                 ## @LUA_TTABLE
L_.str.1:                               ## @.str.1
	.asciz	"'arg' is not a table"

L_.str.2:                               ## @.str.2
	.asciz	"too many arguments to script"

	.no_dead_strip	_pushargs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pushargs
_pushargs:                              ; @pushargs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_lua_getglobal
Lloh2:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
LBB0_2:
	mov	w21, #-1
	mov	x0, x19
	mov	w1, #-1
	bl	_luaL_len
	mov	x20, x0
	add	w1, w20, #3
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_luaL_checkstack
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
	mov	w22, #-1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_lua_rawgeti
	sub	w22, w22, #1
	cmp	w20, w21
	b.ne	LBB0_4
; %bb.5:
	mvn	w21, w20
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_lua_remove
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arg"

	.comm	_LUA_TTABLE,8,3                 ; @LUA_TTABLE
l_.str.1:                               ; @.str.1
	.asciz	"'arg' is not a table"

l_.str.2:                               ; @.str.2
	.asciz	"too many arguments to script"

	.no_dead_strip	_pushargs
.subsections_via_symbols
