	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_lenenc_string ## -- Begin function network_mysqld_proto_get_lenenc_string
	.p2align	4, 0x90
_network_mysqld_proto_get_lenenc_string: ## @network_mysqld_proto_get_lenenc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rdi
	cmpq	(%rdi), %rax
	jge	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r14
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_lenenc_int
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.3:
	movq	-32(%rbp), %rdx
	movq	(%rbx), %rcx
	addq	%rdx, %rcx
	movq	8(%rbx), %rsi
	cmpq	(%rsi), %rcx
	jg	LBB0_7
## %bb.4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movq	%rdx, (%r15)
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_network_mysqld_proto_get_string_len
	jmp	LBB0_7
LBB0_1:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_S
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_g_debug_hexdump
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_lenenc_string ; -- Begin function network_mysqld_proto_get_lenenc_string
	.p2align	2
_network_mysqld_proto_get_lenenc_string: ; @network_mysqld_proto_get_lenenc_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldp	x8, x0, [x0]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	add	x1, sp, #8
	mov	x0, x20
	bl	_network_mysqld_proto_get_lenenc_int
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	x2, [sp, #8]
	ldp	x8, x9, [x20]
	ldr	x9, [x9]
	add	x8, x2, x8
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
	str	x2, [x21]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_network_mysqld_proto_get_string_len
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_S
	mov	x1, x0
	mov	x0, x19
	bl	_g_debug_hexdump
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
.subsections_via_symbols
