	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_gstring ## -- Begin function network_mysqld_proto_get_gstring
	.p2align	4, 0x90
_network_mysqld_proto_get_gstring:      ## @network_mysqld_proto_get_gstring
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rdx
	movq	(%rdx), %rcx
	cmpq	%rax, %rcx
	jle	LBB0_13
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rdx), %rdx
	cmpb	$0, (%rdx,%rax)
	je	LBB0_2
## %bb.3:
	incq	%rdx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	incq	%rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rsi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	decq	%rbx
	cmpb	$0, (%rdx,%rax)
	leaq	1(%rdx), %rdx
	jne	LBB0_5
## %bb.7:
	subq	%rbx, %rax
	negq	%rbx
	jmp	LBB0_8
LBB0_13:
	movl	$-1, %r12d
	jne	LBB0_11
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
LBB0_8:
	movl	$-1, %r12d
	cmpq	%rcx, %rax
	je	LBB0_12
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movl	$1, %edi
	callq	_g_assert
	movq	(%r15), %rax
	addq	%rbx, %rax
	movq	8(%r15), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setle	%dil
	callq	_g_assert
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_network_mysqld_proto_get_gstring_len
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_network_mysqld_proto_skip
	xorl	%r12d, %r12d
	negq	%rax
	sbbl	%r12d, %r12d
	jmp	LBB0_12
LBB0_6:
	movl	$-1, %r12d
LBB0_12:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_gstring ; -- Begin function network_mysqld_proto_get_gstring
	.p2align	2
_network_mysqld_proto_get_gstring:      ; @network_mysqld_proto_get_gstring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x8, x10, [x0]
	ldr	x9, [x10]
	cmp	x9, x8
	b.le	LBB0_6
; %bb.1:
	mov	x20, x1
	ldr	x10, [x10, #8]
	ldrb	w11, [x10, x8]
	cbz	w11, LBB0_8
; %bb.2:
	mov	x21, #0
	add	x10, x10, x8
	add	x10, x10, #1
	sub	x11, x8, x9
	add	x11, x11, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmn	x11, x21
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w12, [x10, x21]
	add	x21, x21, #1
	cbnz	w12, LBB0_3
; %bb.5:
	add	x8, x8, x21
	cmp	x8, x9
	b.eq	LBB0_11
	b	LBB0_9
LBB0_6:
	b.eq	LBB0_11
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_network_mysqld_proto_skip
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_12
LBB0_8:
	mov	x21, #0
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_9:
	cbz	x21, LBB0_7
; %bb.10:
	mov	w0, #1
	bl	_g_assert
	ldp	x8, x9, [x19]
	ldr	x9, [x9]
	add	x8, x8, x21
	cmp	x8, x9
	cset	w0, le
	bl	_g_assert
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_network_mysqld_proto_get_gstring_len
	cbz	x0, LBB0_7
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
