	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FillDistancesPrices
_FillDistancesPrices:                   ## @FillDistancesPrices
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_kNumFullDistances@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	%r12, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_kStartPosModelIndex@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	cmpl	%r12d, %r14d
	jge	LBB0_1
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_GetPosSlot1
	movl	%eax, %ecx
	sarl	%ecx
	decl	%ecx
	movl	%eax, %esi
	andl	$1, %esi
	orl	$2, %esi
	shll	%cl, %esi
	notl	%eax
	addl	(%r15), %eax
	leal	(%rax,%rsi), %edi
	movl	%r14d, %edx
	subl	%esi, %edx
	movl	40(%r15), %eax
	movl	%ecx, %esi
	movl	%eax, %ecx
	callq	_RcTree_ReverseGetPrice
	movl	%eax, (%rbx,%r14,4)
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jl	LBB0_20
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_kNumLenToPosStates@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.2:
	xorl	%r13d, %r13d
	movq	_kNumAlignBits@GOTPCREL(%rip), %rsi
	movq	_kNumBitPriceShiftBits@GOTPCREL(%rip), %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	movq	_kNumLenToPosStates@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	movq	_kNumAlignBits@GOTPCREL(%rip), %rsi
	movq	_kNumBitPriceShiftBits@GOTPCREL(%rip), %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %r12
	movl	16(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r15), %rax
	movq	(%rax,%r13,8), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_kNumPosSlotBits@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r15), %ecx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_RcTree_GetPrice
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	movslq	16(%r15), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_kNumAlignBits@GOTPCREL(%rip), %rsi
	movq	_kNumBitPriceShiftBits@GOTPCREL(%rip), %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_kEndPosModelIndex@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%ecx, %eax
	jge	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ecx
	sarl	%ecx
	movl	(%rsi), %edx
	notl	%edx
	addl	%ecx, %edx
	movzbl	(%rdi), %ecx
	shll	%cl, %edx
	addl	%edx, (%r12,%rax,4)
	incq	%rax
	movslq	16(%r15), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r13,8), %r14
	movq	_kStartPosModelIndex@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rax,4), %ecx
	movl	%ecx, (%r14,%rax,4)
	incq	%rax
	movslq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_18
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_kNumFullDistances@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_GetPosSlot1
	movl	(%r13,%rbx,4), %ecx
	addl	(%r12,%rax,4), %ecx
	movl	%ecx, (%r14,%rbx,4)
	incq	%rbx
	cmpl	%ebx, (%r15)
	jg	LBB0_13
	jmp	LBB0_14
