	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_InitPriceTables        ## -- Begin function LzmaEnc_InitPriceTables
	.p2align	4, 0x90
_LzmaEnc_InitPriceTables:               ## @LzmaEnc_InitPriceTables
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_kNumMoveReducingBits@GOTPCREL(%rip), %r8
	movl	(%r8), %r14d
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	movq	_kBitModelTotal@GOTPCREL(%rip), %r11
	cmpl	(%r11), %r15d
	jge	LBB0_19
## %bb.1:
	movq	_kNumBitPriceShiftBits@GOTPCREL(%rip), %r9
	movq	_kNumBitModelTotalBits@GOTPCREL(%rip), %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r10), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	subl	%edx, %eax
	movl	%r15d, %edx
	movl	%r14d, %ecx
	sarl	%cl, %edx
	addl	$-15, %eax
	movslq	%edx, %rcx
	movl	%eax, (%rdi,%rcx,4)
	movl	(%r8), %r14d
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	addl	%eax, %r15d
	cmpl	(%r11), %r15d
	jge	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_12 Depth 3
                                        ##     Child Loop BB0_17 Depth 2
	movl	(%r9), %ecx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	cmpl	$1, %ecx
	jne	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %cl
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	imull	%eax, %eax
	addl	%edx, %edx
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %esi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	shrl	%esi
	incl	%edx
	cmpl	$131071, %eax                   ## imm = 0x1FFFF
	movl	%esi, %eax
	ja	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %r12d
	andl	$-2, %r12d
	xorl	%edx, %edx
	movl	%r15d, %eax
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, %eax
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	addl	$2, %esi
	cmpl	%r12d, %esi
	je	LBB0_14
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
                                        ##       Child Loop BB0_12 Depth 3
	imull	%eax, %eax
	addl	%edx, %edx
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	shrl	%ebx
	incl	%edx
	cmpl	$131071, %eax                   ## imm = 0x1FFFF
	movl	%ebx, %eax
	ja	LBB0_8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	imull	%ebx, %ebx
	addl	%edx, %edx
	cmpl	$65536, %ebx                    ## imm = 0x10000
	jb	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	shrl	%eax
	incl	%edx
	cmpl	$131071, %ebx                   ## imm = 0x1FFFF
	movl	%eax, %ebx
	ja	LBB0_12
	jmp	LBB0_13
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumMoveReducingBits,4,2       ## @kNumMoveReducingBits
	.comm	_kBitModelTotal,4,2             ## @kBitModelTotal
	.comm	_kNumBitPriceShiftBits,4,2      ## @kNumBitPriceShiftBits
	.comm	_kNumBitModelTotalBits,4,2      ## @kNumBitModelTotalBits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_InitPriceTables        ; -- Begin function LzmaEnc_InitPriceTables
	.p2align	2
_LzmaEnc_InitPriceTables:               ; @LzmaEnc_InitPriceTables
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _kNumMoveReducingBits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kNumMoveReducingBits@GOTPAGEOFF]
	ldr	w10, [x8]
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	mov	w9, #1
	lsl	w11, w9, w10
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
Lloh2:
	adrp	x12, _kBitModelTotal@GOTPAGE
Lloh3:
	ldr	x12, [x12, _kBitModelTotal@GOTPAGEOFF]
	ldr	w13, [x12]
	cmp	w11, w13
	b.ge	LBB0_10
; %bb.1:
Lloh4:
	adrp	x13, _kNumBitPriceShiftBits@GOTPAGE
Lloh5:
	ldr	x13, [x13, _kNumBitPriceShiftBits@GOTPAGEOFF]
Lloh6:
	adrp	x14, _kNumBitModelTotalBits@GOTPAGE
Lloh7:
	ldr	x14, [x14, _kNumBitModelTotalBits@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w16, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x14]
	lsl	w15, w17, w15
	sub	w15, w15, w16
	sub	w15, w15, #15
	asr	w10, w11, w10
	str	w15, [x0, w10, sxtw #2]
	ldr	w10, [x8]
	lsl	w15, w9, w10
	ldr	w16, [x12]
	add	w11, w15, w11
	cmp	w11, w16
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w15, [x13]
	cmp	w15, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w17, #0
	mov	w16, #0
	mov	x1, x11
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x1, x2
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w17, w17, #1
	cmp	w17, w15
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mul	w2, w1, w1
	lsl	w16, w16, #1
	cmp	w2, #16, lsl #12                ; =65536
	b.lo	LBB0_6
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsr	w1, w2, #1
	add	w16, w16, #1
	lsr	w3, w2, #17
	mov	x2, x1
	cbnz	w3, LBB0_9
	b	LBB0_7
LBB0_10:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumMoveReducingBits,4,2       ; @kNumMoveReducingBits
	.comm	_kBitModelTotal,4,2             ; @kBitModelTotal
	.comm	_kNumBitPriceShiftBits,4,2      ; @kNumBitPriceShiftBits
	.comm	_kNumBitModelTotalBits,4,2      ; @kNumBitModelTotalBits
.subsections_via_symbols
