	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_lua_load_script ## -- Begin function network_mysqld_lua_load_script
	.p2align	4, 0x90
_network_mysqld_lua_load_script:        ## @network_mysqld_lua_load_script
	.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
	movl	(%rdi), %edi
	callq	_lua_gettop
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_lua_scope_load_script
	movl	(%rbx), %edi
	movl	$-1, %r12d
	movl	$-1, %esi
	callq	_lua_isstring
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_lua_tostring
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_g_critical
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_lua_pop
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r12d
	jmp	LBB0_7
LBB0_4:
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_lua_isfunction
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %r13d
	movl	%r13d, %edi
	movl	$-1, %esi
	callq	_lua_type
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_lua_typename
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_g_error
LBB0_6:
	movl	(%rbx), %edi
	callq	_lua_gettop
	subl	%r15d, %eax
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_g_assert
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	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: lua_load_file(%s) failed: %s"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
L_.str.1:                               ## @.str.1
	.asciz	"%s: luaL_loadfile(%s): returned a %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_lua_load_script ; -- Begin function network_mysqld_lua_load_script
	.p2align	2
_network_mysqld_lua_load_script:        ; @network_mysqld_lua_load_script
	.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
	ldr	w0, [x0]
	bl	_lua_gettop
	cbz	x20, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_lua_scope_load_script
	ldr	w0, [x19]
	mov	w1, #-1
	bl	_lua_isstring
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19]
	mov	w21, #-1
	mov	w1, #-1
	bl	_lua_tostring
	mov	x3, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_g_critical
	ldr	w0, [x19]
	mov	w1, #1
	bl	_lua_pop
	b	LBB0_7
LBB0_3:
	mov	w21, #-1
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19]
	mov	w1, #-1
	bl	_lua_isfunction
	cbnz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	w23, [x19]
	mov	x0, x23
	mov	w1, #-1
	bl	_lua_type
	mov	x1, x0
	mov	x0, x23
	bl	_lua_typename
	mov	x3, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_g_error
LBB0_6:
	ldr	w0, [x19]
	bl	_lua_gettop
	sub	w8, w0, w21
	cmp	w8, #1
	cset	w0, eq
	bl	_g_assert
	mov	w21, #0
LBB0_7:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: lua_load_file(%s) failed: %s"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
l_.str.1:                               ; @.str.1
	.asciz	"%s: luaL_loadfile(%s): returned a %s"

.subsections_via_symbols
