	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rsi, %r8
	movq	32(%rbp), %r11
	movq	24(%rbp), %rcx
	movq	16(%rbp), %r15
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %r14
	movq	_SZ_OK@GOTPCREL(%rip), %r13
	movq	(%r13), %r10
	movq	$0, (%r15)
	movq	$0, (%rcx)
	movq	(%rbx), %rsi
	cmpq	$-1, %r14
	je	LBB0_1
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	cmpq	%r14, (%r12)
	jne	LBB0_5
## %bb.4:
	movq	_SZ_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_5:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	32(%rdi), %rax
	movq	%r14, %rcx
	shlq	$4, %rcx
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	addq	%rcx, %rax
	movq	%rdi, %rbx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movq	%r8, %r15
	callq	_SzFolder_GetUnpackSize
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_SzArEx_GetFolderStreamPos
	movq	%rax, %r13
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, (%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	movq	32(%rbp), %rdi
	callq	_IAlloc_Free
	movq	$0, (%rbx)
	movq	%r15, %r12
	movq	%r15, %rdi
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	callq	_LookInStream_SeekTo
	movl	%eax, %edi
	callq	_RINOK
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	_SZ_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r10
	jne	LBB0_6
## %bb.7:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r9)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	32(%rbp), %rdi
	movq	%rax, %rsi
	callq	_IAlloc_Alloc
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
LBB0_11:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_1:
	movq	%r11, %rdi
	movq	%r9, %r14
	callq	_IAlloc_Free
	movq	$-1, (%r12)
	movq	$0, (%rbx)
	movq	$0, (%r14)
	movq	(%r13), %r10
	jmp	LBB0_34
LBB0_6:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbp), %r15
	jmp	LBB0_18
LBB0_8:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
LBB0_12:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbp), %r15
	cmpq	(%rbx), %r10
	jne	LBB0_18
## %bb.13:
	movq	40(%rbp), %rdx
	movq	40(%rdi), %rcx
	movq	(%rcx,%r14,8), %rsi
	addq	24(%rdi), %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r8
	movq	%rdx, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rdx
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, %r9
	movq	%rax, %r12
	callq	_SzFolder_Decode
	movq	%rax, %r10
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.14:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_17
## %bb.15:
	movq	%r12, %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%r10, %r12
	callq	_CrcCalc
	movq	%r12, %r10
	cmpq	(%r13), %rax
	je	LBB0_17
## %bb.16:
	movq	_SZ_ERROR_CRC@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
LBB0_17:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	cmpq	(%rbx), %r10
	jne	LBB0_34
## %bb.19:
	movq	16(%rdi), %r12
	movq	$0, (%r15)
	movq	8(%rdi), %rax
	movq	(%rax,%r14,8), %rax
	cmpq	%rdx, %rax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	jae	LBB0_28
## %bb.20:
	movq	%rdx, %rsi
	subq	%rax, %rsi
	movq	%rax, %rcx
	notq	%rcx
	addq	%rdx, %rcx
	movl	%esi, %r11d
	andl	$3, %r11d
	cmpq	$3, %rcx
	jae	LBB0_22
## %bb.21:
	xorl	%ecx, %ecx
	testq	%r11, %r11
	jne	LBB0_26
	jmp	LBB0_28
LBB0_22:
	leaq	(%rax,%rax,2), %rcx
	leaq	(%r12,%rcx,8), %rdi
	addq	$88, %rdi
	andq	$-4, %rsi
	negq	%rsi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	addq	-72(%rdi), %rcx
	movq	%rcx, (%r15)
	addq	-48(%rdi), %rcx
	movq	%rcx, (%r15)
	addq	-24(%rdi), %rcx
	movq	%rcx, (%r15)
	addq	(%rdi), %rcx
	movq	%rcx, (%r15)
	addq	$-4, %rbx
	addq	$96, %rdi
	cmpq	%rbx, %rsi
	jne	LBB0_23
## %bb.24:
	subq	%rbx, %rax
	testq	%r11, %r11
	je	LBB0_28
LBB0_26:
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rax
	addq	$16, %rax
	shlq	$3, %r11
	leaq	(%r11,%r11,2), %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rax,%rsi), %rcx
	movq	%rcx, (%r15)
	addq	$24, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_27
LBB0_28:
	leaq	(%rdx,%rdx,2), %rbx
	movq	16(%r12,%rbx,8), %rsi
	movq	24(%rbp), %rax
	movq	%rsi, (%rax)
	movq	(%r15), %rdi
	leaq	(%rdi,%rsi), %rax
	cmpq	(%r9), %rax
	jbe	LBB0_29
## %bb.32:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_29:
	cmpq	$0, 8(%r12,%rbx,8)
	je	LBB0_34
## %bb.30:
	shlq	$2, %rdi
	addq	(%r8), %rdi
	movq	%r10, %r14
	callq	_CrcCalc
	movq	%r14, %r10
	cmpq	(%r12,%rbx,8), %rax
	je	LBB0_34
