	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_proto_get_stmt_prepare_packet
_lua_proto_get_stmt_prepare_packet:     ## @lua_proto_get_stmt_prepare_packet
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	-32(%rbp), %rdx
	movl	$1, %esi
	callq	_luaL_checklstring
	movq	%rax, -48(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_network_mysqld_stmt_prepare_packet_new
	movq	%rax, %rbx
	leaq	-64(%rbp), %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_proto_get_stmt_prepare_packet
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_network_mysqld_stmt_prepare_packet_free
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_luaL_error
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_lua_newtable
	movq	_stmt_text@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_EXPORT_STR
	movq	%rbx, %rdi
	callq	_network_mysqld_stmt_prepare_packet_free
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: network_mysqld_proto_get_stmt_prepare_packet() failed"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
	.comm	_stmt_text,4,2                  ## @stmt_text
	.no_dead_strip	_lua_proto_get_stmt_prepare_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_proto_get_stmt_prepare_packet
_lua_proto_get_stmt_prepare_packet:     ; @lua_proto_get_stmt_prepare_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	sub	x2, x29, #24
	mov	w1, #1
	bl	_luaL_checklstring
	ldur	x8, [x29, #-24]
	stp	x0, x8, [sp, #8]
	add	x8, sp, #8
	stp	xzr, x8, [sp, #24]
	bl	_network_mysqld_stmt_prepare_packet_new
	mov	x20, x0
	add	x0, sp, #24
	mov	x1, x20
	bl	_network_mysqld_proto_get_stmt_prepare_packet
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_network_mysqld_stmt_prepare_packet_free
Lloh0:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_lua_newtable
Lloh5:
	adrp	x8, _stmt_text@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stmt_text@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LUA_EXPORT_STR
	mov	x0, x20
	bl	_network_mysqld_stmt_prepare_packet_free
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: network_mysqld_proto_get_stmt_prepare_packet() failed"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
	.comm	_stmt_text,4,2                  ; @stmt_text
	.no_dead_strip	_lua_proto_get_stmt_prepare_packet
.subsections_via_symbols
