	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LenEnc_Encode
_LenEnc_Encode:                         ## @LenEnc_Encode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_kLenNumLowSymbols@GOTPCREL(%rip), %r13
	leaq	24(%rdi), %rsi
	cmpq	%rdx, (%r13)
	jle	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_RangeEnc_EncodeBit
	movq	_kLenNumLowBits@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	shlq	%cl, %rbx
	addq	32(%r12), %rbx
	jmp	LBB0_2
LBB0_4:
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_RangeEnc_EncodeBit
	movq	_kLenNumMidSymbols@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	addq	(%r13), %rax
	leaq	8(%r12), %rsi
	movq	%r14, %rdi
	cmpq	%r15, %rax
	jle	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	callq	_RangeEnc_EncodeBit
	movq	_kLenNumMidBits@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	shlq	%cl, %rbx
	addq	16(%r12), %rbx
	subq	(%r13), %r15
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rcx, %rdx
	jmp	LBB0_3
LBB0_6:
	movl	$1, %edx
	movq	%rcx, %rbx
	callq	_RangeEnc_EncodeBit
	movq	(%r12), %rsi
	movq	_kLenNumHighBits@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%r13), %rax
	addq	(%rbx), %rax
	subq	%rax, %r15
	movq	%r14, %rdi
LBB0_3:
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RcTree_Encode                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kLenNumLowSymbols,8,3          ## @kLenNumLowSymbols
	.comm	_kLenNumLowBits,8,3             ## @kLenNumLowBits
	.comm	_kLenNumMidSymbols,8,3          ## @kLenNumMidSymbols
	.comm	_kLenNumMidBits,8,3             ## @kLenNumMidBits
	.comm	_kLenNumHighBits,8,3            ## @kLenNumHighBits
	.no_dead_strip	_LenEnc_Encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LenEnc_Encode
_LenEnc_Encode:                         ; @LenEnc_Encode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _kLenNumLowSymbols@GOTPAGE
Lloh1:
	ldr	x23, [x23, _kLenNumLowSymbols@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x1, x0, #24
	mov	x0, x20
	cmp	x8, x2
	b.le	LBB0_2
; %bb.1:
	mov	w2, #0
	bl	_RangeEnc_EncodeBit
	ldr	x8, [x22, #32]
Lloh2:
	adrp	x9, _kLenNumLowBits@GOTPAGE
Lloh3:
	ldr	x9, [x9, _kLenNumLowBits@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x9]
	lsl	x9, x21, x2
	add	x1, x9, x8
	mov	x0, x20
	mov	x3, x19
	b	LBB0_6
LBB0_2:
	mov	w2, #1
	bl	_RangeEnc_EncodeBit
	ldr	x8, [x23]
Lloh5:
	adrp	x24, _kLenNumMidSymbols@GOTPAGE
Lloh6:
	ldr	x24, [x24, _kLenNumMidSymbols@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x22, #8
	add	x8, x9, x8
	mov	x0, x20
	cmp	x8, x19
	b.le	LBB0_4
; %bb.3:
	mov	w2, #0
	bl	_RangeEnc_EncodeBit
	ldr	x8, [x22, #16]
Lloh7:
	adrp	x9, _kLenNumMidBits@GOTPAGE
Lloh8:
	ldr	x9, [x9, _kLenNumMidBits@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x9]
	lsl	x9, x21, x2
	add	x1, x9, x8
	ldr	x8, [x23]
	b	LBB0_5
LBB0_4:
	mov	w2, #1
	bl	_RangeEnc_EncodeBit
	ldr	x1, [x22]
Lloh10:
	adrp	x8, _kLenNumHighBits@GOTPAGE
Lloh11:
	ldr	x8, [x8, _kLenNumHighBits@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	ldr	x8, [x23]
	ldr	x9, [x24]
	add	x8, x8, x9
LBB0_5:
	sub	x3, x19, x8
	mov	x0, x20
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RcTree_Encode
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_kLenNumLowSymbols,8,3          ; @kLenNumLowSymbols
	.comm	_kLenNumLowBits,8,3             ; @kLenNumLowBits
	.comm	_kLenNumMidSymbols,8,3          ; @kLenNumMidSymbols
	.comm	_kLenNumMidBits,8,3             ; @kLenNumMidBits
	.comm	_kLenNumHighBits,8,3            ; @kLenNumHighBits
	.no_dead_strip	_LenEnc_Encode
.subsections_via_symbols
