	.file	"extr_lua.c_pushargs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"arg"
.LC1:
	.string	"'arg' is not a table"
.LC2:
	.string	"too many arguments to script"
	.text
	.p2align 4
	.type	pushargs, @function
pushargs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	lua_getglobal@PLT
	cmp	rax, QWORD PTR LUA_TTABLE[rip]
	je	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	luaL_error@PLT
.L2:
	mov	esi, -1
	mov	rdi, rbp
	call	luaL_len@PLT
	lea	rdx, .LC2[rip]
	mov	rdi, rbp
	mov	r12, rax
	lea	esi, 3[rax]
	call	luaL_checkstack@PLT
	test	r12d, r12d
	jle	.L5
	lea	r13d, 1[r12]
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, ebx
	mov	edx, ebx
	mov	rdi, rbp
	neg	esi
	call	lua_rawgeti@PLT
	mov	esi, ebx
	add	ebx, 1
	cmp	ebx, r13d
	jne	.L4
	not	esi
.L3:
	mov	rdi, rbp
	call	lua_remove@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, -1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pushargs, .-pushargs
	.comm	LUA_TTABLE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lua.c_pushargs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"arg\000"
	.align	2
.LC1:
	.ascii	"'arg' is not a table\000"
	.align	2
.LC2:
	.ascii	"too many arguments to script\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pushargs, %function
pushargs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L9
	mov	r5, r0
	bl	lua_getglobal
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	mov	r0, r5
	ldr	r1, .L9+8
	bl	luaL_error
.L2:
	mvn	r1, #0
	mov	r0, r5
	bl	luaL_len
	mov	r7, r0
	add	r1, r0, #3
	ldr	r2, .L9+12
	mov	r0, r5
	bl	luaL_checkstack
	cmp	r7, #0
	ble	.L5
	mov	r4, #1
	add	r6, r7, r4
.L4:
	rsb	r1, r4, #0
	mov	r2, r4
	mov	r0, r5
	bl	lua_rawgeti
	mov	r1, r4
	add	r4, r4, #1
	cmp	r4, r6
	bne	.L4
	mvn	r1, r1
.L3:
	mov	r0, r5
	bl	lua_remove
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r1, #0
	b	.L3
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	LUA_TTABLE
	.word	.LC1
	.word	.LC2
	.size	pushargs, .-pushargs
	.comm	LUA_TTABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
