	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_lenenc_int ## -- Begin function network_mysqld_proto_get_lenenc_int
	.p2align	4, 0x90
_network_mysqld_proto_get_lenenc_int:   ## @network_mysqld_proto_get_lenenc_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdx
	movq	8(%rdi), %rcx
	movq	(%rcx), %rax
	movl	$-1, %ebx
	cmpq	%rax, %rdx
	jae	LBB0_13
## %bb.1:
	movq	8(%rcx), %r8
	movzbl	(%r8,%rdx), %ecx
	cmpl	$250, %ecx
	ja	LBB0_3
## %bb.2:
	movq	%rdx, %r9
LBB0_12:
	incq	%r9
	movq	%r9, (%rdi)
	movl	%ecx, (%rsi)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	cmpb	$-2, %cl
	je	LBB0_11
## %bb.4:
	cmpb	$-3, %cl
	je	LBB0_8
## %bb.5:
	cmpb	$-4, %cl
	jne	LBB0_10
## %bb.6:
	leaq	2(%rdx), %r9
	cmpq	%rax, %r9
	jae	LBB0_13
## %bb.7:
	movzwl	1(%rdx,%r8), %ecx
	jmp	LBB0_12
LBB0_11:
	addq	$8, %rdx
	movq	%rdx, %r9
                                        ## implicit-def: $ecx
	cmpq	%rax, %rdx
	jb	LBB0_12
	jmp	LBB0_13
LBB0_8:
	leaq	3(%rdx), %r9
	cmpq	%rax, %r9
	jae	LBB0_13
## %bb.9:
	movzwl	1(%r8,%rdx), %eax
	movzbl	3(%r8,%rdx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	jmp	LBB0_12
LBB0_10:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_g_critical
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bytestream[%d] is %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_lenenc_int ; -- Begin function network_mysqld_proto_get_lenenc_int
	.p2align	2
_network_mysqld_proto_get_lenenc_int:   ; @network_mysqld_proto_get_lenenc_int
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldp	x2, x8, [x0]
	ldr	x9, [x8]
	cmp	x2, x9
	b.hs	LBB0_14
; %bb.1:
	ldr	x8, [x8, #8]
	ldrb	w3, [x8, x2]
	cmp	w3, #250
	b.ls	LBB0_12
; %bb.2:
	cmp	w3, #254
	b.eq	LBB0_7
; %bb.3:
	cmp	w3, #253
	b.eq	LBB0_9
; %bb.4:
	cmp	w3, #252
	b.ne	LBB0_13
; %bb.5:
	add	x10, x2, #2
	cmp	x10, x9
	b.hs	LBB0_14
; %bb.6:
	add	x9, x2, x8
	ldrb	w3, [x9, #1]
	ldrb	w8, [x8, x10]
	bfi	w3, w8, #8, #8
	b	LBB0_11
LBB0_7:
	add	x2, x2, #8
	cmp	x2, x9
	b.hs	LBB0_14
; %bb.8:
                                        ; implicit-def: $w3
	b	LBB0_12
LBB0_9:
	add	x10, x2, #3
	cmp	x10, x9
	b.hs	LBB0_14
; %bb.10:
	add	x9, x2, x8
	ldurh	w3, [x9, #1]
	ldrb	w8, [x8, x10]
	bfi	w3, w8, #16, #8
LBB0_11:
	mov	x2, x10
LBB0_12:
	mov	w8, #0
	add	x9, x2, #1
	str	x9, [x0]
	str	w3, [x1]
	b	LBB0_15
LBB0_13:
Lloh0:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_critical
LBB0_14:
	mov	w8, #-1
LBB0_15:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bytestream[%d] is %d"

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