	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getargs
_getargs:                               ## @getargs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %r15
	xorl	%r13d, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	cmpq	$0, (%rax)
	leaq	8(%rax), %rax
	jne	LBB0_1
## %bb.2:
	movl	%r13d, %ebx
	notl	%ebx
	leal	1(%rdx), %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%r13), %eax
	movl	$-2, %r14d
	subl	%eax, %r14d
	movl	$1, %esi
	subl	%eax, %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_luaL_checkstack
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	%ebx, %r12d
	jge	LBB0_5
## %bb.3:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r12,8), %rsi
	movq	%r15, %rdi
	callq	_lua_pushstring
	incq	%r12
	cmpl	%r12d, %r14d
	jne	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_lua_createtable
	cmpl	$-1, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	negl	%r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_lua_pushstring
	leal	(%r12,%rbx), %edx
	movq	%r15, %rdi
	movl	$-2, %esi
	callq	_lua_rawseti
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_7
LBB0_8:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %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	"too many arguments to script"

	.no_dead_strip	_getargs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getargs
_getargs:                               ; @getargs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x24, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x24, lsl #3]
	add	x24, x24, #1
	cbnz	x8, LBB0_1
; %bb.2:
	sub	w25, w24, #1
	add	w23, w22, #1
	mov	w8, #-2
	sub	w8, w8, w22
	add	x21, x8, x24
	sub	w8, w24, w22
	add	w1, w8, #1
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_luaL_checkstack
	cmp	w23, w25
	b.ge	LBB0_5
; %bb.3:
	add	x25, x19, w23, sxtw #3
	sub	w8, w22, w24
	add	w26, w8, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25], #8
	mov	x0, x20
	bl	_lua_pushstring
	adds	w26, w26, #1
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_lua_createtable
	cmp	w24, #1
	b.eq	LBB0_8
; %bb.6:
	neg	w22, w22
	sub	w23, w24, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19], #8
	mov	x0, x20
	bl	_lua_pushstring
	mov	x0, x20
	mov	w1, #-2
	mov	x2, x22
	bl	_lua_rawseti
	add	w22, w22, #1
	subs	x23, x23, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many arguments to script"

	.no_dead_strip	_getargs
.subsections_via_symbols
