	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_eof_packet ## -- Begin function network_mysqld_proto_get_eof_packet
	.p2align	4, 0x90
_network_mysqld_proto_get_eof_packet:   ## @network_mysqld_proto_get_eof_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	$24, %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	_CLIENT_PROTOCOL_41@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	leaq	-64(%rbp), %rsi
	callq	_network_mysqld_proto_get_int8
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	-64(%rbp), %rdx
	movq	_MYSQLD_PACKET_EOF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_2
## %bb.3:
	testl	%r13d, (%r12)
	je	LBB0_7
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int16
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int16
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	-56(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_2:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_g_critical
	jmp	LBB0_9
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %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_EOF,8,3          ## @MYSQLD_PACKET_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: expected the first byte to be 0xfe, 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_eof_packet ; -- Begin function network_mysqld_proto_get_eof_packet
	.p2align	2
_network_mysqld_proto_get_eof_packet:   ; @network_mysqld_proto_get_eof_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _CLIENT_PROTOCOL_41@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CLIENT_PROTOCOL_41@GOTPAGEOFF]
	ldr	w22, [x21]
	add	x1, sp, #24
	bl	_network_mysqld_proto_get_int8
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_9
LBB0_2:
	ldr	x2, [sp, #24]
Lloh2:
	adrp	x8, _MYSQLD_PACKET_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MYSQLD_PACKET_EOF@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x21]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_network_mysqld_proto_get_int16
	cbnz	x0, LBB0_1
; %bb.5:
	add	x1, sp, #16
	mov	x0, x20
	bl	_network_mysqld_proto_get_int16
	cbnz	x0, LBB0_1
; %bb.6:
	ldp	x9, x8, [sp, #8]
	stp	x9, x8, [x19]
	b	LBB0_9
LBB0_7:
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	w0, #-1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	stp	xzr, xzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.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_EOF,8,3          ; @MYSQLD_PACKET_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: expected the first byte to be 0xfe, got %d"

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