	.file	"extr_lua.c_pmain.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmain, @function
pmain:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 1
	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, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	lua_touserdata@PLT
	mov	r12, QWORD PTR [rax]
	mov	rbx, rax
	mov	DWORD PTR 12[rsp], 0
	mov	DWORD PTR 16[rsp], 0
	mov	rax, QWORD PTR [r12]
	mov	DWORD PTR 20[rsp], 0
	mov	QWORD PTR globalL[rip], rbp
	test	rax, rax
	je	.L2
	cmp	BYTE PTR [rax], 0
	jne	.L25
.L2:
	mov	esi, DWORD PTR LUA_GCSTOP[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	lua_gc@PLT
	mov	rdi, rbp
	call	luaL_openlibs@PLT
	mov	esi, DWORD PTR LUA_GCRESTART[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	lua_gc@PLT
	mov	rdi, rbp
	call	handle_luainit@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	je	.L26
.L4:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L25:
	.cfi_restore_state
	mov	QWORD PTR progname[rip], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rcx, 20[rsp]
	lea	rdx, 16[rsp]
	mov	rdi, r12
	lea	rsi, 12[rsp]
	call	collectargs@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L28
	mov	edx, DWORD PTR 16[rsp]
	test	edx, edx
	jne	.L29
.L6:
	test	r13d, r13d
	jne	.L7
	mov	edx, DWORD PTR 12[rbx]
	mov	rsi, r12
	mov	rdi, rbp
	call	runargs@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR 20[rsp]
	or	eax, DWORD PTR 16[rsp]
	jne	.L4
	xor	eax, eax
	call	lua_stdin_is_tty@PLT
	test	rax, rax
	je	.L12
	xor	eax, eax
	call	print_version@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, rbp
	call	dotty@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	call	runargs@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	jne	.L4
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	call	handle_script@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	jne	.L4
	cmp	DWORD PTR 12[rsp], 0
	je	.L4
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L29:
	xor	eax, eax
	call	print_version@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	xor	eax, eax
	call	print_usage@PLT
	mov	DWORD PTR 8[rbx], 1
	jmp	.L4
.L12:
	xor	esi, esi
	mov	rdi, rbp
	call	dofile@PLT
	jmp	.L4
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pmain, .-pmain
	.comm	progname,8,8
	.comm	globalL,8,8
	.comm	LUA_GCSTOP,4,4
	.comm	LUA_GCRESTART,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_pmain.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmain, %function
pmain:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L35
	sub	sp, sp, #20
	mov	r1, #1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	lua_touserdata
	mov	r3, #0
	ldr	r6, [r0]
	ldr	r1, .L35+4
	ldr	r2, [r6]
	mov	r5, r0
	cmp	r2, r3
	str	r4, [r1]
	str	r3, [sp]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	beq	.L2
	ldrb	r3, [r2]	@ zero_extendqisi2
	cmp	r3, #0
	ldrne	r3, .L35+8
	strne	r2, [r3]
.L2:
	ldr	r3, .L35+12
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	lua_gc
	mov	r0, r4
	bl	luaL_openlibs
	ldr	r3, .L35+16
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	lua_gc
	mov	r0, r4
	bl	handle_luainit
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L31
.L4:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L31:
	mov	r1, sp
	mov	r0, r6
	add	r3, sp, #8
	add	r2, sp, #4
	bl	collectargs
	subs	r7, r0, #0
	blt	.L33
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L34
.L6:
	cmp	r7, #0
	bne	.L7
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [r5, #8]
	bl	runargs
	cmp	r0, #0
	str	r0, [r5, #4]
	bne	.L4
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L29
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	orrs	r3, r2, r3
	bne	.L4
	bl	lua_stdin_is_tty
	cmp	r0, #0
	beq	.L12
	bl	print_version
.L29:
	mov	r0, r4
	bl	dotty
	b	.L4
.L7:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	runargs
	cmp	r0, #0
	str	r0, [r5, #4]
	bne	.L4
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	handle_script
	cmp	r0, #0
	str	r0, [r5, #4]
	bne	.L4
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L4
	b	.L29
.L34:
	bl	print_version
	b	.L6
.L33:
	bl	print_usage
	mov	r3, #1
	str	r3, [r5, #4]
	b	.L4
.L12:
	mov	r1, r7
	mov	r0, r4
	bl	dofile
	b	.L4
.L32:
	bl	__stack_chk_fail
.L36:
	.align	2
.L35:
	.word	.LC0
	.word	globalL
	.word	progname
	.word	LUA_GCSTOP
	.word	LUA_GCRESTART
	.size	pmain, .-pmain
	.comm	progname,4,4
	.comm	globalL,4,4
	.comm	LUA_GCSTOP,4,4
	.comm	LUA_GCRESTART,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
