	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XzBlock_Parse                  ## -- Begin function XzBlock_Parse
	.p2align	4, 0x90
_XzBlock_Parse:                         ## @XzBlock_Parse
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %ebx
	shll	$2, %ebx
	movq	%rsi, %rdi
	movl	%ebx, %esi
	callq	_CrcCalc
	movq	%rax, %r12
	leaq	(%r14,%rbx,8), %rdi
	callq	_GetUi32
	cmpq	%rax, %r12
	jne	LBB0_16
## %bb.1:
	movq	8(%r14), %rax
	movq	%rax, (%r15)
	movq	$-1, 8(%r15)
	movq	%r15, %rdi
	callq	_XzBlock_HasPackSize
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	addq	$8, %r15
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_READ_VARINT_AND_CHECK
LBB0_16:
	movq	_SZ_ERROR_ARCHIVE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	$-1, 16(%r15)
	movq	%r15, %rdi
	callq	_XzBlock_HasUnpackSize
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	16(%r15), %rcx
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	callq	_READ_VARINT_AND_CHECK
LBB0_5:
	movq	%r15, %rdi
	callq	_XzBlock_GetNumFilters
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.6:
	movl	%eax, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$2, %ebx
	xorl	%r13d, %r13d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r15
	leaq	(%r15,%r13), %rcx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_READ_VARINT_AND_CHECK
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	leaq	-48(%rbp), %rcx
	callq	_READ_VARINT_AND_CHECK
	movq	-48(%rbp), %rax
	movl	%r12d, %ecx
	subl	%ebx, %ecx
	cmpq	%rcx, %rax
	jg	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_XZ_FILTER_PROPS_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, 16(%r15,%r13)
	movq	8(%r15,%r13), %rdi
	movl	%ebx, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%rax,8), %rsi
	movq	-48(%rbp), %rdx
	callq	_memcpy
	addl	-48(%rbp), %ebx
	addq	$24, %r13
	cmpq	%r13, -64(%rbp)                 ## 8-byte Folded Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_7
	jmp	LBB0_11
LBB0_10:
	movl	$2, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_XzBlock_HasUnsupportedFlags
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_SZ_ERROR_UNSUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movl	%ebx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %ebx
	cmoval	%ebx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rcx
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$0, (%r14,%rax,8)
	leaq	1(%rax), %rax
	je	LBB0_14
	jmp	LBB0_16
LBB0_18:
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_ARCHIVE,4,2           ## @SZ_ERROR_ARCHIVE
	.comm	_XZ_FILTER_PROPS_SIZE_MAX,8,3   ## @XZ_FILTER_PROPS_SIZE_MAX
	.comm	_SZ_ERROR_UNSUPPORTED,4,2       ## @SZ_ERROR_UNSUPPORTED
	.comm	_SZ_OK,4,2                      ## @SZ_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XzBlock_Parse                  ; -- Begin function XzBlock_Parse
	.p2align	2
_XzBlock_Parse:                         ; @XzBlock_Parse
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	w8, [x1]
	lsl	w20, w8, #2
	mov	x0, x1
	mov	x1, x20
	bl	_CrcCalc
	mov	x22, x0
	add	x0, x19, w20, uxtw #3
	bl	_GetUi32
	cmp	x22, x0
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	str	x8, [x21]
	mov	x23, #-1
	mov	x22, x21
	str	x23, [x22, #8]!
	mov	x0, x21
	bl	_XzBlock_HasPackSize
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #2
	mov	x2, x20
	mov	x3, x22
	bl	_READ_VARINT_AND_CHECK
LBB0_3:
Lloh0:
	adrp	x8, _SZ_ERROR_ARCHIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_ERROR_ARCHIVE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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_5:
	mov	x22, x21
	str	x23, [x22, #16]!
	mov	x0, x21
	bl	_XzBlock_HasUnpackSize
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #2
	mov	x2, x20
	mov	x3, x22
	bl	_READ_VARINT_AND_CHECK
LBB0_7:
	mov	x0, x21
	bl	_XzBlock_GetNumFilters
	cbz	w0, LBB0_11
; %bb.8:
	mov	x24, #0
	mov	w8, #24
	umull	x25, w0, w8
	mov	w22, #2
Lloh2:
	adrp	x26, _XZ_FILTER_PROPS_SIZE_MAX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _XZ_FILTER_PROPS_SIZE_MAX@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x23, x8, x24
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x23
	bl	_READ_VARINT_AND_CHECK
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_READ_VARINT_AND_CHECK
	ldr	x8, [sp, #8]
	ldr	x9, [x26]
	sub	w10, w20, w22
	cmp	x8, x10
	ccmp	x8, x9, #0, le
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x8, [x23, #16]
	ldr	x0, [x23, #8]
	add	x1, x19, w22, uxtw #3
	ldr	x2, [sp, #8]
	bl	_memcpy
	ldr	w8, [sp, #8]
	add	w22, w22, w8
	add	x24, x24, #24
	cmp	x25, x24
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	w22, #2
LBB0_12:
	mov	x0, x21
	bl	_XzBlock_HasUnsupportedFlags
	cbz	x0, LBB0_14
; %bb.13:
Lloh4:
	adrp	x8, _SZ_ERROR_UNSUPPORTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SZ_ERROR_UNSUPPORTED@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
	mov	w8, w22
	cmp	w22, w20
	csel	w9, w22, w20, hi
	sub	x8, x9, x8
	add	x9, x19, w22, uxtw #3
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x10, [x9], #8
	sub	x8, x8, #1
	cbz	x10, LBB0_15
	b	LBB0_3
LBB0_17:
Lloh6:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
	b	LBB0_4
	.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	_XZ_FILTER_PROPS_SIZE_MAX,8,3   ; @XZ_FILTER_PROPS_SIZE_MAX
	.comm	_SZ_ERROR_UNSUPPORTED,4,2       ; @SZ_ERROR_UNSUPPORTED
	.comm	_SZ_OK,4,2                      ; @SZ_OK
.subsections_via_symbols
