	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_string ## -- Begin function network_mysqld_proto_get_string
	.p2align	4, 0x90
_network_mysqld_proto_get_string:       ## @network_mysqld_proto_get_string
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	8(%r14), %rax
	movq	(%rax), %r8
	movq	8(%rax), %rbx
	leaq	(%rbx,%rdi), %r10
	movq	%r8, %rdx
	subq	%rdi, %rdx
	jle	LBB0_15
## %bb.1:
	cmpb	$0, (%r10)
	je	LBB0_2
## %bb.3:
	incq	%rbx
	movq	%rdi, %rcx
	subq	%r8, %rcx
	incq	%rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	decq	%rax
	cmpb	$0, (%rbx,%rdi)
	leaq	1(%rbx), %rbx
	jne	LBB0_5
## %bb.7:
	movq	%rdi, %r9
	subq	%rax, %r9
	negq	%rax
	movq	%rax, %rdx
	jmp	LBB0_8
LBB0_15:
	movl	$-1, %ebx
	cmpb	$0, (%r10)
	jne	LBB0_14
	jmp	LBB0_13
LBB0_2:
	xorl	%edx, %edx
	movq	%rdi, %r9
	jmp	LBB0_8
LBB0_6:
	movq	%r8, %r9
LBB0_8:
	movl	$-1, %ebx
	cmpb	$0, (%r10,%rdx)
	jne	LBB0_14
## %bb.9:
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.10:
	cmpq	%rdi, %r8
	jle	LBB0_14
## %bb.11:
	cmpq	%r8, %r9
	jg	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_network_mysqld_proto_get_string_len
	testq	%rax, %rax
	jne	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_network_mysqld_proto_skip
	xorl	%ebx, %ebx
	negq	%rax
	sbbl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_string ; -- Begin function network_mysqld_proto_get_string
	.p2align	2
_network_mysqld_proto_get_string:       ; @network_mysqld_proto_get_string
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x9, x10, [x0]
	ldp	x8, x12, [x10]
	add	x10, x12, x9
	subs	x11, x8, x9
	b.le	LBB0_6
; %bb.1:
	ldrb	w13, [x10]
	cbz	w13, LBB0_7
; %bb.2:
	mov	x2, #0
	add	x12, x12, x9
	add	x12, x12, #1
	sub	x13, x9, x8
	add	x13, x13, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x13, x2
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w14, [x12, x2]
	add	x2, x2, #1
	cbnz	w14, LBB0_3
; %bb.5:
	add	x11, x9, x2
	ldrb	w10, [x10, x2]
	cbnz	w10, LBB0_13
	b	LBB0_9
LBB0_6:
	ldrb	w8, [x10]
	cbnz	w8, LBB0_13
	b	LBB0_14
LBB0_7:
	mov	x2, #0
	mov	x11, x9
	ldrb	w10, [x10, x2]
	cbnz	w10, LBB0_13
	b	LBB0_9
LBB0_8:
	mov	x2, x11
	mov	x11, x8
	ldrb	w10, [x10, x2]
	cbnz	w10, LBB0_13
LBB0_9:
	cbz	x2, LBB0_14
; %bb.10:
	mov	w0, #-1
	cmp	x8, x9
	b.le	LBB0_15
; %bb.11:
	cmp	x11, x8
	b.gt	LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_network_mysqld_proto_get_string_len
	cbz	x0, LBB0_14
LBB0_13:
	mov	w0, #-1
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	bl	_network_mysqld_proto_skip
	cmp	x0, #0
	csetm	w0, ne
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
