	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SzArEx_Extract                 ## -- Begin function SzArEx_Extract
	.p2align	4, 0x90
_SzArEx_Extract:                        ## @SzArEx_Extract
	.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
	movq	%r9, %r15
	movq	%rcx, %r14
	movq	%rsi, %r10
	movl	32(%rbp), %r11d
	movq	24(%rbp), %rcx
	movq	16(%rbp), %rbx
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %r13
	movq	_SZ_OK@GOTPCREL(%rip), %r9
	movq	(%r9), %r12
	movq	$0, (%rbx)
	movq	$0, (%rcx)
	movq	(%r8), %rsi
	cmpq	$-1, %r13
	je	LBB0_1
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.3:
	cmpq	%r13, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_5:
	movq	%r10, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	36(%rdi), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_SzAr_GetFolderUnpackSize
	movq	%rax, %rbx
	movq	%r13, (%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movl	32(%rbp), %edi
	callq	_ISzAlloc_Free
	movq	_SZ_OK@GOTPCREL(%rip), %r9
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	$0, (%r8)
	cmpq	(%r9), %r12
	jne	LBB0_6
## %bb.7:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rbx, (%r14)
	testq	%rbx, %rbx
	movq	%rbx, %r11
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.9:
	movl	32(%rbp), %edi
	movq	%r11, %r15
	movq	%r11, %rsi
	callq	_ISzAlloc_Alloc
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, (%r8)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
LBB0_11:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rbp), %rcx
	movq	16(%rbp), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_SZ_OK@GOTPCREL(%rip), %r9
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	%r15, %r11
	cmpq	(%r9), %r12
	je	LBB0_13
	jmp	LBB0_14
LBB0_1:
	movl	%r11d, %edi
	movq	%r8, %rbx
	movq	%r9, %r12
	callq	_ISzAlloc_Free
	movq	$-1, (%r14)
	movq	$0, (%rbx)
	movq	$0, (%r15)
	movq	(%r12), %r12
	jmp	LBB0_21
LBB0_6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rbp), %rcx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbp), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_8:
	xorl	%eax, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rbp), %rcx
	movq	16(%rbp), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	cmpq	(%r9), %r12
	jne	LBB0_14
LBB0_13:
	movl	40(%rbp), %edx
	movl	32(%rdi), %ecx
	movl	%edx, (%rsp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r10, %rdx
	movq	%rax, %r8
	movq	%r11, %r9
	callq	_SzAr_DecodeFolder
	movq	_SZ_OK@GOTPCREL(%rip), %r9
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rbp), %rbx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	24(%rbp), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %r12
LBB0_14:
	cmpq	(%r9), %r12
	jne	LBB0_21
## %bb.15:
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	movq	(%rax,%rdx,8), %r10
	movq	(%rsi,%r13,8), %r9
	movq	%r10, %rsi
	subq	(%rax,%r9,8), %rsi
	movq	%rsi, (%rbx)
	movq	8(%rax,%rdx,8), %rax
	subq	%r10, %rax
	movq	%rax, (%rcx)
	addq	(%rbx), %rax
	cmpq	(%r14), %rax
	jbe	LBB0_16
## %bb.19:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	%r8, %r15
	movq	%rcx, %r13
	addq	$24, %rdi
	movq	%rdx, %rsi
	movq	%rdi, %r14
	callq	_SzBitWithVals_Check
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	movq	(%r13), %rsi
	callq	_CrcCalc
	movq	(%r14), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx,%rdx,8), %rax
	je	LBB0_21
## %bb.18:
	movq	_SZ_ERROR_CRC@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %r12
LBB0_21:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_SZ_ERROR_MEM,8,3               ## @SZ_ERROR_MEM
	.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	_SzArEx_Extract                 ; -- Begin function SzArEx_Extract
	.p2align	2
