	.file	"extr_loadlib.c_findloader.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"searchers"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"'package.searchers' must be a table"
	.section	.rodata.str1.1
.LC2:
	.string	"module '%s' not found:%s"
	.text
	.p2align 4
	.type	findloader, @function
findloader:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rsi, r13
	call	luaL_buffinit@PLT
	mov	edi, 1
	call	lua_upvalueindex@PLT
	lea	rdx, .LC0[rip]
	mov	rdi, rbx
	mov	esi, eax
	call	lua_getfield@PLT
	cmp	rax, QWORD PTR LUA_TTABLE[rip]
	je	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	xor	eax, eax
	call	luaL_error@PLT
.L2:
	mov	ebp, 1
	lea	r14, .LC2[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbx
	mov	esi, 1
	call	lua_pop@PLT
	mov	rdi, r13
	call	luaL_addvalue@PLT
.L6:
	add	ebp, 1
.L7:
	mov	edx, ebp
	mov	esi, 3
	mov	rdi, rbx
	call	lua_rawgeti@PLT
	cmp	rax, QWORD PTR LUA_TNIL[rip]
	je	.L12
.L3:
	mov	rsi, r12
	mov	rdi, rbx
	call	lua_pushstring@PLT
	mov	esi, 1
	mov	rdi, rbx
	mov	edx, 2
	call	lua_call@PLT
	mov	esi, -2
	mov	rdi, rbx
	call	lua_isfunction@PLT
	test	rax, rax
	jne	.L9
	mov	esi, -2
	mov	rdi, rbx
	call	lua_isstring@PLT
	test	rax, rax
	jne	.L13
	mov	esi, 2
	mov	rdi, rbx
	call	lua_pop@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, 1
	mov	rdi, rbx
	call	lua_pop@PLT
	mov	rdi, r13
	call	luaL_pushresult@PLT
	mov	rdi, rbx
	mov	esi, -1
	call	lua_tostring@PLT
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbx
	mov	ecx, eax
	xor	eax, eax
	call	luaL_error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	findloader, .-findloader
	.comm	LUA_TTABLE,8,8
	.comm	LUA_TNIL,8,8
	.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_loadlib.c_findloader.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"searchers\000"
	.align	2
.LC1:
	.ascii	"'package.searchers' must be a table\000"
	.align	2
.LC2:
	.ascii	"module '%s' not found:%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	findloader, %function
findloader:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L15
	sub	sp, sp, #8
	mov	r6, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	luaL_buffinit
	mov	r0, #1
	bl	lua_upvalueindex
	ldr	r2, .L15+4
	mov	r1, r0
	mov	r0, r4
	bl	lua_getfield
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	mov	r0, r4
	ldr	r1, .L15+12
	bl	luaL_error
.L2:
	mov	r5, #1
	ldr	r7, .L15+16
	ldr	r8, .L15+20
	b	.L7
.L13:
	mov	r1, #1
	mov	r0, r4
	bl	lua_pop
	mov	r0, sp
	bl	luaL_addvalue
.L6:
	add	r5, r5, #1
.L7:
	mov	r2, r5
	mov	r1, #3
	mov	r0, r4
	bl	lua_rawgeti
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L12
.L3:
	mov	r1, r6
	mov	r0, r4
	bl	lua_pushstring
	mov	r2, #2
	mov	r1, #1
	mov	r0, r4
	bl	lua_call
	mvn	r1, #1
	mov	r0, r4
	bl	lua_isfunction
	cmp	r0, #0
	bne	.L9
	mvn	r1, #1
	mov	r0, r4
	bl	lua_isstring
	cmp	r0, #0
	bne	.L13
	mov	r1, #2
	mov	r0, r4
	bl	lua_pop
	b	.L6
.L12:
	mov	r1, #1
	mov	r0, r4
	bl	lua_pop
	mov	r0, sp
	bl	luaL_pushresult
	mvn	r1, #0
	mov	r0, r4
	bl	lua_tostring
	mov	r2, r6
	mov	r3, r0
	mov	r1, r8
	mov	r0, r4
	bl	luaL_error
	b	.L3
.L9:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.word	LUA_TTABLE
	.word	.LC1
	.word	LUA_TNIL
	.word	.LC2
	.size	findloader, .-findloader
	.comm	LUA_TTABLE,4,4
	.comm	LUA_TNIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
