	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ll_loadlib
_ll_loadlib:                            ## @ll_loadlib
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %r14d
	movl	$1, %esi
	callq	_luaL_checkstring
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_checkstring
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_lookforfunc
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_lua_pushnil
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_insert
	movq	_ERRLIB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_2
## %bb.3:
	movq	_LIB_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
	callq	_lua_pushstring
	movl	$3, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERRLIB,4,2                     ## @ERRLIB
	.comm	_LIB_FAIL,8,3                   ## @LIB_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init"

	.no_dead_strip	_ll_loadlib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ll_loadlib
_ll_loadlib:                            ; @ll_loadlib
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w20, #1
	mov	w1, #1
	bl	_luaL_checkstring
	mov	x21, x0
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checkstring
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_lookforfunc
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_lua_pushnil
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_insert
Lloh0:
	adrp	x8, _ERRLIB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERRLIB@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LIB_FAIL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LIB_FAIL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, l_.str@PAGE
Lloh7:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w21, w8
	csel	x1, x9, x10, eq
	mov	x0, x19
	bl	_lua_pushstring
	mov	w20, #3
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ERRLIB,4,2                     ; @ERRLIB
	.comm	_LIB_FAIL,8,3                   ; @LIB_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init"

	.no_dead_strip	_ll_loadlib
.subsections_via_symbols
