	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_stmt_close_packet ## -- Begin function network_mysqld_proto_get_stmt_close_packet
	.p2align	4, 0x90
_network_mysqld_proto_get_stmt_close_packet: ## @network_mysqld_proto_get_stmt_close_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rsi
	callq	_network_mysqld_proto_get_int8
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_COM_STMT_CLOSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_network_mysqld_proto_get_int32
	xorl	%r15d, %r15d
	negq	%rax
	sbbl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_g_critical
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COM_STMT_CLOSE,8,3             ## @COM_STMT_CLOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: expected the first byte to be %02x, got %02x"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_stmt_close_packet ; -- Begin function network_mysqld_proto_get_stmt_close_packet
	.p2align	2
_network_mysqld_proto_get_stmt_close_packet: ; @network_mysqld_proto_get_stmt_close_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_network_mysqld_proto_get_int8
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _COM_STMT_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COM_STMT_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	ldr	x3, [sp, #8]
	cmp	x2, x3
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_network_mysqld_proto_get_int32
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_critical
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COM_STMT_CLOSE,8,3             ; @COM_STMT_CLOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: expected the first byte to be %02x, got %02x"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
.subsections_via_symbols
