	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function LzmaEnc_Init
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_LzmaEnc_Init
	.p2align	4, 0x90
_LzmaEnc_Init:                          ## @LzmaEnc_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	$0, 168(%rdi)
	movq	(%rdi), %rax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movdqu	%xmm0, (%rax)
	addq	$160, %rdi
	callq	_RangeEnc_Init
	movq	_kNumAlignBits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	movq	_kProbInitValue@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rdx), %r8d
	movq	(%r10), %rdi
	movl	%edx, %esi
	shrl	%cl, %esi
	movq	152(%r14), %rax
	movq	%rdi, (%rax,%r8,8)
	incl	%edx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_kNumStates@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testq	%r8, %r8
	je	LBB0_10
## %bb.3:
	movq	_LZMA_NUM_PB_STATES_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r9d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r10), %rax
	movq	128(%r14), %rcx
	movq	%rax, (%rcx,%rdi,8)
	movq	(%r10), %rax
	movq	120(%r14), %rcx
	movq	%rax, (%rcx,%rdi,8)
	movq	(%r10), %rax
	movq	112(%r14), %rcx
	movq	%rax, (%rcx,%rdi,8)
	movq	(%r10), %rax
	movq	104(%r14), %rcx
	movq	%rax, (%rcx,%rdi,8)
	incq	%rdi
	cmpq	%r8, %rdi
	je	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testq	%r9, %r9
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	cmpl	$1, %r9d
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r10), %rax
	movq	144(%r14), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r10), %rax
	movq	136(%r14), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r10), %rax
	movq	144(%r14), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rax, 8(%rdx,%rcx,8)
	movq	(%r10), %rax
	movq	136(%r14), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rax, 8(%rdx,%rcx,8)
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	$1, %r9b
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r10), %rax
	movq	144(%r14), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r10), %rax
	movq	136(%r14), %rdx
	movq	(%rdx,%rdi,8), %rdx
	movq	%rax, (%rdx,%rcx,8)
	jmp	LBB0_4
LBB0_10:
	movq	_kNumLenToPosStates@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_22
## %bb.11:
	movq	_kNumPosSlotBits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$1, %r8d
	jne	LBB0_13
## %bb.12:
	xorl	%r11d, %r11d
	jmp	LBB0_19
LBB0_13:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	movq	96(%r14), %rax
	movq	(%rax,%r11,8), %rdx
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rdi), %eax
	movl	%edi, %esi
	shrl	%cl, %esi
	movq	(%r10), %rbx
	movq	%rbx, (%rdx,%rax,8)
	incl	%edi
	testl	%esi, %esi
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(,%r11,8), %rax
	movq	96(%r14), %rdx
	orq	$8, %rax
	movq	(%rdx,%rax), %rdx
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rdi), %eax
	movl	%edi, %esi
	shrl	%cl, %esi
	movq	(%r10), %rbx
	movq	%rbx, (%rdx,%rax,8)
	incl	%edi
	testl	%esi, %esi
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	addq	$2, %r11
	cmpq	%r9, %r11
	jne	LBB0_14
LBB0_19:
	testb	$1, %r8b
	je	LBB0_22
## %bb.20:
	movq	96(%r14), %rax
	movq	(%rax,%r11,8), %r8
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rsi), %eax
	movl	%esi, %edi
	shrl	%cl, %edi
	movq	(%r10), %rdx
	movq	%rdx, (%r8,%rax,8)
	incl	%esi
	testl	%edi, %edi
	je	LBB0_21
LBB0_22:
	movq	_kNumFullDistances@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.23:
	leaq	-1(%rsi), %rax
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rax
	jae	LBB0_25
## %bb.24:
	xorl	%edx, %edx
	jmp	LBB0_27
