	.file	"extr_lua.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.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
	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
	call	luaL_newstate@PLT
	test	rax, rax
	je	.L10
	mov	rbp, rax
	lea	rsi, pmain[rip]
	mov	rdi, rax
	call	lua_pushcfunction@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	lua_pushinteger@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	lua_pushlightuserdata@PLT
	xor	ecx, ecx
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, 2
	call	lua_pcall@PLT
	mov	esi, -1
	mov	rdi, rbp
	mov	r12d, eax
	call	lua_toboolean@PLT
	mov	rdi, rbp
	mov	esi, r12d
	mov	r13d, eax
	call	report@PLT
	mov	rdi, rbp
	call	lua_close@PLT
	test	r13d, r13d
	jne	.L11
.L4:
	mov	eax, DWORD PTR EXIT_FAILURE[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	cmp	DWORD PTR LUA_OK[rip], r12d
	mov	eax, DWORD PTR EXIT_SUCCESS[rip]
	jne	.L4
	jmp	.L1
.L10:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	l_message@PLT
	mov	eax, DWORD PTR EXIT_FAILURE[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	pmain,4,4
	.comm	LUA_OK,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,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_lua.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.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	r6, r0
	mov	r5, r1
	bl	luaL_newstate
	subs	r4, r0, #0
	beq	.L10
	ldr	r1, .L12
	bl	lua_pushcfunction
	mov	r1, r6
	mov	r0, r4
	bl	lua_pushinteger
	mov	r1, r5
	mov	r0, r4
	bl	lua_pushlightuserdata
	mov	r3, #0
	mov	r2, #1
	mov	r1, #2
	mov	r0, r4
	bl	lua_pcall
	mvn	r1, #0
	mov	r5, r0
	mov	r0, r4
	bl	lua_toboolean
	mov	r6, r0
	mov	r1, r5
	mov	r0, r4
	bl	report
	mov	r0, r4
	bl	lua_close
	cmp	r6, #0
	beq	.L4
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L11
.L4:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L12+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [r5]
	ldr	r1, .L12+16
	bl	l_message
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	pmain
	.word	LUA_OK
	.word	EXIT_FAILURE
	.word	EXIT_SUCCESS
	.word	.LC0
	.size	main, .-main
	.comm	pmain,4,4
	.comm	LUA_OK,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
