	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SzAr_DecodeFolder              ## -- Begin function SzAr_DecodeFolder
	.p2align	4, 0x90
_SzAr_DecodeFolder:                     ## @SzAr_DecodeFolder
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movslq	(%rax,%rsi,4), %rcx
	movq	%rcx, %r13
	shlq	$2, %r13
	addq	56(%rdi), %r13
	movq	%r13, -120(%rbp)
	movl	4(%rax,%rsi,4), %eax
	subl	%ecx, %eax
	movl	%eax, -128(%rbp)
	leaq	-104(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	callq	_SzGetNextFolderItem
	movq	%rax, %r12
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_10
## %bb.1:
	cmpl	$0, -128(%rbp)
	jne	LBB0_4
## %bb.2:
	movq	-104(%rbp), %rax
	movq	8(%rbx), %rcx
	cmpq	(%rcx,%r15,8), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SzAr_GetFolderUnpackSize
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.5:
	movl	16(%rbp), %r10d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rdx
	shlq	$2, %rdx
	addq	48(%rbx), %rdx
	movq	32(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	addq	40(%rbx), %rcx
	leaq	-80(%rbp), %rax
	leaq	-104(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r14, %r8
	movl	-92(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	movq	%r10, %r13
	pushq	%r10
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	pushq	%r14
	callq	_SzFolder_Decode2
	addq	$32, %rsp
	movq	%rax, %r12
	movq	-80(%rbp), %rsi
	movl	%r13d, %edi
	callq	_ISzAlloc_Free
	movq	-72(%rbp), %rsi
	movl	%r13d, %edi
	callq	_ISzAlloc_Free
	movq	-64(%rbp), %rsi
	movl	%r13d, %edi
	callq	_ISzAlloc_Free
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_10
## %bb.6:
	addq	$24, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_SzBitWithVals_Check
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_CrcCalc
	movq	(%rbx), %rcx
	cmpq	(%rcx,%r15,8), %rax
	je	LBB0_10
## %bb.8:
	movq	_SZ_ERROR_CRC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %r12
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_SZ_ERROR_FAIL,8,3              ## @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_CRC,8,3               ## @SZ_ERROR_CRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SzAr_DecodeFolder              ; -- Begin function SzAr_DecodeFolder
	.p2align	2
_SzAr_DecodeFolder:                     ; @SzAr_DecodeFolder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x23, x6
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x8, [x0, #56]
	ldr	x9, [x0]
	add	x9, x9, x1, lsl #2
	ldrsw	x10, [x9]
	add	x27, x8, x10, lsl #2
	str	x27, [sp, #32]
	ldr	w8, [x9, #4]
	sub	w8, w8, w10
	str	w8, [sp, #24]
	add	x0, sp, #40
	add	x1, sp, #24
	bl	_SzGetNextFolderItem
	mov	x26, x0
Lloh3:
	adrp	x28, _SZ_OK@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [sp, #24]
	cbnz	w8, LBB0_7
; %bb.2:
	ldr	x8, [sp, #40]
	ldr	x9, [x22, #8]
	ldr	x9, [x9, x19, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	bl	_SzAr_GetFolderUnpackSize
	cmp	x0, x20
	b.ne	LBB0_7
; %bb.4:
	stp	xzr, xzr, [sp, #48]
	str	xzr, [sp, #64]
	ldr	x8, [x22, #48]
	ldr	x9, [x22, #16]
	lsl	x10, x19, #3
	ldr	x9, [x9, x10]
	add	x2, x8, x9, lsl #2
	ldp	x9, x8, [x22, #32]
	ldr	x9, [x9, x10]
	add	x3, x9, x8
	add	x8, sp, #48
	str	x8, [sp, #8]
	str	w23, [sp]
	add	x0, sp, #40
	mov	x1, x27
	mov	x4, x25
	mov	x5, x24
	mov	x6, x21
	mov	x7, x20
	bl	_SzFolder_Decode2
	mov	x26, x0
	ldr	x1, [sp, #48]
	mov	x0, x23
	bl	_ISzAlloc_Free
	ldr	x1, [sp, #56]
	mov	x0, x23
	bl	_ISzAlloc_Free
	ldr	x1, [sp, #64]
	mov	x0, x23
	bl	_ISzAlloc_Free
	ldr	x8, [x28]
	cmp	x26, x8
	b.ne	LBB0_8
; %bb.5:
	add	x22, x22, #24
	mov	x0, x22
	mov	x1, x19
	bl	_SzBitWithVals_Check
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_CrcCalc
	ldr	x8, [x22]
	ldr	x8, [x8, x19, lsl #3]
Lloh5:
	adrp	x9, _SZ_ERROR_CRC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SZ_ERROR_CRC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x26, x26, x9, eq
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _SZ_ERROR_FAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SZ_ERROR_FAIL@GOTPAGEOFF]
Lloh10:
	ldr	x26, [x8]
LBB0_8:
	ldr	x8, [sp, #72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_SZ_ERROR_FAIL,8,3              ; @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_CRC,8,3               ; @SZ_ERROR_CRC
.subsections_via_symbols
