	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_7zip_read_data
_archive_read_format_7zip_read_data:    ## @archive_read_format_7zip_read_data
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %rax
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, (%r14)
LBB0_2:
	cmpq	$0, 56(%r14)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %r12
	movq	%rcx, %r15
	callq	_read_consume
	movq	%r15, %rcx
	movq	%r12, %r15
LBB0_4:
	movq	8(%r14), %rax
	movq	%rax, (%rcx)
	movq	$0, (%r15)
	movq	$0, (%r13)
	cmpl	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_6:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_read_stream
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %r12
	subq	%rax, 24(%r14)
	jne	LBB0_9
## %bb.8:
	movl	$1, 16(%r14)
LBB0_9:
	movq	40(%r14), %rax
	movq	_CRC32_IS_SET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	32(%r14), %rdi
	movq	(%r13), %rsi
	movq	%rdx, %r13
	movl	%r12d, %edx
	callq	_crc32
	movq	%r13, %rdx
	movq	%rax, 32(%r14)
LBB0_11:
	cmpl	$0, 16(%r14)
	je	LBB0_17
## %bb.12:
	movq	40(%r14), %rax
	movl	(%rdx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.13:
	movq	32(%r14), %rcx
	movq	48(%r14), %rdx
	movq	8(%rax), %rax
	movq	(%rdx,%rax,8), %r8
	cmpq	%rcx, %r8
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_18
## %bb.14:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_15:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_18:
	movq	%r12, (%r15)
	movq	8(%r14), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rdx, (%rcx)
	addq	%r12, 8(%r14)
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,8,3 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated 7-Zip file body"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_CRC32_IS_SET,4,2               ## @CRC32_IS_SET
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.1:                               ## @.str.1
	.asciz	"7-Zip bad CRC: 0x%lx should be 0x%lx"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.no_dead_strip	_archive_read_format_7zip_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_read_format_7zip_read_data
_archive_read_format_7zip_read_data:    ; @archive_read_format_7zip_read_data
	.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, x3
	mov	x20, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
	ldr	x8, [x25]
Lloh3:
	adrp	x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x25]
LBB0_2:
	ldr	x8, [x25, #56]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_read_consume
LBB0_4:
	ldr	x8, [x25, #8]
	str	x8, [x19]
	str	xzr, [x20]
	str	xzr, [x24]
	ldr	w8, [x25, #16]
	cbz	w8, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_7:
	ldr	x2, [x25, #24]
	mov	x0, x22
	mov	x1, x24
	mov	w3, #0
	bl	_read_stream
	cbz	x0, LBB0_18
; %bb.8:
	mov	x23, x0
	ldr	x8, [x25, #24]
	subs	x8, x8, x0
	str	x8, [x25, #24]
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x25, #16]
LBB0_10:
	ldr	x8, [x25, #40]
	ldr	w8, [x8]
Lloh8:
	adrp	x26, _CRC32_IS_SET@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CRC32_IS_SET@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x0, [x25, #32]
	ldr	x1, [x24]
	mov	x2, x23
	bl	_crc32
	str	x0, [x25, #32]
LBB0_12:
	ldr	w8, [x25, #16]
	cbz	w8, LBB0_16
; %bb.13:
	ldr	x8, [x25, #40]
	ldr	w9, [x8]
	ldr	w10, [x26]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.14:
	ldr	x9, [x25, #48]
	ldr	x8, [x8, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x9, [x25, #32]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
Lloh10:
	adrp	x10, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x10]
	stp	x9, x8, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_archive_set_error
Lloh15:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
LBB0_16:
	str	x23, [x20]
	ldr	x8, [x25, #8]
	str	x8, [x19]
	ldr	x8, [x25, #8]
	add	x8, x8, x23
	str	x8, [x25, #8]
LBB0_17:
	mov	x0, x21
	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_18:
Lloh18:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_archive_set_error
Lloh23:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,8,3 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated 7-Zip file body"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_CRC32_IS_SET,4,2               ; @CRC32_IS_SET
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.1:                               ; @.str.1
	.asciz	"7-Zip bad CRC: 0x%lx should be 0x%lx"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.no_dead_strip	_archive_read_format_7zip_read_data
.subsections_via_symbols
