	.file	"extr_loadlib.c_findfile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"'package.%s' must be a string"
.LC1:
	.string	"."
	.text
	.p2align 4
	.type	findfile, @function
findfile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	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
	mov	edi, 1
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	call	lua_upvalueindex@PLT
	mov	rdx, r13
	mov	rdi, rbp
	mov	esi, eax
	call	lua_getfield@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_tostring@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
.L2:
	mov	r8, rbx
	mov	rdx, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r14
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	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
	jmp	searchpath@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	luaL_error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	findfile, .-findfile
	.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_findfile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"'package.%s' must be a string\000"
	.align	2
.LC1:
	.ascii	".\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	findfile, %function
findfile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	sp, sp, #8
	mov	r0, #1
	mov	r8, r3
	mov	r6, r2
	mov	r7, r1
	bl	lua_upvalueindex
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	lua_getfield
	mov	r0, r4
	mvn	r1, #0
	bl	lua_tostring
	subs	r5, r0, #0
	beq	.L5
.L2:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	ldr	r3, .L6
	str	r8, [sp]
	bl	searchpath
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, r6
	mov	r0, r4
	ldr	r1, .L6+4
	bl	luaL_error
	b	.L2
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	.LC0
	.size	findfile, .-findfile
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
