	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_err_packet ## -- Begin function network_mysqld_proto_get_err_packet
	.p2align	4, 0x90
_network_mysqld_proto_get_err_packet:   ## @network_mysqld_proto_get_err_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, %r15
	movq	$0, -56(%rbp)
	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, %ebx
	testq	%rax, %rax
	jne	LBB0_19
## %bb.1:
	movq	-80(%rbp), %rdx
	movq	_MYSQLD_PACKET_ERR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.3:
	leaq	-60(%rbp), %rsi
	movq	%r15, %rdi
	callq	_network_mysqld_proto_get_int16
	testq	%rax, %rax
	setne	%dl
	movl	(%r13), %esi
	testl	%r12d, %esi
	setne	%cl
	orb	%dl, %cl
	testl	%r12d, %esi
	je	LBB0_8
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_network_mysqld_proto_get_int8
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	cmpq	$35, -72(%rbp)
	jne	LBB0_8
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	$5, %edx
	callq	_network_mysqld_proto_get_string_len
	testq	%rax, %rax
	setne	%cl
LBB0_8:
	movq	(%r15), %rax
	movq	8(%r15), %rdx
	movq	(%rdx), %rdx
	cmpq	%rax, %rdx
	jle	LBB0_11
## %bb.9:
	testb	%cl, %cl
	jne	LBB0_11
## %bb.10:
	subl	%eax, %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_network_mysqld_proto_get_string_len
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_12
LBB0_2:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_g_critical
	jmp	LBB0_19
LBB0_11:
	cmpq	%rax, %rdx
	setg	%al
	orb	%cl, %al
	movl	$-1, %ebx
	jne	LBB0_15
LBB0_12:
	movl	-60(%rbp), %eax
	movl	%eax, 8(%r14)
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movl	4(%r14), %edi
	callq	_g_string_assign
LBB0_14:
	movl	(%r14), %edi
	movq	-56(%rbp), %rsi
	callq	_g_string_assign
	xorl	%ebx, %ebx
LBB0_15:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_g_free
LBB0_17:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_g_free
LBB0_19:
	movl	%ebx, %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
	.comm	_MYSQLD_PACKET_ERR,8,3          ## @MYSQLD_PACKET_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: expected the first byte to be 0xff, 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_err_packet ; -- Begin function network_mysqld_proto_get_err_packet
	.p2align	2
_network_mysqld_proto_get_err_packet:   ; @network_mysqld_proto_get_err_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
	stp	xzr, 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
; %bb.1:
	mov	w19, #-1
	b	LBB0_16
LBB0_2:
	ldr	x2, [sp, #40]
Lloh2:
	adrp	x8, _MYSQLD_PACKET_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MYSQLD_PACKET_ERR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_5
; %bb.3:
	add	x1, sp, #28
	mov	x0, x20
	bl	_network_mysqld_proto_get_int16
	cmp	x0, #0
	cset	w8, ne
	ldr	w9, [x21]
	ands	w10, w9, w22
	cset	w9, ne
	cmp	w10, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_6
; %bb.4:
	orr	w8, w9, w8
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_critical
	mov	w19, #-1
	b	LBB0_16
LBB0_6:
	add	x1, sp, #32
	mov	x0, x20
	bl	_network_mysqld_proto_get_int8
	mov	w8, #1
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	x9, [sp, #32]
	cmp	x9, #35
	b.ne	LBB0_9
; %bb.8:
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #5
	bl	_network_mysqld_proto_get_string_len
	cmp	x0, #0
	cset	w8, ne
LBB0_9:
	ldp	x9, x10, [x20]
	ldr	x10, [x10]
	cmp	x10, x9
	b.le	LBB0_17
; %bb.10:
	tbnz	w8, #0, LBB0_17
; %bb.11:
	sub	w2, w10, w9
	add	x1, sp, #8
	mov	x0, x20
	bl	_network_mysqld_proto_get_string_len
	cbz	x0, LBB0_18
LBB0_12:
	mov	w19, #-1
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_14
LBB0_13:
	bl	_g_free
LBB0_14:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_g_free
LBB0_16:
	mov	x0, x19
	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_17:
	cmp	x10, x9
	cset	w9, gt
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_12
LBB0_18:
	ldr	w8, [sp, #28]
	str	w8, [x19, #8]
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_20
; %bb.19:
	ldr	w0, [x19, #4]
	bl	_g_string_assign
LBB0_20:
	ldr	w0, [x19]
	ldr	x1, [sp, #16]
	bl	_g_string_assign
	mov	w19, #0
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ; @CLIENT_PROTOCOL_41
	.comm	_MYSQLD_PACKET_ERR,8,3          ; @MYSQLD_PACKET_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: expected the first byte to be 0xff, got %d"

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