	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_gstring_len ## -- Begin function network_mysqld_proto_get_gstring_len
	.p2align	4, 0x90
_network_mysqld_proto_get_gstring_len:  ## @network_mysqld_proto_get_gstring_len
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_g_string_truncate
	testq	%r15, %r15
	je	LBB0_6
## %bb.3:
	movq	(%r14), %rsi
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rsi
	setge	%dl
	leaq	(%rsi,%r15), %rdi
	cmpq	%rcx, %rdi
	setg	%bl
	orb	%dl, %bl
	jne	LBB0_5
## %bb.4:
	addq	8(%rax), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_g_string_append_len
	addq	%r15, (%r14)
LBB0_5:
	movzbl	%bl, %ebx
	negl	%ebx
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %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_len ; -- Begin function network_mysqld_proto_get_gstring_len
	.p2align	2
_network_mysqld_proto_get_gstring_len:  ; @network_mysqld_proto_get_gstring_len
	.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
	cbz	x2, LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	mov	w1, #0
	bl	_g_string_truncate
	cbz	x20, LBB0_6
; %bb.2:
	ldp	x8, x9, [x19]
	ldr	x10, [x9]
	cmp	x8, x10
	add	x11, x8, x20
	ccmp	x11, x10, #0, lt
	cset	w22, gt
	b.gt	LBB0_4
; %bb.3:
	ldr	x9, [x9, #8]
	add	x1, x9, x8
	mov	x0, x21
	mov	x2, x20
	bl	_g_string_append_len
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x8, [x19]
LBB0_4:
	sbfx	w0, w22, #0, #1
	b	LBB0_7
LBB0_5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
