	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_lzma_encoder_reset        ## -- Begin function lzma_lzma_encoder_reset
	.p2align	4, 0x90
_lzma_lzma_encoder_reset:               ## @lzma_lzma_encoder_reset
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_is_options_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movb	(%r14), %cl
	movl	$-1, %eax
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, (%r12)
	movl	8(%r14), %ecx
	movl	%ecx, 136(%r12)
	movb	4(%r14), %cl
	shll	%cl, %eax
	notl	%eax
	movl	%eax, 4(%r12)
	leaq	132(%r12), %rdi
	callq	_rc_reset
	movq	_STATE_LIT_LIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r12)
	movq	_REPS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	120(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	(%rax), %rdx
	jb	LBB0_4
LBB0_5:
	movl	112(%r12), %edi
	movl	4(%r14), %edx
	movl	8(%r14), %esi
	callq	_literal_init
	movq	_STATES@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.6:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	$-1, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	104(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	4(%rax,%rbx,4), %edi
	callq	_bit_reset
	movq	96(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	4(%rax,%rbx,4), %edi
	callq	_bit_reset
	movl	(%r12), %eax
	incq	%rbx
	cmpq	%rax, %rbx
	jb	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	88(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_bit_reset
	movq	80(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_bit_reset
	movq	72(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_bit_reset
	movq	64(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_bit_reset
	incq	%r13
	cmpq	(%r15), %r13
	jb	LBB0_7
LBB0_10:
	movq	_FULL_DISTANCES@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_DIST_MODEL_END@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_bit_reset
	incq	%rbx
	movq	(%r15), %rax
	subq	(%r13), %rax
	cmpq	%rax, %rbx
	jb	LBB0_12
LBB0_13:
	movq	_DIST_STATES@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	movq	_DIST_SLOT_BITS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%r13), %esi
	callq	_bittree_reset
	incq	%rbx
	cmpq	(%r15), %rbx
	jb	LBB0_15
LBB0_16:
	movl	44(%r12), %edi
	movq	_ALIGN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bittree_reset
	leaq	40(%r12), %rdi
	movb	(%r14), %cl
	movl	$1, %r15d
	movl	$1, %esi
	shll	%cl, %esi
	movl	32(%r12), %edx
	callq	_length_encoder_reset
	leaq	36(%r12), %rdi
	movb	(%r14), %cl
	shll	%cl, %r15d
	movl	32(%r12), %edx
	movl	%r15d, %esi
	callq	_length_encoder_reset
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%r12)
	movl	%ecx, 12(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_1:
	movq	_LZMA_OPTIONS_ERROR@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_OPTIONS_ERROR,4,2         ## @LZMA_OPTIONS_ERROR
	.comm	_STATE_LIT_LIT,4,2              ## @STATE_LIT_LIT
	.comm	_REPS,8,3                       ## @REPS
	.comm	_STATES,8,3                     ## @STATES
	.comm	_FULL_DISTANCES,8,3             ## @FULL_DISTANCES
	.comm	_DIST_MODEL_END,8,3             ## @DIST_MODEL_END
	.comm	_DIST_STATES,8,3                ## @DIST_STATES
	.comm	_DIST_SLOT_BITS,4,2             ## @DIST_SLOT_BITS
	.comm	_ALIGN_BITS,4,2                 ## @ALIGN_BITS
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_LZMA_OK,4,2                    ## @LZMA_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_lzma_encoder_reset        ; -- Begin function lzma_lzma_encoder_reset
	.p2align	2
_lzma_lzma_encoder_reset:               ; @lzma_lzma_encoder_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_is_options_valid
	cbz	w0, LBB0_16
; %bb.1:
	ldr	w8, [x20, #8]
	str	w8, [x19, #136]
	ldr	d0, [x20]
	movi.2d	v1, #0xffffffffffffffff
	ushl.2s	v0, v1, v0
	mvn.8b	v0, v0
	str	d0, [x19]
	add	x0, x19, #132
	bl	_rc_reset
Lloh0:
	adrp	x8, _STATE_LIT_LIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATE_LIT_LIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #128]
Lloh3:
	adrp	x8, _REPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REPS@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x19, #120]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x10, x9, lsl #3]
	add	x9, x9, #1
	ldr	x11, [x8]
	cmp	x9, x11
	b.lo	LBB0_3
LBB0_4:
	ldr	w0, [x19, #112]
	ldp	w2, w1, [x20, #4]
	bl	_literal_init
Lloh5:
	adrp	x21, _STATES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _STATES@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x22, #0
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x23, #0
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #104]
	lsl	x24, x22, #3
	ldr	x8, [x8, x24]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	bl	_bit_reset
	ldr	x8, [x19, #96]
	ldr	x8, [x8, x24]
	ldr	w0, [x8, x25]
	bl	_bit_reset
	add	x8, x23, #1
	ldr	w9, [x19]
	cmp	x23, x9
	mov	x23, x8
	b.lo	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #88]
	lsl	x23, x22, #2
	ldr	w0, [x8, x23]
	bl	_bit_reset
	ldr	x8, [x19, #80]
	ldr	w0, [x8, x23]
	bl	_bit_reset
	ldr	x8, [x19, #72]
	ldr	w0, [x8, x23]
	bl	_bit_reset
	ldr	x8, [x19, #64]
	ldr	w0, [x8, x23]
	bl	_bit_reset
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_6
LBB0_9:
Lloh7:
	adrp	x21, _FULL_DISTANCES@GOTPAGE
Lloh8:
	ldr	x21, [x21, _FULL_DISTANCES@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh9:
	adrp	x22, _DIST_MODEL_END@GOTPAGE
Lloh10:
	ldr	x22, [x22, _DIST_MODEL_END@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	w0, [x8, x23, lsl #2]
	bl	_bit_reset
	add	x23, x23, #1
	ldr	x8, [x21]
	ldr	x9, [x22]
	sub	x8, x8, x9
	cmp	x23, x8
	b.lo	LBB0_11
LBB0_12:
Lloh11:
	adrp	x21, _DIST_STATES@GOTPAGE
Lloh12:
	ldr	x21, [x21, _DIST_STATES@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x22, #0
Lloh13:
	adrp	x23, _DIST_SLOT_BITS@GOTPAGE
Lloh14:
	ldr	x23, [x23, _DIST_SLOT_BITS@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	w0, [x8, x22, lsl #2]
	ldr	w1, [x23]
	bl	_bittree_reset
	add	x22, x22, #1
	ldr	x8, [x21]
	cmp	x22, x8
	b.lo	LBB0_14
LBB0_15:
	ldr	w0, [x19, #44]
Lloh15:
	adrp	x8, _ALIGN_BITS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ALIGN_BITS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_bittree_reset
	add	x0, x19, #40
	ldr	w8, [x20]
	mov	w21, #1
	lsl	w1, w21, w8
	ldr	w2, [x19, #32]
	bl	_length_encoder_reset
	add	x0, x19, #36
	ldr	w8, [x20]
	lsl	w1, w21, w8
	ldr	w2, [x19, #32]
	bl	_length_encoder_reset
Lloh18:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w8, w8, [x19, #8]
	stp	xzr, xzr, [x19, #16]
Lloh21:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x8, _LZMA_OPTIONS_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LZMA_OPTIONS_ERROR@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_OPTIONS_ERROR,4,2         ; @LZMA_OPTIONS_ERROR
	.comm	_STATE_LIT_LIT,4,2              ; @STATE_LIT_LIT
	.comm	_REPS,8,3                       ; @REPS
	.comm	_STATES,8,3                     ; @STATES
	.comm	_FULL_DISTANCES,8,3             ; @FULL_DISTANCES
	.comm	_DIST_MODEL_END,8,3             ; @DIST_MODEL_END
	.comm	_DIST_STATES,8,3                ; @DIST_STATES
	.comm	_DIST_SLOT_BITS,4,2             ; @DIST_SLOT_BITS
	.comm	_ALIGN_BITS,4,2                 ; @ALIGN_BITS
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_LZMA_OK,4,2                    ; @LZMA_OK
.subsections_via_symbols
