	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Xz_ReadIndex2
_Xz_ReadIndex2:                         ## @Xz_ReadIndex2
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$5, %rdx
	jb	LBB0_11
## %bb.1:
	movq	%rsi, %r13
	cmpq	$0, (%rsi)
	jne	LBB0_11
## %bb.2:
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	-4(%rdx), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_CrcCalc
	movq	%rax, %r14
	leaq	-32(,%rbx,8), %rdi
	addq	%r13, %rdi
	callq	_GetUi32
	cmpq	%rax, %r14
	jne	LBB0_11
## %bb.3:
	leaq	-72(%rbp), %rcx
	movl	$1, %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_READ_VARINT_AND_CHECK
	movq	-72(%rbp), %r14
	leaq	(%r14,%r14), %rax
	movq	_SZ_ERROR_ARCHIVE@GOTPCREL(%rip), %rcx
	cmpq	%r15, %rax
	jbe	LBB0_5
## %bb.4:
	movl	(%rcx), %eax
	jmp	LBB0_18
LBB0_5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_Xz_Free
	testq	%r14, %r14
	je	LBB0_12
## %bb.6:
	movq	%r14, (%r15)
	movl	%r14d, %esi
	shll	$4, %esi
	movl	%r12d, %edi
	callq	_ISzAlloc_Alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:
	movq	%rax, %r12
	movl	$1, %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_READ_VARINT_AND_CHECK
	movq	%r12, %rcx
	addq	$8, %rcx
	movl	$1, %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_READ_VARINT_AND_CHECK
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.8:
	movl	$16, %ebx
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r14
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r12
	leaq	(%r12,%rbx), %rcx
	movl	$1, %esi
	movq	%r13, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_READ_VARINT_AND_CHECK
	leaq	(%r12,%rbx), %rcx
	addq	$8, %rcx
	movl	$1, %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_READ_VARINT_AND_CHECK
	cmpq	$0, (%r12,%rbx)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_9
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, 8(%r13)
	jne	LBB0_11
## %bb.13:
	cmpq	$0, 16(%r13)
	jne	LBB0_11
## %bb.14:
	cmpq	$0, 24(%r13)
	je	LBB0_15
LBB0_11:
	movq	_SZ_ERROR_ARCHIVE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	cmpq	$4, -48(%rbp)                   ## 8-byte Folded Reload
	movq	_SZ_ERROR_ARCHIVE@GOTPCREL(%rip), %rax
	jne	LBB0_17
## %bb.16:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_ARCHIVE,4,2           ## @SZ_ERROR_ARCHIVE
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.no_dead_strip	_Xz_ReadIndex2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Xz_ReadIndex2
_Xz_ReadIndex2:                         ; @Xz_ReadIndex2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	x2, #5
	b.lo	LBB0_10
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	cbnz	x8, LBB0_10
; %bb.2:
	mov	x22, x3
	mov	x21, x0
	sub	x20, x2, #4
	mov	x0, x19
	mov	x1, x20
	bl	_CrcCalc
	mov	x23, x0
	add	x0, x19, x20, lsl #3
	bl	_GetUi32
	cmp	x23, x0
	b.ne	LBB0_10
; %bb.3:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_READ_VARINT_AND_CHECK
	ldr	x24, [sp, #8]
Lloh0:
	adrp	x23, _SZ_ERROR_ARCHIVE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SZ_ERROR_ARCHIVE@GOTPAGEOFF]
	cmp	x20, x24, lsl #1
	b.lo	LBB0_16
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	bl	_Xz_Free
	cbz	x24, LBB0_13
; %bb.5:
	str	x24, [x21]
	lsl	w1, w24, #4
	mov	x0, x22
	bl	_ISzAlloc_Alloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_17
; %bb.6:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_READ_VARINT_AND_CHECK
	add	x3, x22, #8
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_READ_VARINT_AND_CHECK
	ldr	x8, [x22]
	cbz	x8, LBB0_16
; %bb.7:
	mov	w8, #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	subs	x24, x24, #1
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x8, #16
	ldr	x9, [x21, #8]
	add	x22, x9, x8
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_READ_VARINT_AND_CHECK
	add	x3, x22, #8
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_READ_VARINT_AND_CHECK
	ldr	x9, [x22]
	mov	x8, x25
	cbnz	x9, LBB0_8
	b	LBB0_16
LBB0_10:
Lloh2:
	adrp	x8, _SZ_ERROR_ARCHIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_ERROR_ARCHIVE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_16
; %bb.14:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_18
LBB0_16:
	ldr	w0, [x23]
	b	LBB0_12
LBB0_17:
Lloh4:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_18:
Lloh6:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
	cmp	x20, #4
	csel	x8, x8, x23, eq
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_ERROR_ARCHIVE,4,2           ; @SZ_ERROR_ARCHIVE
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.no_dead_strip	_Xz_ReadIndex2
.subsections_via_symbols
