	.file	"extr_minilua.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"bit"
.LC1:
	.string	"arg"
.LC2:
	.string	"Error: %s\n"
	.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
	xor	eax, eax
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	luaL_newstate@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	luaL_openlibs@PLT
	mov	edx, DWORD PTR bitlib[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	luaL_register@PLT
	mov	eax, 8
	cmp	r13d, 1
	jle	.L1
	mov	edx, 1
	xor	esi, esi
	mov	rdi, rbp
	call	lua_createtable@PLT
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, rbp
	call	lua_pushstring@PLT
	xor	edx, edx
	mov	esi, -2
	mov	rdi, rbp
	call	lua_rawseti@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	lua_setglobal@PLT
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, rbp
	call	luaL_loadfile@PLT
	test	rax, rax
	jne	.L6
	cmp	r13d, 2
	je	.L4
	lea	eax, -3[r13]
	lea	rbx, 16[r12]
	lea	r12, 24[r12+rax*8]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	add	rbx, 8
	call	lua_pushstring@PLT
	cmp	rbx, r12
	jne	.L5
.L4:
	xor	ecx, ecx
	xor	edx, edx
	lea	esi, -2[r13]
	mov	rdi, rbp
	call	lua_pcall@PLT
	test	rax, rax
	je	.L14
.L6:
	or	esi, -1
	mov	rdi, rbp
	call	lua_tostring@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	call	fprintf@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	lua_close@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stderr,4,4
	.comm	bitlib,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_minilua.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bit\000"
	.align	2
.LC1:
	.ascii	"arg\000"
	.align	2
.LC2:
	.ascii	"Error: %s\012\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, r7, r8, lr}
	mov	r4, r1
	mov	r7, r0
	bl	luaL_newstate
	mov	r5, r0
	bl	luaL_openlibs
	ldr	r3, .L15
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, .L15+4
	bl	luaL_register
	cmp	r7, #1
	movle	r4, #4
	ble	.L1
	mov	r2, #1
	mov	r1, #0
	mov	r0, r5
	bl	lua_createtable
	ldr	r1, [r4, #4]
	mov	r0, r5
	bl	lua_pushstring
	mov	r2, #0
	mvn	r1, #1
	mov	r0, r5
	bl	lua_rawseti
	ldr	r1, .L15+8
	mov	r0, r5
	bl	lua_setglobal
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	luaL_loadfile
	cmp	r0, #0
	bne	.L6
	cmp	r7, #2
	beq	.L4
	sub	r6, r4, #4
	add	r6, r6, r7, lsl #2
	add	r4, r4, #4
.L5:
	ldr	r1, [r4, #4]!
	mov	r0, r5
	bl	lua_pushstring
	cmp	r4, r6
	bne	.L5
.L4:
	mov	r3, #0
	mov	r0, r5
	mov	r2, r3
	sub	r1, r7, #2
	bl	lua_pcall
	subs	r4, r0, #0
	beq	.L14
.L6:
	ldr	r3, .L15+12
	mvn	r1, #0
	mov	r0, r5
	ldr	r4, [r3]
	bl	lua_tostring
	ldr	r1, .L15+16
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	mov	r4, #1
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r5
	bl	lua_close
	b	.L1
.L16:
	.align	2
.L15:
	.word	bitlib
	.word	.LC0
	.word	.LC1
	.word	stderr
	.word	.LC2
	.size	main, .-main
	.comm	stderr,4,4
	.comm	bitlib,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
