	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_ok_packet ## -- Begin function network_mysqld_proto_get_ok_packet
	.p2align	4, 0x90
_network_mysqld_proto_get_ok_packet:    ## @network_mysqld_proto_get_ok_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.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	$0, -48(%rbp)
	movq	_CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	leaq	-80(%rbp), %rsi
	callq	_network_mysqld_proto_get_int8
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	-80(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_g_critical
	jmp	LBB0_13
LBB0_3:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_lenenc_int
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_lenenc_int
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int16
	andl	(%r13), %r12d
	je	LBB0_9
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int16
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movq	-48(%rbp), %rax
	jmp	LBB0_12
LBB0_9:
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.10:
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	xorl	%eax, %eax
LBB0_12:
	movq	-72(%rbp), %rcx
	movq	%rcx, 24(%r14)
	movq	-64(%rbp), %rcx
	movq	%rcx, 16(%r14)
	movq	-56(%rbp), %rcx
	movq	%rcx, 8(%r14)
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ## @CLIENT_PROTOCOL_41
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: expected the first byte to be 0, got %d"

	.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_ok_packet ; -- Begin function network_mysqld_proto_get_ok_packet
	.p2align	2
_network_mysqld_proto_get_ok_packet:    ; @network_mysqld_proto_get_ok_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x21, _CLIENT_PROTOCOL_41@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF]
	ldr	w22, [x21]
	add	x1, sp, #40
	bl	_network_mysqld_proto_get_int8
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_4
LBB0_2:
	ldr	x2, [sp, #40]
	cbz	x2, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_critical
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	add	x1, sp, #32
	mov	x0, x20
	bl	_network_mysqld_proto_get_lenenc_int
	cbnz	x0, LBB0_1
; %bb.6:
	add	x1, sp, #24
	mov	x0, x20
	bl	_network_mysqld_proto_get_lenenc_int
	cbnz	x0, LBB0_1
; %bb.7:
	add	x1, sp, #16
	mov	x0, x20
	bl	_network_mysqld_proto_get_int16
	ldr	w8, [x21]
	and	w8, w8, w22
	cmp	w8, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_10
; %bb.8:
	cmp	w8, #0
	ccmp	x0, #0, #0, eq
	b.ne	LBB0_1
; %bb.9:
	mov	x8, #0
	b	LBB0_12
LBB0_10:
	add	x1, sp, #8
	mov	x0, x20
	bl	_network_mysqld_proto_get_int16
	cbnz	x0, LBB0_1
; %bb.11:
	ldr	x8, [sp, #8]
LBB0_12:
	mov	w0, #0
	ldp	x10, x9, [sp, #24]
	stp	x10, x9, [x19, #16]
	ldr	x9, [sp, #16]
	stp	x8, x9, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ; @CLIENT_PROTOCOL_41
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: expected the first byte to be 0, got %d"

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