	.file	"extr_extension.c_GetLuaState.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not create new Lua State"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"vlc"
.LC2:
	.string	"deactivate"
.LC3:
	.string	"keep_alive"
.LC4:
	.string	"zip://"
.LC5:
	.string	"require"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Error while setting the module search path for %s"
	.section	.rodata.str1.1
.LC7:
	.string	"Error loading script %s: %s"
	.text
	.p2align 4
	.type	GetLuaState, @function
GetLuaState:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	xor	edi, edi
	test	rsi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	setne	dil
	mov	rbx, rsi
	call	assert@PLT
	mov	rax, QWORD PTR [rbx]
	mov	r12, QWORD PTR [rax]
	test	r12, r12
	je	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	xor	eax, eax
	call	luaL_newstate@PLT
	mov	r13, rax
	test	rax, rax
	je	.L16
	mov	rsi, rbp
	mov	rdi, rax
	call	vlclua_set_this@PLT
	mov	rdi, rbp
	call	vlc_object_parent@PLT
	mov	rdi, rax
	call	vlc_intf_GetMainPlaylist@PLT
	mov	rdi, r13
	mov	rsi, rax
	call	vlclua_set_playlist_internal@PLT
	mov	rsi, rbx
	mov	rdi, r13
	call	vlclua_extension_set@PLT
	mov	rdi, r13
	call	luaL_openlibs@PLT
	mov	edx, DWORD PTR p_reg[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	luaL_register_namespace@PLT
	mov	rdi, r13
	call	luaopen_msg@PLT
	mov	rdi, r13
	call	luaopen_config@PLT
	mov	rsi, rbx
	mov	rdi, r13
	call	luaopen_dialog@PLT
	mov	rdi, r13
	call	luaopen_input@PLT
	mov	rdi, r13
	call	luaopen_msg@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r13
	lea	rsi, 8[rax]
	call	vlclua_fd_init@PLT
	mov	rdi, r13
	test	rax, rax
	jne	.L13
	call	luaopen_object@PLT
	mov	rdi, r13
	call	luaopen_osd@PLT
	mov	rdi, r13
	call	luaopen_playlist@PLT
	mov	rdi, r13
	call	luaopen_stream@PLT
	mov	rdi, r13
	call	luaopen_strings@PLT
	mov	rdi, r13
	call	luaopen_variables@PLT
	mov	rdi, r13
	call	luaopen_video@PLT
	mov	rdi, r13
	call	luaopen_vlm@PLT
	mov	rdi, r13
	call	luaopen_volume@PLT
	mov	rdi, r13
	call	luaopen_xml@PLT
	mov	rdi, r13
	call	luaopen_vlcio@PLT
	mov	rdi, r13
	call	luaopen_errno@PLT
	mov	rdi, r13
	call	luaopen_rand@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	lua_getglobal@PLT
	mov	esi, DWORD PTR vlclua_extension_deactivate[rip]
	mov	rdi, r13
	call	lua_pushcfunction@PLT
	lea	rdx, .LC2[rip]
	mov	esi, -2
	mov	rdi, r13
	call	lua_setfield@PLT
	mov	esi, DWORD PTR vlclua_extension_keep_alive[rip]
	mov	rdi, r13
	call	lua_pushcfunction@PLT
	lea	rdx, .LC3[rip]
	mov	esi, -2
	mov	rdi, r13
	call	lua_setfield@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, 6
	lea	rsi, .LC4[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L5
	lea	rdx, vlclua_extension_require[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	call	lua_register@PLT
.L6:
	mov	r14d, DWORD PTR 8[rbx]
	mov	rdi, rbp
	call	VLC_OBJECT@PLT
	mov	rsi, r13
	mov	edi, eax
	mov	edx, r14d
	call	vlclua_dofile@PLT
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR [rbx]
	mov	r12, r13
	mov	QWORD PTR [rax], r13
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r13
	call	vlclua_add_modules_path@PLT
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	msg_Warn@PLT
.L12:
	mov	rdi, QWORD PTR [rbx]
	add	rdi, 8
	call	vlclua_fd_cleanup@PLT
	mov	rdi, r13
.L13:
	call	lua_close@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	msg_Err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	lua_gettop@PLT
	mov	rdi, r13
	mov	esi, eax
	call	lua_tostring@PLT
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	mov	ecx, eax
	xor	eax, eax
	call	msg_Warn@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	GetLuaState, .-GetLuaState
	.comm	vlclua_extension_require,4,4
	.comm	vlclua_extension_keep_alive,4,4
	.comm	vlclua_extension_deactivate,4,4
	.comm	p_reg,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_extension.c_GetLuaState.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not create new Lua State\000"
	.align	2
.LC1:
	.ascii	"vlc\000"
	.align	2
.LC2:
	.ascii	"deactivate\000"
	.align	2
.LC3:
	.ascii	"keep_alive\000"
	.align	2
.LC4:
	.ascii	"zip://\000"
	.align	2
.LC5:
	.ascii	"require\000"
	.align	2
.LC6:
	.ascii	"Error while setting the module search path for %s\000"
	.align	2
.LC7:
	.ascii	"Error loading script %s: %s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetLuaState, %function
GetLuaState:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r0
	subs	r0, r1, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r4]
	ldr	r7, [r3]
	cmp	r7, #0
	beq	.L15
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	luaL_newstate
	subs	r5, r0, #0
	beq	.L16
	mov	r1, r6
	bl	vlclua_set_this
	mov	r0, r6
	bl	vlc_object_parent
	bl	vlc_intf_GetMainPlaylist
	mov	r1, r0
	mov	r0, r5
	bl	vlclua_set_playlist_internal
	mov	r1, r4
	mov	r0, r5
	bl	vlclua_extension_set
	mov	r0, r5
	bl	luaL_openlibs
	ldr	r3, .L18
	ldr	r1, .L18+4
	ldr	r2, [r3]
	mov	r0, r5
	bl	luaL_register_namespace
	mov	r0, r5
	bl	luaopen_msg
	mov	r0, r5
	bl	luaopen_config
	mov	r1, r4
	mov	r0, r5
	bl	luaopen_dialog
	mov	r0, r5
	bl	luaopen_input
	mov	r0, r5
	bl	luaopen_msg
	ldr	r1, [r4]
	mov	r0, r5
	add	r1, r1, #4
	bl	vlclua_fd_init
	cmp	r0, #0
	mov	r0, r5
	bne	.L13
	bl	luaopen_object
	mov	r0, r5
	bl	luaopen_osd
	mov	r0, r5
	bl	luaopen_playlist
	mov	r0, r5
	bl	luaopen_stream
	mov	r0, r5
	bl	luaopen_strings
	mov	r0, r5
	bl	luaopen_variables
	mov	r0, r5
	bl	luaopen_video
	mov	r0, r5
	bl	luaopen_vlm
	mov	r0, r5
	bl	luaopen_volume
	mov	r0, r5
	bl	luaopen_xml
	mov	r0, r5
	bl	luaopen_vlcio
	mov	r0, r5
	bl	luaopen_errno
	mov	r0, r5
	bl	luaopen_rand
	ldr	r1, .L18+4
	mov	r0, r5
	bl	lua_getglobal
	ldr	r3, .L18+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	lua_pushcfunction
	ldr	r2, .L18+12
	mvn	r1, #1
	mov	r0, r5
	bl	lua_setfield
	ldr	r3, .L18+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	lua_pushcfunction
	mvn	r1, #1
	ldr	r2, .L18+20
	mov	r0, r5
	bl	lua_setfield
	mov	r2, #6
	ldr	r1, .L18+24
	ldr	r0, [r4, #4]
	bl	strncmp
	cmp	r0, #0
	bne	.L5
	mov	r0, r5
	ldr	r2, .L18+28
	ldr	r1, .L18+32
	bl	lua_register
.L6:
	mov	r0, r6
	bl	VLC_OBJECT
	mov	r1, r5
	ldr	r2, [r4, #4]
	bl	vlclua_dofile
	cmp	r0, #0
	bne	.L17
	mov	r7, r5
	ldr	r3, [r4]
	mov	r0, r7
	str	r5, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	vlclua_add_modules_path
	cmp	r0, #0
	beq	.L6
	mov	r0, r6
	ldr	r2, [r4, #4]
	ldr	r1, .L18+36
	bl	msg_Warn
.L12:
	ldr	r0, [r4]
	add	r0, r0, #4
	bl	vlclua_fd_cleanup
	mov	r0, r5
.L13:
	bl	lua_close
	b	.L1
.L16:
	mov	r0, r6
	ldr	r1, .L18+40
	bl	msg_Err
	b	.L1
.L17:
	mov	r0, r5
	ldr	r8, [r4, #4]
	bl	lua_gettop
	mov	r1, r0
	mov	r0, r5
	bl	lua_tostring
	mov	r2, r8
	mov	r3, r0
	ldr	r1, .L18+44
	mov	r0, r6
	bl	msg_Warn
	b	.L12
.L19:
	.align	2
.L18:
	.word	p_reg
	.word	.LC1
	.word	vlclua_extension_deactivate
	.word	.LC2
	.word	vlclua_extension_keep_alive
	.word	.LC3
	.word	.LC4
	.word	vlclua_extension_require
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.word	.LC7
	.size	GetLuaState, .-GetLuaState
	.comm	vlclua_extension_require,4,4
	.comm	vlclua_extension_keep_alive,4,4
	.comm	vlclua_extension_deactivate,4,4
	.comm	p_reg,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
