	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xz_dec_lzma2_reset             ## -- Begin function xz_dec_lzma2_reset
	.p2align	4, 0x90
_xz_dec_lzma2_reset:                    ## @xz_dec_lzma2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$39, %esi
	jle	LBB0_2
## %bb.1:
	movq	_XZ_OPTIONS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %rbx
	movl	%esi, %eax
	andl	$1, %eax
	orl	$2, %eax
	shrl	%esi
	addb	$11, %sil
	movl	%esi, %ecx
	shll	%cl, %eax
	movl	%eax, 24(%rdi)
	movl	48(%rdi), %edi
	callq	_DEC_IS_MULTI
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	24(%rbx), %eax
	cmpl	28(%rbx), %eax
	jle	LBB0_5
## %bb.4:
	movq	_XZ_MEMLIMIT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movl	%eax, 32(%rbx)
	movl	48(%rbx), %edi
	callq	_DEC_IS_DYNALLOC
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	36(%rbx), %eax
	cmpl	24(%rbx), %eax
	jge	LBB0_9
## %bb.7:
	movq	40(%rbx), %rdi
	callq	_free
	movl	24(%rbx), %edi
	callq	_malloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	$0, 16(%rbx)
	movq	_SEQ_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, (%rbx)
	movq	_XZ_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movl	$0, 36(%rbx)
	movq	_XZ_MEM_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_XZ_OPTIONS_ERROR,4,2           ## @XZ_OPTIONS_ERROR
	.comm	_XZ_MEMLIMIT_ERROR,4,2          ## @XZ_MEMLIMIT_ERROR
	.comm	_XZ_MEM_ERROR,4,2               ## @XZ_MEM_ERROR
	.comm	_SEQ_CONTROL,4,2                ## @SEQ_CONTROL
	.comm	_XZ_OK,4,2                      ## @XZ_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xz_dec_lzma2_reset             ; -- Begin function xz_dec_lzma2_reset
	.p2align	2
_xz_dec_lzma2_reset:                    ; @xz_dec_lzma2_reset
	.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
	cmp	w1, #39
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _XZ_OPTIONS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XZ_OPTIONS_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	mov	w8, #2
	bfxil	w8, w1, #0, #1
	asr	w9, w1, #1
	add	w9, w9, #11
	lsl	w8, w8, w9
	str	w8, [x0, #24]
	ldr	w0, [x0, #48]
	bl	_DEC_IS_MULTI
	cbz	x0, LBB0_8
; %bb.3:
	ldp	w8, w9, [x19, #24]
	cmp	w8, w9
	b.le	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _XZ_MEMLIMIT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XZ_MEMLIMIT_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	str	w8, [x19, #32]
	ldr	w0, [x19, #48]
	bl	_DEC_IS_DYNALLOC
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x19, #36]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.7:
	ldr	x0, [x19, #40]
	bl	_free
	ldr	w0, [x19, #24]
	bl	_malloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
LBB0_8:
	str	xzr, [x19, #16]
Lloh4:
	adrp	x8, _SEQ_CONTROL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEQ_CONTROL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19, #8]
	str	xzr, [x19]
Lloh7:
	adrp	x8, _XZ_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _XZ_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	str	wzr, [x19, #36]
Lloh9:
	adrp	x8, _XZ_MEM_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XZ_MEM_ERROR@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_XZ_OPTIONS_ERROR,4,2           ; @XZ_OPTIONS_ERROR
	.comm	_XZ_MEMLIMIT_ERROR,4,2          ; @XZ_MEMLIMIT_ERROR
	.comm	_XZ_MEM_ERROR,4,2               ; @XZ_MEM_ERROR
	.comm	_SEQ_CONTROL,4,2                ; @SEQ_CONTROL
	.comm	_XZ_OK,4,2                      ; @XZ_OK
.subsections_via_symbols
