	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_stream
_read_stream:                           ## @read_stream
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	cmpq	$0, (%r13)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r13)
	jg	LBB0_2
## %bb.5:
	cmpq	$0, 16(%r13)
	jle	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_extract_pack_stream
	testq	%rax, %rax
	js	LBB0_18
LBB0_3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_uncompressed_data          ## TAILCALL
LBB0_6:
	cmpq	$0, 24(%r13)
	je	LBB0_8
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_22:
	movq	%r15, %rdi
	callq	_seek_pack
	testq	%rax, %rax
	js	LBB0_18
## %bb.23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_extract_pack_stream
	testq	%rax, %rax
	js	LBB0_18
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, 8(%r13)
	jg	LBB0_27
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpq	$0, 16(%r13)
	jle	LBB0_32
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_extract_pack_stream
	testq	%rax, %rax
	js	LBB0_18
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_get_uncompressed_data
	testq	%rax, %rax
	js	LBB0_18
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	subq	%rax, %r14
	cmpq	$0, 40(%r13)
	je	LBB0_24
## %bb.30:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rdi
	callq	_read_consume
	jmp	LBB0_24
LBB0_8:
	cmpq	$0, 72(%r13)
	je	LBB0_11
## %bb.9:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_10:
	movq	%r15, %rdi
	callq	_archive_set_error
LBB0_20:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
LBB0_33:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_13:
	movq	56(%r13), %rax
	movq	64(%r13), %rcx
	movq	(%rcx), %rsi
	movq	(%rax,%rsi,8), %r14
	movq	%r14, %rax
	orq	%rsi, %rax
	jne	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_15:
	movq	%rsi, 32(%r13)
LBB0_16:
	cmpq	48(%r13), %rsi
	jae	LBB0_17
## %bb.19:
	shlq	$3, %rsi
	addq	56(%r13), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_setup_decode_folder
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.21:
	incq	32(%r13)
	jmp	LBB0_22
LBB0_17:
	movq	$0, (%r12)
	xorl	%eax, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Malformed 7-Zip archive"

	.comm	_ARCHIVE_FATAL,8,3              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
L_.str.1:                               ## @.str.1
	.asciz	"Truncated 7-Zip file body"

	.no_dead_strip	_read_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_stream
_read_stream:                           ; @read_stream
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldr	x8, [x24]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x24, #8]
	cmp	x8, #1
	b.ge	LBB0_3
; %bb.2:
	ldr	x8, [x24, #16]
	cmp	x8, #1
	b.lt	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_extract_pack_stream
	tbnz	x0, #63, LBB0_31
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_get_uncompressed_data
LBB0_5:
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_18
; %bb.6:
	mov	x23, #0
LBB0_7:
	mov	x0, x20
	bl	_seek_pack
	tbnz	x0, #63, LBB0_31
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_extract_pack_stream
	tbnz	x0, #63, LBB0_31
; %bb.9:
	cbnz	x23, LBB0_11
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	x23, LBB0_4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	cbnz	x8, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, #8]
	cmp	x8, #1
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24, #16]
	cmp	x8, #1
	b.lt	LBB0_32
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_extract_pack_stream
	tbnz	x0, #63, LBB0_31
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	bl	_get_uncompressed_data
	tbnz	x0, #63, LBB0_31
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x23, x23, x0
	ldr	x8, [x24, #40]
	cbz	x8, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_read_consume
	b	LBB0_10
LBB0_18:
	ldr	x8, [x24, #72]
	cbz	x8, LBB0_22
; %bb.19:
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_20:
	mov	x0, x20
	bl	_archive_set_error
LBB0_21:
Lloh5:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	b	LBB0_31
LBB0_22:
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x23, #0
	b	LBB0_27
LBB0_24:
	ldp	x9, x8, [x24, #56]
	ldr	x8, [x8]
	ldr	x23, [x9, x8, lsl #3]
	orr	x9, x23, x8
	cbnz	x9, LBB0_26
; %bb.25:
	mov	x8, #0
	mov	x23, #0
	b	LBB0_27
LBB0_26:
	str	x8, [x24, #32]
LBB0_27:
	ldr	x9, [x24, #48]
	cmp	x8, x9
	b.hs	LBB0_30
; %bb.28:
	ldr	x9, [x24, #56]
	add	x1, x9, x8, lsl #3
	mov	x0, x20
	mov	w2, #0
	bl	_setup_decode_folder
Lloh8:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.29:
	ldr	x8, [x24, #32]
	add	x8, x8, #1
	str	x8, [x24, #32]
	b	LBB0_7
LBB0_30:
	mov	x0, #0
	str	xzr, [x22]
LBB0_31:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_32:
Lloh11:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_20
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Malformed 7-Zip archive"

	.comm	_ARCHIVE_FATAL,8,3              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
l_.str.1:                               ; @.str.1
	.asciz	"Truncated 7-Zip file body"

	.no_dead_strip	_read_stream
.subsections_via_symbols
