	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xzs_ReadBackward               ## -- Begin function Xzs_ReadBackward
	.p2align	4, 0x90
_Xzs_ReadBackward:                      ## @Xzs_ReadBackward
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movq	_SZ_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ILookInStream_Seek
	movq	%rax, %rdi
	callq	_RINOK
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_Xz_Construct
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_Xz_ReadBackward
	movq	(%rbx), %rcx
	movq	%rcx, -64(%rbp)
	movq	%rax, %rdi
	callq	_RINOK
	movq	(%r13), %r15
	cmpq	8(%r13), %r15
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	3(%r15), %r12
	testq	%r15, %r15
	cmovnsq	%r15, %r12
	sarq	$2, %r12
	leaq	(%r15,%r12), %rax
	leaq	8(,%rax,8), %rsi
	movl	%r14d, %ebx
	movl	%r14d, %edi
	callq	_ISzAlloc_Alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	leaq	(%r15,%r12), %rax
	incq	%rax
	movq	%rax, 8(%r13)
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %rsi
	shll	$3, %edx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %rsi
	movl	%ebx, %edi
	callq	_ISzAlloc_Free
	movq	%r14, 16(%r13)
	movq	(%r13), %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %r14
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r15), %rax
	movq	%rax, (%r13)
	movq	-64(%rbp), %rax
	movq	%rax, (%r14,%r15,8)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_LookInStream_SeekTo
	movq	%rax, %rdi
	callq	_RINOK
	testq	%r12, %r12
	je	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rsi
	subq	(%rbx), %rsi
	movq	%r12, %rdi
	movl	$-1, %edx
	callq	_ICompressProgress_Progress
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.11:
	movq	_SZ_ERROR_PROGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_SEEK_END,4,2                ## @SZ_SEEK_END
	.comm	_SZ_ERROR_MEM,8,3               ## @SZ_ERROR_MEM
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_SZ_ERROR_PROGRESS,8,3          ## @SZ_ERROR_PROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Xzs_ReadBackward               ; -- Begin function Xzs_ReadBackward
	.p2align	2
_Xzs_ReadBackward:                      ; @Xzs_ReadBackward
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _SZ_SEEK_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_SEEK_END@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_ILookInStream_Seek
	bl	_RINOK
	ldr	x8, [sp, #8]
	str	x8, [x21]
Lloh3:
	adrp	x25, _SZ_ERROR_MEM@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SZ_ERROR_MEM@GOTPAGEOFF]
Lloh5:
	adrp	x26, _SZ_OK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SZ_OK@GOTPAGEOFF]
Lloh7:
	adrp	x27, _SZ_ERROR_PROGRESS@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SZ_ERROR_PROGRESS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	bl	_Xz_Construct
	mov	x0, sp
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	bl	_Xz_ReadBackward
	ldr	x8, [x21]
	str	x8, [sp]
	bl	_RINOK
	ldp	x8, x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x8, #3
	cmp	x8, #0
	csel	x9, x9, x8, lt
	add	x8, x8, x9, asr #2
	add	x28, x8, #1
	lsl	x1, x28, #3
	mov	x0, x19
	bl	_ISzAlloc_Alloc
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, x0
	str	x28, [x23, #8]
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x23, #16]
	lsl	w2, w8, #3
	mov	x0, x24
	bl	_memcpy
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x23, #16]
	mov	x0, x19
	bl	_ISzAlloc_Free
	str	x24, [x23, #16]
	ldr	x8, [x23]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x24, [x23, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x8, #1
	str	x9, [x23]
	ldr	x9, [sp]
	str	x9, [x24, x8, lsl #3]
	ldr	x1, [x21]
	cbz	x1, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	bl	_LookInStream_SeekTo
	bl	_RINOK
	cbz	x20, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	sub	x1, x8, x9
	mov	x0, x20
	mov	w2, #-1
	bl	_ICompressProgress_Progress
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.10:
	mov	x25, x27
LBB0_11:
	ldr	x0, [x25]
	b	LBB0_13
LBB0_12:
	ldr	x0, [x26]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_SEEK_END,4,2                ; @SZ_SEEK_END
	.comm	_SZ_ERROR_MEM,8,3               ; @SZ_ERROR_MEM
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_SZ_ERROR_PROGRESS,8,3          ; @SZ_ERROR_PROGRESS
.subsections_via_symbols
