	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaB_load
_luaB_load:                             ## @luaB_load
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdx
	movl	$1, %esi
	callq	_lua_tolstring
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_luaL_optstring
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_lua_isnone
	movl	%eax, %r14d
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$2, %esi
	movq	%r12, %rdx
	callq	_luaL_optstring
	movq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rcx
	movq	%r15, %r8
	callq	_luaL_loadbufferx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_optstring
	movq	%rax, %r12
	movq	_LUA_TFUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_luaL_checktype
	movq	_RESERVEDSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_lua_settop
	movq	_generic_reader@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_lua_load
LBB0_3:
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	shll	$2, %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_load_aux
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bt"

L_.str.1:                               ## @.str.1
	.asciz	"=(load)"

	.comm	_LUA_TFUNCTION,4,2              ## @LUA_TFUNCTION
	.comm	_RESERVEDSLOT,4,2               ## @RESERVEDSLOT
	.comm	_generic_reader,4,2             ## @generic_reader
	.no_dead_strip	_luaB_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaB_load
_luaB_load:                             ; @luaB_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x2, sp, #8
	mov	w1, #1
	bl	_lua_tolstring
	mov	x22, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #3
	bl	_luaL_optstring
	mov	x21, x0
	mov	x0, x19
	mov	w1, #4
	bl	_lua_isnone
	mov	x20, x0
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2
	mov	x2, x22
	bl	_luaL_optstring
	mov	x3, x0
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x4, x21
	bl	_luaL_loadbufferx
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_optstring
	mov	x22, x0
Lloh4:
	adrp	x8, _LUA_TFUNCTION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LUA_TFUNCTION@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_luaL_checktype
Lloh7:
	adrp	x8, _RESERVEDSLOT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RESERVEDSLOT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_lua_settop
Lloh10:
	adrp	x8, _generic_reader@GOTPAGE
Lloh11:
	ldr	x8, [x8, _generic_reader@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x22
	mov	x4, x21
	bl	_lua_load
LBB0_3:
	mov	x1, x0
	cmp	w20, #0
	cset	w8, eq
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_load_aux
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bt"

l_.str.1:                               ; @.str.1
	.asciz	"=(load)"

	.comm	_LUA_TFUNCTION,4,2              ; @LUA_TFUNCTION
	.comm	_RESERVEDSLOT,4,2               ; @RESERVEDSLOT
	.comm	_generic_reader,4,2             ; @generic_reader
	.no_dead_strip	_luaB_load
.subsections_via_symbols