LBB0_15:
	movq	$0, 32(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumFullDistances,4,2          ## @kNumFullDistances
	.comm	_kStartPosModelIndex,4,2        ## @kStartPosModelIndex
	.comm	_kNumLenToPosStates,4,2         ## @kNumLenToPosStates
	.comm	_kNumPosSlotBits,4,2            ## @kNumPosSlotBits
	.comm	_kEndPosModelIndex,4,2          ## @kEndPosModelIndex
	.comm	_kNumAlignBits,4,2              ## @kNumAlignBits
	.comm	_kNumBitPriceShiftBits,4,2      ## @kNumBitPriceShiftBits
	.no_dead_strip	_FillDistancesPrices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FillDistancesPrices
_FillDistancesPrices:                   ; @FillDistancesPrices
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x21, _kNumFullDistances@GOTPAGE
Lloh4:
	ldr	x21, [x21, _kNumFullDistances@GOTPAGEOFF]
	ldr	w12, [x21]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x24, _kStartPosModelIndex@GOTPAGE
Lloh8:
	ldr	x24, [x24, _kStartPosModelIndex@GOTPAGEOFF]
	ldrsw	x20, [x24]
	cmp	w20, w12
	b.ge	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GetPosSlot1
	asr	w8, w0, #1
	sub	w1, w8, #1
	mov	w8, #2
	bfxil	w8, w0, #0, #1
	lsl	w8, w8, w1
	ldr	w9, [x19]
	mvn	w10, w0
	add	w9, w9, w10
	add	w0, w9, w8
	sub	w2, w20, w8
	ldr	w3, [x19, #40]
	bl	_RcTree_ReverseGetPrice
	str	w0, [x23, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_1
LBB0_2:
Lloh9:
	adrp	x8, _kNumLenToPosStates@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kNumLenToPosStates@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.3:
	mov	x26, #0
Lloh12:
	adrp	x27, _kNumPosSlotBits@GOTPAGE
Lloh13:
	ldr	x27, [x27, _kNumPosSlotBits@GOTPAGEOFF]
Lloh14:
	adrp	x28, _kNumAlignBits@GOTPAGE
Lloh15:
	ldr	x28, [x28, _kNumAlignBits@GOTPAGEOFF]
Lloh16:
	adrp	x25, _kNumBitPriceShiftBits@GOTPAGE
Lloh17:
	ldr	x25, [x25, _kNumBitPriceShiftBits@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
Lloh18:
	adrp	x8, _kNumLenToPosStates@GOTPAGE
Lloh19:
	ldr	x8, [x8, _kNumLenToPosStates@GOTPAGEOFF]
Lloh20:
	ldrsw	x8, [x8]
	cmp	x26, x8
Lloh21:
	adrp	x24, _kStartPosModelIndex@GOTPAGE
Lloh22:
	ldr	x24, [x24, _kStartPosModelIndex@GOTPAGEOFF]
	b.ge	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	lsl	x8, x26, #3
	ldr	x9, [x19, #8]
	ldr	x22, [x9, x8]
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, #0
	ldr	x9, [x19, #48]
	ldr	x21, [x9, x8]
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x27]
	ldr	w3, [x19, #40]
	mov	x0, x21
	mov	x2, x20
	bl	_RcTree_GetPrice
	str	w0, [x22, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x9, [x19, #16]
	cmp	x20, x9
	b.lt	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x8, _kEndPosModelIndex@GOTPAGE
Lloh24:
	ldr	x8, [x8, _kEndPosModelIndex@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	cmp	w8, w9
	b.ge	LBB0_10
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x28]
	mvn	w9, w9
	add	w9, w9, w8, asr #1
	ldr	w10, [x25]
	lsl	w9, w9, w10
	lsl	x10, x8, #2
	ldr	w11, [x22, x10]
	add	w9, w11, w9
	str	w9, [x22, x10]
	add	x8, x8, #1
	ldrsw	x9, [x19, #16]
	cmp	x8, x9
	b.lt	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	ldr	x21, [x8, x26, lsl #3]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x9, x8, #2
	ldr	w10, [x22, x9]
	str	w10, [x21, x9]
	add	x8, x8, #1
	ldrsw	x9, [x24]
	cmp	x8, x9
	b.lt	LBB0_12
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x24, _kNumFullDistances@GOTPAGE
Lloh27:
	ldr	x24, [x24, _kNumFullDistances@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, w8
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_GetPosSlot1
	ldr	w8, [x22, x0, lsl #2]
	lsl	x9, x20, #2
	ldr	w10, [x23, x9]
	add	w8, w10, w8
	str	w8, [x21, x9]
	add	x20, x20, #1
	ldr	w8, [x24]
	cmp	w8, w20
	b.gt	LBB0_16
	b	LBB0_4
LBB0_17:
	str	xzr, [x19, #32]
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	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
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumFullDistances,4,2          ; @kNumFullDistances
	.comm	_kStartPosModelIndex,4,2        ; @kStartPosModelIndex
	.comm	_kNumLenToPosStates,4,2         ; @kNumLenToPosStates
	.comm	_kNumPosSlotBits,4,2            ; @kNumPosSlotBits
	.comm	_kEndPosModelIndex,4,2          ; @kEndPosModelIndex
	.comm	_kNumAlignBits,4,2              ; @kNumAlignBits
	.comm	_kNumBitPriceShiftBits,4,2      ; @kNumBitPriceShiftBits
	.no_dead_strip	_FillDistancesPrices
.subsections_via_symbols
