	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function length_update_prices
_length_update_prices:                  ## @length_update_prices
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	%r14, (%rax,%rsi,8)
	movl	52(%rdi), %edi
	callq	_rc_bit_0_price
	movq	%rax, %r13
	movl	52(%r15), %edi
	callq	_rc_bit_1_price
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	48(%r15), %edi
	callq	_rc_bit_0_price
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	48(%r15), %edi
	callq	_rc_bit_1_price
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %r12
	xorl	%ebx, %ebx
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	movq	_LEN_LOW_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_rc_bittree_price
	addq	%r13, %rax
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r14, %rbx
	jae	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	cmpq	%r14, %rbx
	jae	LBB0_5
## %bb.6:
	movq	_LEN_MID_SYMBOLS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rbx
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %r8
	jae	LBB0_7
## %bb.9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	-1(%r14), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %edi
	movq	_LEN_MID_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdx
	subq	%rax, %rdx
	callq	_rc_bittree_price
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, (%r12,%rbx,8)
	cmpq	%rbx, %r13
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	movq	(%r8), %rax
	movq	_LEN_MID_SYMBOLS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rbx
	jb	LBB0_10
	jmp	LBB0_12
LBB0_5:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %r8
LBB0_12:
	cmpq	%r14, %rbx
	jb	LBB0_13
	jmp	LBB0_15
LBB0_7:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%r14, %rbx
	jae	LBB0_15
LBB0_13:
	addq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %edi
	movq	_LEN_HIGH_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LEN_MID_SYMBOLS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r8), %rax
	movq	%rdx, %r13
	movq	%rbx, %rdx
	subq	%rax, %rdx
	callq	_rc_bittree_price
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %r8
	movq	%r13, %rdx
	addq	%r13, %rax
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_14
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LEN_LOW_SYMBOLS,8,3            ## @LEN_LOW_SYMBOLS
	.comm	_LEN_LOW_BITS,4,2               ## @LEN_LOW_BITS
	.comm	_LEN_MID_SYMBOLS,8,3            ## @LEN_MID_SYMBOLS
	.comm	_LEN_MID_BITS,4,2               ## @LEN_MID_BITS
	.comm	_LEN_HIGH_BITS,4,2              ## @LEN_HIGH_BITS
	.no_dead_strip	_length_update_prices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function length_update_prices
_length_update_prices:                  ; @length_update_prices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldp	x26, x8, [x0]
	lsl	x22, x1, #3
	str	x26, [x8, x22]
	ldr	w0, [x0, #52]
	bl	_rc_bit_0_price
	mov	x25, x0
	ldr	w0, [x19, #52]
	bl	_rc_bit_1_price
	mov	x23, x0
	ldr	w0, [x19, #48]
	bl	_rc_bit_0_price
	mov	x24, x0
	ldr	w0, [x19, #48]
	bl	_rc_bit_1_price
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x20, #0
	ldr	x8, [x19, #16]
	ldr	x27, [x8, x22]
Lloh0:
	adrp	x28, _LEN_LOW_SYMBOLS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _LEN_LOW_SYMBOLS@GOTPAGEOFF]
	ldr	x8, [x28]
	cbz	x26, LBB0_5
; %bb.1:
	cbz	x8, LBB0_5
; %bb.2:
	mov	x20, #0
Lloh2:
	adrp	x22, _LEN_LOW_BITS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LEN_LOW_BITS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [x22]
	mov	x2, x20
	bl	_rc_bittree_price
	add	x8, x0, x25
	str	x8, [x27, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x28]
	cmp	x20, x26
	b.hs	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, x8
	b.lo	LBB0_3
LBB0_5:
	cmp	x20, x26
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b.hs	LBB0_10
; %bb.6:
Lloh4:
	adrp	x25, _LEN_MID_SYMBOLS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LEN_MID_SYMBOLS@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x9, x9, x8
	cmp	x20, x9
	b.hs	LBB0_10
; %bb.7:
	add	x24, x24, x23
	sub	x23, x26, #1
Lloh6:
	adrp	x22, _LEN_MID_BITS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LEN_MID_BITS@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	ldr	w0, [x9, x21, lsl #2]
	ldr	w1, [x22]
	sub	x2, x20, x8
	bl	_rc_bittree_price
	add	x8, x24, x0
	str	x8, [x27, x20, lsl #3]
	cmp	x23, x20
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldr	x8, [x28]
	ldr	x9, [x25]
	add	x9, x9, x8
	cmp	x20, x9
	b.lo	LBB0_8
LBB0_10:
	cmp	x20, x26
	b.hs	LBB0_13
; %bb.11:
	ldp	x9, x8, [sp]                    ; 16-byte Folded Reload
	add	x21, x9, x8
Lloh8:
	adrp	x22, _LEN_HIGH_BITS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _LEN_HIGH_BITS@GOTPAGEOFF]
Lloh10:
	adrp	x23, _LEN_MID_SYMBOLS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _LEN_MID_SYMBOLS@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #24]
	ldr	w1, [x22]
	ldr	x8, [x28]
	ldr	x9, [x23]
	add	x8, x9, x8
	sub	x2, x20, x8
	bl	_rc_bittree_price
	add	x8, x21, x0
	str	x8, [x27, x20, lsl #3]
	add	x20, x20, #1
	cmp	x26, x20
	b.ne	LBB0_12
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LEN_LOW_SYMBOLS,8,3            ; @LEN_LOW_SYMBOLS
	.comm	_LEN_LOW_BITS,4,2               ; @LEN_LOW_BITS
	.comm	_LEN_MID_SYMBOLS,8,3            ; @LEN_MID_SYMBOLS
	.comm	_LEN_MID_BITS,4,2               ; @LEN_MID_BITS
	.comm	_LEN_HIGH_BITS,4,2              ; @LEN_HIGH_BITS
	.no_dead_strip	_length_update_prices
.subsections_via_symbols
