	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function length
_length:                                ## @length
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rcx, (%rax)
	setge	%dil
	callq	_assert
	movq	_MATCH_LEN_MIN@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	_LEN_LOW_SYMBOLS@GOTPCREL(%rip), %r15
	leaq	24(%r12), %rsi
	cmpq	(%r15), %rbx
	jge	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rc_bit
	movq	32(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	_LEN_LOW_BITS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_rc_bit
	subq	(%r15), %rbx
	movq	_LEN_MID_SYMBOLS@GOTPCREL(%rip), %r15
	leaq	12(%r12), %rsi
	cmpq	(%r15), %rbx
	jge	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rc_bit
	movq	16(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	_LEN_MID_BITS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_rc_bit
	subq	(%r15), %rbx
	movl	8(%r12), %esi
	movq	_LEN_HIGH_BITS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_rc_bittree
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	decq	(%rax,%r14,8)
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_length_update_prices           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MATCH_LEN_MAX,8,3              ## @MATCH_LEN_MAX
	.comm	_MATCH_LEN_MIN,8,3              ## @MATCH_LEN_MIN
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function length
_length:                                ; @length
	.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, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MATCH_LEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MATCH_LEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
	cset	w0, ge
	bl	_assert
Lloh3:
	adrp	x8, _MATCH_LEN_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MATCH_LEN_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x24, _LEN_LOW_SYMBOLS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _LEN_LOW_SYMBOLS@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x20, #24
	sub	x23, x23, x8
	mov	x0, x22
	cmp	x23, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w2, #0
	bl	_rc_bit
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x19, lsl #2]
Lloh8:
	adrp	x8, _LEN_LOW_BITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LEN_LOW_BITS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	w2, #1
	bl	_rc_bit
	ldr	x8, [x24]
Lloh10:
	adrp	x24, _LEN_MID_SYMBOLS@GOTPAGE
Lloh11:
	ldr	x24, [x24, _LEN_MID_SYMBOLS@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x20, #12
	sub	x23, x23, x8
	mov	x0, x22
	cmp	x23, x9
	b.ge	LBB0_5
; %bb.3:
	mov	w2, #0
	bl	_rc_bit
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x19, lsl #2]
Lloh12:
	adrp	x8, _LEN_MID_BITS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LEN_MID_BITS@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x23
	bl	_rc_bittree
	cbnz	w21, LBB0_7
	b	LBB0_6
LBB0_5:
	mov	w2, #1
	bl	_rc_bit
	ldr	x8, [x24]
	sub	x3, x23, x8
	ldr	w1, [x20, #8]
Lloh14:
	adrp	x8, _LEN_HIGH_BITS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LEN_HIGH_BITS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_rc_bittree
	cbnz	w21, LBB0_7
LBB0_6:
	ldr	x8, [x20]
	lsl	x9, x19, #3
	ldr	x10, [x8, x9]
	subs	x10, x10, #1
	str	x10, [x8, x9]
	b.eq	LBB0_8
LBB0_7:
	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
	ret
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	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	_length_update_prices
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MATCH_LEN_MAX,8,3              ; @MATCH_LEN_MAX
	.comm	_MATCH_LEN_MIN,8,3              ; @MATCH_LEN_MIN
	.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
.subsections_via_symbols
