	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_dist_prices
_fill_dist_prices:                      ## @fill_dist_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DIST_STATES@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	xorl	%r15d, %r15d
	movq	_DIST_MODEL_START@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	_DIST_STATES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jae	LBB0_2
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %r12
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	movq	_DIST_SLOT_BITS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r14), %rax
	movl	(%rax,%r15,4), %edi
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	_rc_bittree_price
	movq	%rax, (%r12,%rbx,8)
	incq	%rbx
	movq	8(%r14), %rax
	cmpq	%rax, %rbx
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_DIST_MODEL_END@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rax, %rbx
	movq	_DIST_MODEL_START@GOTPCREL(%rip), %r13
	movq	_ALIGN_BITS@GOTPCREL(%rip), %rcx
	jae	LBB0_9
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rax
	shrq	%rax
	movq	(%rcx), %rdi
	notq	%rdi
	addq	%rax, %rdi
	callq	_rc_direct_price
	movq	_ALIGN_BITS@GOTPCREL(%rip), %rcx
	addq	%rax, (%r12,%rbx,8)
	incq	%rbx
	cmpq	8(%r14), %rbx
	jb	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r13)
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12,%rcx,8), %rdx
	movq	%rdx, (%rax,%rcx,8)
	incq	%rcx
	movq	(%r13), %rbx
	cmpq	%rbx, %rcx
	jb	LBB0_13
	jmp	LBB0_11
LBB0_1:
	movq	_DIST_MODEL_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	movq	_FULL_DISTANCES@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rbx
	movq	_DIST_STATES@GOTPCREL(%rip), %r13
	jb	LBB0_14
LBB0_3:
	movq	$0, 32(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jae	LBB0_3
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%rbx, %rdi
	callq	_get_dist_slot
	movq	%rax, %r15
	movq	%rax, %rcx
	shrq	%rcx
	decq	%rcx
	andl	$1, %eax
	orq	$2, %rax
	shlq	%cl, %rax
	movq	%r15, %rdi
	notq	%rdi
	addq	24(%r14), %rdi
	addq	%rax, %rdi
	movq	%rbx, %rdx
	subq	%rax, %rdx
	movq	%rcx, %rsi
	callq	_rc_bittree_reverse_price
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %r8
	movq	16(%r14), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r8,%rsi,8), %rdi
	movq	(%rdi,%r15,8), %rdi
	addq	%rax, %rdi
	movq	(%rdx,%rsi,8), %rcx
	movq	%rdi, (%rcx,%rbx,8)
	incq	%rsi
	cmpq	(%r13), %rsi
	jb	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_DIST_STATES,8,3                ## @DIST_STATES
	.comm	_DIST_SLOT_BITS,4,2             ## @DIST_SLOT_BITS
	.comm	_DIST_MODEL_END,8,3             ## @DIST_MODEL_END
	.comm	_ALIGN_BITS,8,3                 ## @ALIGN_BITS
	.comm	_DIST_MODEL_START,8,3           ## @DIST_MODEL_START
	.comm	_FULL_DISTANCES,8,3             ## @FULL_DISTANCES
	.no_dead_strip	_fill_dist_prices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_dist_prices
_fill_dist_prices:                      ; @fill_dist_prices
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x22, _DIST_STATES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DIST_STATES@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x23, _DIST_MODEL_START@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DIST_MODEL_START@GOTPAGEOFF]
Lloh4:
	adrp	x24, _DIST_SLOT_BITS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DIST_SLOT_BITS@GOTPAGEOFF]
Lloh6:
	adrp	x25, _DIST_MODEL_END@GOTPAGE
Lloh7:
	ldr	x25, [x25, _DIST_MODEL_END@GOTPAGEOFF]
Lloh8:
	adrp	x26, _ALIGN_BITS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ALIGN_BITS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	ldp	x8, x9, [x19]
	ldr	x27, [x8, x21, lsl #3]
	cbz	x9, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x21, lsl #2]
	ldr	w1, [x24]
	mov	x2, x20
	bl	_rc_bittree_price
	str	x0, [x27, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.lo	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x25]
	cmp	x20, x8
	b.hs	LBB0_9
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	mvn	x8, x8
	add	x0, x8, x20, lsr #1
	bl	_rc_direct_price
	lsl	x8, x20, #3
	ldr	x9, [x27, x8]
	add	x9, x9, x0
	str	x9, [x27, x8]
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.lo	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x21, lsl #3]
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x10, x8, #3
	ldr	x11, [x27, x10]
	str	x11, [x9, x10]
	add	x8, x8, #1
	ldr	x20, [x23]
	cmp	x8, x20
	b.lo	LBB0_11
	b	LBB0_3
LBB0_12:
Lloh10:
	adrp	x8, _DIST_MODEL_START@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIST_MODEL_START@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
LBB0_13:
Lloh13:
	adrp	x23, _FULL_DISTANCES@GOTPAGE
Lloh14:
	ldr	x23, [x23, _FULL_DISTANCES@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x20, #1
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x8, [x23]
	cmp	x20, x8
	b.hs	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	bl	_get_dist_slot
	mov	x21, x0
	lsr	x8, x0, #1
	sub	x1, x8, #1
	mov	w8, #2
	bfxil	x8, x0, #0, #1
	lsl	x8, x8, x1
	ldr	x9, [x19, #24]
	mvn	x10, x0
	add	x9, x9, x10
	add	x0, x9, x8
	sub	x2, x20, x8
	bl	_rc_bittree_reverse_price
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x8, #0
	ldr	x9, [x19]
	ldr	x10, [x19, #16]
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x11, x8, #3
	ldr	x12, [x9, x11]
	ldr	x12, [x12, x21, lsl #3]
	ldr	x11, [x10, x11]
	add	x12, x12, x0
	str	x12, [x11, x20, lsl #3]
	add	x8, x8, #1
	ldr	x11, [x22]
	cmp	x8, x11
	b.lo	LBB0_18
	b	LBB0_14
LBB0_19:
	str	xzr, [x19, #32]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DIST_STATES,8,3                ; @DIST_STATES
	.comm	_DIST_SLOT_BITS,4,2             ; @DIST_SLOT_BITS
	.comm	_DIST_MODEL_END,8,3             ; @DIST_MODEL_END
	.comm	_ALIGN_BITS,8,3                 ; @ALIGN_BITS
	.comm	_DIST_MODEL_START,8,3           ; @DIST_MODEL_START
	.comm	_FULL_DISTANCES,8,3             ; @FULL_DISTANCES
	.no_dead_strip	_fill_dist_prices
.subsections_via_symbols