LBB0_25:
	andl	$-4, %esi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	movq	88(%r14), %rdi
	movq	%rax, (%rdi,%rdx,8)
	movq	(%r10), %rax
	movq	88(%r14), %rdi
	movq	%rax, 8(%rdi,%rdx,8)
	movq	(%r10), %rax
	movq	88(%r14), %rdi
	movq	%rax, 16(%rdi,%rdx,8)
	movq	(%r10), %rax
	movq	88(%r14), %rdi
	movq	%rax, 24(%rdi,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_26
LBB0_27:
	testq	%rcx, %rcx
	je	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	movq	88(%r14), %rsi
	movq	%rax, (%rsi,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_28
LBB0_29:
	movq	16(%r14), %rcx
	addq	8(%r14), %rcx
	cmpq	$55, %rcx
	ja	LBB0_42
## %bb.30:
	movq	80(%r14), %rdx
	movl	$768, %eax                      ## imm = 0x300
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	cmpq	$2, %rax
	movl	$1, %r8d
	cmovaeq	%rax, %r8
	cmpq	$4, %r8
	jb	LBB0_31
## %bb.32:
	leaq	8(%r10), %rax
	cmpq	%rax, %rdx
	jae	LBB0_35
## %bb.33:
	leaq	(%rdx,%r8,8), %rax
	cmpq	_kProbInitValue@GOTPCREL(%rip), %rax
	jbe	LBB0_35
LBB0_31:
	xorl	%esi, %esi
LBB0_38:
	movq	%rsi, %rdi
	notq	%rdi
	addq	%r8, %rdi
	movq	%r8, %rcx
	andq	$1, %rcx
	je	LBB0_40
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	movq	%rax, (%rdx,%rsi,8)
	incq	%rsi
	decq	%rcx
	jne	LBB0_39
LBB0_40:
	cmpq	$3, %rdi
	jb	LBB0_42
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	movq	%rax, (%rdx,%rsi,8)
	movq	(%r10), %rax
	movq	%rax, 8(%rdx,%rsi,8)
	movq	(%r10), %rax
	movq	%rax, 16(%rdx,%rsi,8)
	movq	(%r10), %rax
	movq	%rax, 24(%rdx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_41
	jmp	LBB0_42
LBB0_35:
	movq	%r8, %rsi
	andq	$-256, %rsi
	leaq	-4(%rsi), %rdi
	shrq	$2, %rdi
	movq	(%r10), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	48(%rdx), %rcx
	notq	%rdi
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -48(%rcx)
	movdqu	%xmm0, -32(%rcx)
	movdqu	%xmm0, -16(%rcx)
	movdqu	%xmm0, (%rcx)
	addq	$64, %rcx
	addq	$2, %rdi
	jne	LBB0_36
## %bb.37:
	cmpq	%rsi, %r8
	jne	LBB0_38
LBB0_42:
	leaq	76(%r14), %rdi
	callq	_LenEnc_Init
	leaq	72(%r14), %rdi
	callq	_LenEnc_Init
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 56(%r14)
	movq	_kNumOpts@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_45
## %bb.43:
	movq	48(%r14), %rcx
	xorl	%edx, %edx
	movq	_kInfinityPrice@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %edi
	cmpq	%rdi, %rdx
	jb	LBB0_44
LBB0_45:
	movq	$0, 40(%r14)
	movb	28(%r14), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%eax, 24(%r14)
	movb	8(%r14), %cl
	movb	16(%r14), %al
	movl	$256, %edx                      ## imm = 0x100
	shlq	%cl, %rdx
	movl	$256, %esi                      ## imm = 0x100
	movl	%eax, %ecx
	shrl	%cl, %esi
	subq	%rsi, %rdx
	movq	%rdx, 32(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumAlignBits,4,2              ## @kNumAlignBits
	.comm	_kProbInitValue,8,3             ## @kProbInitValue
	.comm	_kNumStates,4,2                 ## @kNumStates
	.comm	_LZMA_NUM_PB_STATES_MAX,4,2     ## @LZMA_NUM_PB_STATES_MAX
	.comm	_kNumLenToPosStates,4,2         ## @kNumLenToPosStates
	.comm	_kNumPosSlotBits,4,2            ## @kNumPosSlotBits
	.comm	_kNumFullDistances,4,2          ## @kNumFullDistances
	.comm	_kNumOpts,4,2                   ## @kNumOpts
	.comm	_kInfinityPrice,4,2             ## @kInfinityPrice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_Init                   ; -- Begin function LzmaEnc_Init
	.p2align	2
_LzmaEnc_Init:                          ; @LzmaEnc_Init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [x0, #168]
	ldr	x8, [x0], #160
	movi.4s	v0, #1
	str	q0, [x8]
	bl	_RangeEnc_Init
Lloh0:
	adrp	x8, _kNumAlignBits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kNumAlignBits@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mov	w10, #1
Lloh3:
	adrp	x8, _kProbInitValue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kProbInitValue@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w10, #1
	ldr	x12, [x8]
	ldr	x13, [x19, #152]
	str	x12, [x13, w11, uxtw #3]
	lsr	w11, w10, w9
	add	w10, w10, #1
	cbz	w11, LBB0_1
; %bb.2:
Lloh5:
	adrp	x9, _kNumStates@GOTPAGE
Lloh6:
	ldr	x9, [x9, _kNumStates@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbz	w9, LBB0_8
; %bb.3:
	mov	x10, #0
Lloh8:
	adrp	x11, _LZMA_NUM_PB_STATES_MAX@GOTPAGE
Lloh9:
	ldr	x11, [x11, _LZMA_NUM_PB_STATES_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	lsl	x12, x11, #3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x14, [x8]
	ldr	x15, [x19, #128]
	str	x14, [x15, x13]
	ldr	x14, [x8]
	ldr	x15, [x19, #120]
	str	x14, [x15, x13]
	ldr	x14, [x8]
	ldr	x15, [x19, #112]
	str	x14, [x15, x13]
	ldr	x14, [x8]
	ldr	x15, [x19, #104]
	str	x14, [x15, x13]
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	lsl	x13, x10, #3
	cbz	w11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x14, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x8]
	ldr	x16, [x19, #144]
	ldr	x16, [x16, x13]
	str	x15, [x16, x14]
	ldr	x15, [x8]
	ldr	x16, [x19, #136]
	ldr	x16, [x16, x13]
	str	x15, [x16, x14]
	add	x14, x14, #8
	cmp	x12, x14
	b.ne	LBB0_7
	b	LBB0_4
LBB0_8:
Lloh11:
	adrp	x9, _kNumLenToPosStates@GOTPAGE
Lloh12:
	ldr	x9, [x9, _kNumLenToPosStates@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cbz	w9, LBB0_13
; %bb.9:
	mov	x10, #0
Lloh14:
	adrp	x11, _kNumPosSlotBits@GOTPAGE
Lloh15:
	ldr	x11, [x11, _kNumPosSlotBits@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x12, [x19, #96]
	ldr	x12, [x12, x10, lsl #3]
	mov	w13, #1
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w14, w13, #1
	ldr	x15, [x8]
	str	x15, [x12, w14, uxtw #3]
	lsr	w14, w13, w11
	add	w13, w13, #1
	cbz	w14, LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.ne	LBB0_10
LBB0_13:
Lloh17:
	adrp	x9, _kNumFullDistances@GOTPAGE
Lloh18:
	ldr	x9, [x9, _kNumFullDistances@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x9]
	cbz	w10, LBB0_16
; %bb.14:
	mov	x9, #0
	lsl	x10, x10, #3
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	ldr	x12, [x19, #88]
	str	x11, [x12, x9]
	add	x9, x9, #8
	cmp	x10, x9
	b.ne	LBB0_15
LBB0_16:
	ldp	x9, x10, [x19, #8]
	add	x10, x10, x9
	cmp	x10, #55
	b.hi	LBB0_25
; %bb.17:
	ldr	x9, [x19, #80]
	mov	w11, #768
	lsl	x10, x11, x10
	cmp	x10, #1
	csinc	x10, x10, xzr, hi
	cmp	x10, #8
	b.lo	LBB0_22
; %bb.18:
	add	x11, x9, x10, lsl #3
	add	x12, x8, #8
	cmp	x9, x12
	ccmp	x11, x8, #0, lo
	b.hi	LBB0_22
; %bb.19:
	and	x11, x10, #0xffffffffffffff00
	ld1r.2d	{ v0 }, [x8]
	add	x12, x9, #32
	mov	x13, x11
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_20
; %bb.21:
	cmp	x10, x11
	b.ne	LBB0_23
	b	LBB0_25
LBB0_22:
	mov	x11, #0
LBB0_23:
	sub	x10, x10, x11
	add	x9, x9, x11, lsl #3
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	str	x11, [x9], #8
	subs	x10, x10, #1
	b.ne	LBB0_24
LBB0_25:
	add	x0, x19, #76
	bl	_LenEnc_Init
	add	x0, x19, #72
	bl	_LenEnc_Init
	stp	xzr, xzr, [x19, #56]
Lloh20:
	adrp	x8, _kNumOpts@GOTPAGE
Lloh21:
	ldr	x8, [x8, _kNumOpts@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_28
; %bb.26:
	mov	x9, #0
	ldr	x10, [x19, #48]
Lloh22:
	adrp	x11, _kInfinityPrice@GOTPAGE
Lloh23:
	ldr	x11, [x11, _kInfinityPrice@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w12, [x8]
	cmp	x9, x12
	b.lo	LBB0_27
LBB0_28:
	ldr	w8, [x19, #28]
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [x19, #24]
	ldr	x8, [x19, #8]
	mov	w9, #256
	lsl	x8, x9, x8
	ldr	w10, [x19, #16]
	lsr	w9, w9, w10
	sub	x8, x8, x9
	stp	x8, xzr, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumAlignBits,4,2              ; @kNumAlignBits
	.comm	_kProbInitValue,8,3             ; @kProbInitValue
	.comm	_kNumStates,4,2                 ; @kNumStates
	.comm	_LZMA_NUM_PB_STATES_MAX,4,2     ; @LZMA_NUM_PB_STATES_MAX
	.comm	_kNumLenToPosStates,4,2         ; @kNumLenToPosStates
	.comm	_kNumPosSlotBits,4,2            ; @kNumPosSlotBits
	.comm	_kNumFullDistances,4,2          ; @kNumFullDistances
	.comm	_kNumOpts,4,2                   ; @kNumOpts
	.comm	_kInfinityPrice,4,2             ; @kInfinityPrice
.subsections_via_symbols
