	.file	"extr_loadlib.c_searchpath.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n\tno file '%s'"
	.text
	.p2align 4
	.type	searchpath, @function
searchpath:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 4[rsp]
	mov	rsi, r14
	call	luaL_buffinit@PLT
	cmp	BYTE PTR [r12], 0
	jne	.L9
.L2:
	lea	r15, .LC0[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12, QWORD PTR LUA_PATH_MARK[rip]
	mov	esi, -1
	mov	rdi, rbx
	call	lua_tostring@PLT
	mov	rcx, r13
	mov	rdi, rbx
	mov	rdx, r12
	mov	rsi, rax
	call	luaL_gsub@PLT
	mov	rdi, rbx
	mov	esi, -2
	mov	r12, rax
	call	lua_remove@PLT
	mov	rdi, r12
	call	readable@PLT
	test	rax, rax
	jne	.L1
	mov	rdx, r12
	mov	rsi, r15
	mov	rdi, rbx
	call	lua_pushfstring@PLT
	mov	rdi, rbx
	mov	esi, -2
	call	lua_remove@PLT
	mov	rdi, r14
	call	luaL_addvalue@PLT
.L4:
	mov	rsi, rbp
	mov	rdi, rbx
	call	pushnexttemplate@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L5
	mov	rdi, r14
	xor	r12d, r12d
	call	luaL_pushresult@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rsi, r13
	mov	rcx, r15
	mov	rdx, r12
	mov	rdi, rbx
	call	luaL_gsub@PLT
	mov	r13, rax
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	searchpath, .-searchpath
	.comm	LUA_PATH_MARK,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_searchpath.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\011no file '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	searchpath, %function
searchpath:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r3
	sub	sp, sp, #12
	ldr	r3, .L14
	mov	r7, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r2
	mov	r4, r0
	ldr	r8, [sp, #40]
	bl	luaL_buffinit
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L2:
	ldr	r8, .L14+4
	ldr	r9, .L14+8
	b	.L4
.L5:
	mvn	r1, #0
	mov	r0, r4
	bl	lua_tostring
	mov	r3, r7
	mov	r1, r0
	ldr	r2, [r8]
	mov	r0, r4
	bl	luaL_gsub
	mov	r5, r0
	mvn	r1, #1
	mov	r0, r4
	bl	lua_remove
	mov	r0, r5
	bl	readable
	cmp	r0, #0
	bne	.L1
	mov	r2, r5
	mov	r1, r9
	mov	r0, r4
	bl	lua_pushfstring
	mvn	r1, #1
	mov	r0, r4
	bl	lua_remove
	mov	r0, sp
	bl	luaL_addvalue
.L4:
	mov	r1, r6
	mov	r0, r4
	bl	pushnexttemplate
	subs	r6, r0, #0
	bne	.L5
	mov	r0, sp
	bl	luaL_pushresult
	mov	r5, r6
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	mov	r1, r7
	mov	r3, r8
	mov	r2, r5
	mov	r0, r4
	bl	luaL_gsub
	mov	r7, r0
	b	.L2
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	LUA_PATH_MARK
	.word	.LC0
	.size	searchpath, .-searchpath
	.comm	LUA_PATH_MARK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