## %bb.31:
	movq	_SZ_ERROR_CRC@GOTPCREL(%rip), %rax
LBB0_33:
	movq	(%rax), %r10
LBB0_34:
	movq	%r10, %rax
	addq	$104, %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_CRC,8,3               ## @SZ_ERROR_CRC
	.comm	_SZ_ERROR_FAIL,8,3              ## @SZ_ERROR_FAIL
.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, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x9, x1
	ldr	x8, [x0]
	ldr	x26, [x8, x2, lsl #3]
Lloh0:
	adrp	x28, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _SZ_OK@GOTPAGEOFF]
	ldr	x22, [x29, #16]
	ldr	x21, [x28]
	str	xzr, [x6]
	str	xzr, [x7]
	ldr	x1, [x4]
	cmn	x26, #1
	b.eq	LBB0_11
; %bb.1:
	mov	x23, x6
	mov	x20, x2
	mov	x25, x0
	stp	x7, x27, [sp, #48]              ; 16-byte Folded Spill
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x8, [x24]
	cmp	x8, x26
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x24, _SZ_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SZ_OK@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
	ldr	x8, [x25, #32]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x0, x8, x26, lsl #4
	stp	x0, x20, [sp, #32]              ; 16-byte Folded Spill
	mov	x28, x9
	bl	_SzFolder_GetUnpackSize
	mov	x27, x0
	mov	x0, x25
	mov	x1, x26
	mov	w2, #0
	bl	_SzArEx_GetFolderStreamPos
	mov	x20, x0
	str	x26, [x24]
	ldr	x1, [x19]
	mov	x0, x22
	bl	_IAlloc_Free
	str	xzr, [x19]
	stp	x20, x28, [sp, #16]             ; 16-byte Folded Spill
	mov	x0, x28
	mov	x1, x20
	bl	_LookInStream_SeekTo
	bl	_RINOK
Lloh4:
	adrp	x24, _SZ_OK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x21, x8
	b.ne	LBB0_12
; %bb.5:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	x27, [x8]
	cbz	x27, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x27
	bl	_IAlloc_Alloc
	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
LBB0_7:
	ldr	x8, [x24]
	cmp	x21, x8
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	b.ne	LBB0_13
; %bb.8:
	ldr	x6, [x29, #24]
	ldr	x8, [x25, #24]
	ldr	x9, [x25, #40]
	ldr	x9, [x9, x26, lsl #3]
	add	x1, x9, x8
	ldr	x4, [x19]
	ldp	x2, x0, [sp, #24]               ; 16-byte Folded Reload
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	mov	x5, x27
	bl	_SzFolder_Decode
	mov	x21, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x26, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x0, [x19]
	mov	x1, x27
	bl	_CrcCalc
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _SZ_ERROR_CRC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SZ_ERROR_CRC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x21, x21, x9, eq
	b	LBB0_13
LBB0_11:
	mov	x0, x22
	bl	_IAlloc_Free
	mov	x8, #-1
	str	x8, [x24]
	str	xzr, [x19]
	str	xzr, [x27]
	ldr	x21, [x28]
	b	LBB0_21
LBB0_12:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
LBB0_13:
	ldr	x8, [x24]
	cmp	x21, x8
	b.ne	LBB0_21
; %bb.14:
	str	xzr, [x23]
	ldp	x8, x22, [x25, #8]
	ldr	x10, [x8, x26, lsl #3]
	cmp	x10, x20
	b.hs	LBB0_17
; %bb.15:
	mov	x8, #0
	sub	x9, x20, x10
	mov	w11, #24
	madd	x10, x10, x11, x22
	add	x10, x10, #16
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #24
	add	x8, x8, x11
	str	x8, [x23]
	subs	x9, x9, #1
	b.ne	LBB0_16
LBB0_17:
	mov	w8, #24
	madd	x8, x20, x8, x22
	ldr	x1, [x8, #16]
	ldp	x8, x9, [sp, #48]               ; 16-byte Folded Reload
	str	x1, [x8]
	ldr	x8, [x23]
	ldr	x9, [x9]
	add	x10, x8, x1
	cmp	x10, x9
	b.ls	LBB0_19
; %bb.18:
Lloh12:
	adrp	x8, _SZ_ERROR_FAIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SZ_ERROR_FAIL@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	b	LBB0_21
LBB0_19:
	mov	w9, #24
	madd	x9, x20, x9, x22
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_21
; %bb.20:
	ldr	x9, [x19]
	add	x0, x9, x8, lsl #2
	bl	_CrcCalc
	mov	w8, #24
	mul	x8, x20, x8
	ldr	x8, [x22, x8]
Lloh15:
	adrp	x9, _SZ_ERROR_CRC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SZ_ERROR_CRC@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x21, x21, x9, eq
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_SZ_ERROR_MEM,8,3               ; @SZ_ERROR_MEM
	.comm	_SZ_ERROR_CRC,8,3               ; @SZ_ERROR_CRC
	.comm	_SZ_ERROR_FAIL,8,3              ; @SZ_ERROR_FAIL
.subsections_via_symbols
