	.file	"extr_luac.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no input files given"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"cannot create state: not enough memory"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	call	doargs@PLT
	sub	r12d, eax
	cdqe
	lea	r13, 0[rbp+rax*8]
	test	r12d, r12d
	jle	.L7
.L2:
	xor	eax, eax
	call	luaL_newstate@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
.L3:
	lea	rsi, pmain[rip]
	mov	rdi, rbp
	call	lua_pushcfunction@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	lua_pushinteger@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	lua_pushlightuserdata@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, 2
	mov	rdi, rbp
	call	lua_pcall@PLT
	cmp	rax, QWORD PTR LUA_OK[rip]
	je	.L4
	mov	rdi, rbp
	or	esi, -1
	call	lua_tostring@PLT
	mov	rdi, rax
	call	fatal@PLT
.L4:
	mov	rdi, rbp
	call	lua_close@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EXIT_SUCCESS[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	usage@PLT
	jmp	.L2
.L8:
	lea	rdi, .LC1[rip]
	call	fatal@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	pmain,4,4
	.comm	LUA_OK,8,8
	.comm	EXIT_SUCCESS,4,4
	.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_luac.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no input files given\000"
	.align	2
.LC1:
	.ascii	"cannot create state: not enough memory\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r6, r1
	bl	doargs
	sub	r5, r5, r0
	cmp	r5, #0
	add	r6, r6, r0, lsl #2
	ble	.L7
.L2:
	bl	luaL_newstate
	subs	r4, r0, #0
	beq	.L8
.L3:
	ldr	r1, .L9
	mov	r0, r4
	bl	lua_pushcfunction
	mov	r1, r5
	mov	r0, r4
	bl	lua_pushinteger
	mov	r1, r6
	mov	r0, r4
	bl	lua_pushlightuserdata
	mov	r3, #0
	mov	r1, #2
	mov	r2, r3
	mov	r0, r4
	bl	lua_pcall
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	mvn	r1, #0
	mov	r0, r4
	bl	lua_tostring
	bl	fatal
.L4:
	mov	r0, r4
	bl	lua_close
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+12
	bl	usage
	b	.L2
.L8:
	ldr	r0, .L9+16
	bl	fatal
	b	.L3
.L10:
	.align	2
.L9:
	.word	pmain
	.word	LUA_OK
	.word	EXIT_SUCCESS
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.comm	pmain,4,4
	.comm	LUA_OK,4,4
	.comm	EXIT_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
