	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ll_register
_ll_register:                           ## @ll_register
	.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
	movq	_LIBPREFIX@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_lua_pushfstring
	movq	_LUA_REGISTRYINDEX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_lua_gettable
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_isnil
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pop
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_lua_newuserdata
	movq	%rax, %r15
	movq	$0, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_luaL_getmetatable
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_setmetatable
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_lua_pushfstring
	movq	%rbx, %rdi
	movl	$-2, %esi
	callq	_lua_pushvalue
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_lua_settable
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_lua_touserdata
	movq	%rax, %r15
LBB0_3:
	movq	%r15, %rax
	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	"%s%s"

	.comm	_LIBPREFIX,4,2                  ## @LIBPREFIX
	.comm	_LUA_REGISTRYINDEX,4,2          ## @LUA_REGISTRYINDEX
L_.str.1:                               ## @.str.1
	.asciz	"_LOADLIB"

	.no_dead_strip	_ll_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ll_register
_ll_register:                           ; @ll_register
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _LIBPREFIX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LIBPREFIX@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_lua_pushfstring
Lloh4:
	adrp	x22, _LUA_REGISTRYINDEX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _LUA_REGISTRYINDEX@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_lua_gettable
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_isnil
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pop
	mov	x0, x19
	mov	w1, #8
	bl	_lua_newuserdata
	mov	x21, x0
	str	xzr, [x0]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_luaL_getmetatable
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_setmetatable
	ldr	w2, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_lua_pushfstring
	mov	x0, x19
	mov	w1, #-2
	bl	_lua_pushvalue
	ldr	w1, [x22]
	mov	x0, x19
	bl	_lua_settable
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #-1
	bl	_lua_touserdata
	mov	x21, x0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_LIBPREFIX,4,2                  ; @LIBPREFIX
	.comm	_LUA_REGISTRYINDEX,4,2          ; @LUA_REGISTRYINDEX
l_.str.1:                               ; @.str.1
	.asciz	"_LOADLIB"

	.no_dead_strip	_ll_register
.subsections_via_symbols