_SzArEx_Extract:                        ; @SzArEx_Extract
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x27, x5
	mov	x19, x4
	mov	x24, x3
	mov	x10, x1
	ldr	x8, [x0]
	ldr	x26, [x8, x2, lsl #3]
Lloh0:
	adrp	x9, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SZ_OK@GOTPAGEOFF]
	ldr	w28, [x29, #16]
	ldr	x21, [x9]
	str	xzr, [x6]
	str	xzr, [x7]
	ldr	x1, [x4]
	cmn	x26, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x22, x7
	mov	x23, x6
	mov	x20, x2
	mov	x25, x0
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x8, [x24]
	cmp	x8, x26
	b.ne	LBB0_4
; %bb.3:
	mov	x24, x27
	b	LBB0_12
LBB0_4:
	stp	x10, x22, [sp, #16]             ; 16-byte Folded Spill
	add	x0, x25, #36
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x26
	bl	_SzAr_GetFolderUnpackSize
	mov	x22, x0
	str	x26, [x24]
	ldr	x1, [x19]
	mov	x0, x28
	bl	_ISzAlloc_Free
Lloh2:
	adrp	x9, _SZ_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SZ_OK@GOTPAGEOFF]
	str	xzr, [x19]
	ldr	x8, [x9]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.5:
	mov	x24, x27
	str	x22, [x27]
	mov	x27, x22
	cbz	x22, LBB0_9
; %bb.6:
	mov	x0, x28
	mov	x1, x27
	bl	_ISzAlloc_Alloc
Lloh4:
	adrp	x9, _SZ_OK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SZ_OK@GOTPAGEOFF]
	mov	x4, x0
	str	x0, [x19]
Lloh6:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x21, x8, x21, eq
	b	LBB0_10
LBB0_7:
	mov	x0, x28
	mov	x20, x9
	bl	_ISzAlloc_Free
	mov	x8, #-1
	str	x8, [x24]
	str	xzr, [x19]
	str	xzr, [x27]
	ldr	x21, [x20]
	b	LBB0_17
LBB0_8:
	mov	x24, x27
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_12
LBB0_9:
	mov	x4, #0
LBB0_10:
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x8, [x9]
	cmp	x21, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	w6, [x29, #20]
	ldr	w3, [x25, #32]
	ldp	x0, x2, [sp, #8]                ; 16-byte Folded Reload
	mov	x1, x26
	mov	x5, x27
	bl	_SzAr_DecodeFolder
Lloh9:
	adrp	x9, _SZ_OK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SZ_OK@GOTPAGEOFF]
	mov	x21, x0
LBB0_12:
	ldr	x8, [x9]
	cmp	x21, x8
	b.ne	LBB0_17
; %bb.13:
	ldp	x8, x9, [x25, #8]
	add	x10, x8, x20, lsl #3
	ldr	x9, [x9, x26, lsl #3]
	ldr	x11, [x10]
	ldr	x8, [x8, x9, lsl #3]
	sub	x8, x11, x8
	str	x8, [x23]
	ldr	x8, [x10, #8]
	sub	x8, x8, x11
	str	x8, [x22]
	ldr	x9, [x23]
	add	x8, x9, x8
	ldr	x9, [x24]
	cmp	x8, x9
	b.ls	LBB0_15
; %bb.14:
Lloh11:
	adrp	x8, _SZ_ERROR_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SZ_ERROR_FAIL@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	b	LBB0_17
LBB0_15:
	add	x24, x25, #24
	mov	x0, x24
	mov	x1, x20
	bl	_SzBitWithVals_Check
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x0, x8, x9, lsl #2
	ldr	x1, [x22]
	bl	_CrcCalc
	ldr	x8, [x24]
	ldr	x8, [x8, x20, lsl #3]
Lloh14:
	adrp	x9, _SZ_ERROR_CRC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SZ_ERROR_CRC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x21, x21, x9, eq
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_SZ_ERROR_MEM,8,3               ; @SZ_ERROR_MEM
	.comm	_SZ_ERROR_FAIL,8,3              ; @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_CRC,8,3               ; @SZ_ERROR_CRC
.subsections_via_symbols
