	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LzmaEnc_InitPriceTables
_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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_kBitModelTotal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_kNumMoveReducingBits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.1:
	movq	_kNumBitPriceShiftBits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	leal	-1(%r8), %ecx
	movl	$1, %r9d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	movq	_kNumBitModelTotalBits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movl	%r14d, %ecx
	shll	%cl, %r11d
	movl	%eax, %r10d
	movl	%r14d, %edx
	andl	$-2, %edx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r11d, %eax
	subl	%ecx, %eax
	addl	$-15, %eax
	movq	%rax, (%rdi,%r15,8)
	incq	%r15
	cmpq	%r10, %r15
	je	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	$0, %ecx
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	addl	%r9d, %eax
	xorl	%ecx, %ecx
	cmpl	$1, %r14d
	jne	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r14b
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	imull	%eax, %eax
	addl	%ecx, %ecx
	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	%ecx
	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
	xorl	%ecx, %ecx
	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	%edx, %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	%ecx, %ecx
	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	%ecx
	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	%ecx, %ecx
	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	%ecx
	cmpl	$131071, %ebx                   ## imm = 0x1FFFF
	movl	%eax, %ebx
	ja	LBB0_12
	jmp	LBB0_13
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kBitModelTotal,4,2             ## @kBitModelTotal
	.comm	_kNumMoveReducingBits,4,2       ## @kNumMoveReducingBits
	.comm	_kNumBitPriceShiftBits,4,2      ## @kNumBitPriceShiftBits
	.comm	_kNumBitModelTotalBits,4,2      ## @kNumBitModelTotalBits
	.no_dead_strip	_LzmaEnc_InitPriceTables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LzmaEnc_InitPriceTables
_LzmaEnc_InitPriceTables:               ; @LzmaEnc_InitPriceTables
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _kBitModelTotal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kBitModelTotal@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _kNumMoveReducingBits@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kNumMoveReducingBits@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w9, w9, w8
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x10, #0
Lloh6:
	adrp	x11, _kNumBitPriceShiftBits@GOTPAGE
Lloh7:
	ldr	x11, [x11, _kNumBitPriceShiftBits@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	sub	w12, w8, #1
	mov	w13, #1
	lsl	w12, w13, w12
Lloh9:
	adrp	x13, _kNumBitModelTotalBits@GOTPAGE
Lloh10:
	ldr	x13, [x13, _kNumBitModelTotalBits@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	lsl	w13, w13, w11
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w14, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w14, w13, w14
	sub	w14, w14, #15
	str	x14, [x0, x10, lsl #3]
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	cbz	w11, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w15, #0
	mov	w14, #0
	lsl	w16, w10, w8
	add	w16, w12, w16
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	mov	x16, x17
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w15, w15, #1
	cmp	w15, w11
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mul	w17, w16, w16
	lsl	w14, w14, #1
	cmp	w17, #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	w16, w17, #1
	add	w14, w14, #1
	lsr	w1, w17, #17
	mov	x17, x16
	cbnz	w1, LBB0_9
	b	LBB0_7
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_kBitModelTotal,4,2             ; @kBitModelTotal
	.comm	_kNumMoveReducingBits,4,2       ; @kNumMoveReducingBits
	.comm	_kNumBitPriceShiftBits,4,2      ; @kNumBitPriceShiftBits
	.comm	_kNumBitModelTotalBits,4,2      ; @kNumBitModelTotalBits
	.no_dead_strip	_LzmaEnc_InitPriceTables
.subsections_via_symbols
