	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findloader
_findloader:                            ## @findloader
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-44(%rbp), %rsi
	callq	_luaL_buffinit
	movl	$1, %r15d
	movl	$1, %edi
	callq	_lua_upvalueindex
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_getfield
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_luaL_error
LBB0_2:
	movq	_LUA_TNIL@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %esi
	callq	_lua_pop
	movq	%r12, %rdi
	callq	_luaL_addvalue
	incl	%r15d
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	%r15d, %edx
	callq	_lua_rawgeti
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%r12, %rdi
	callq	_luaL_pushresult
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_tostring
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_luaL_error
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_lua_pushstring
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$2, %edx
	callq	_lua_call
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_isfunction
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_isstring
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %esi
	callq	_lua_pop
	incl	%r15d
	jmp	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"searchers"

	.comm	_LUA_TTABLE,8,3                 ## @LUA_TTABLE
L_.str.1:                               ## @.str.1
	.asciz	"'package.searchers' must be a table"

	.comm	_LUA_TNIL,8,3                   ## @LUA_TNIL
L_.str.2:                               ## @.str.2
	.asciz	"module '%s' not found:%s"

	.no_dead_strip	_findloader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findloader
_findloader:                            ; @findloader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #28
	bl	_luaL_buffinit
	mov	w0, #1
	bl	_lua_upvalueindex
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_lua_getfield
Lloh2:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_luaL_error
LBB0_2:
	mov	w21, #1
Lloh7:
	adrp	x23, _LUA_TNIL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _LUA_TNIL@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.2@PAGE
Lloh10:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	add	x0, sp, #28
	bl	_luaL_addvalue
	add	w21, w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #3
	mov	x2, x21
	bl	_lua_rawgeti
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	add	x0, sp, #28
	bl	_luaL_pushresult
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_tostring
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_luaL_error
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_lua_pushstring
	mov	x0, x20
	mov	w1, #1
	mov	w2, #2
	bl	_lua_call
	mov	x0, x20
	mov	w1, #-2
	bl	_lua_isfunction
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #-2
	bl	_lua_isstring
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #2
	bl	_lua_pop
	add	w21, w21, #1
	b	LBB0_4
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"searchers"

	.comm	_LUA_TTABLE,8,3                 ; @LUA_TTABLE
l_.str.1:                               ; @.str.1
	.asciz	"'package.searchers' must be a table"

	.comm	_LUA_TNIL,8,3                   ; @LUA_TNIL
l_.str.2:                               ; @.str.2
	.asciz	"module '%s' not found:%s"

	.no_dead_strip	_findloader
.subsections_via_symbols
