	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_zip_read_data
_archive_read_format_zip_read_data:     ## @archive_read_format_zip_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movl	(%r13), %eax
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	$0, (%r13)
LBB0_2:
	movl	4(%r13), %eax
	movl	%eax, (%rbx)
	movq	$0, (%r12)
	movq	$0, (%r15)
	cmpq	$0, 48(%r13)
	jne	LBB0_7
## %bb.3:
	movq	_AE_IFREG@GOTPCREL(%rip), %rax
	movq	32(%r13), %rcx
	movq	_AE_IFMT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	cmpl	%edx, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	64(%r13), %rsi
	movq	%r14, %rdi
	callq	___archive_read_consume
	movq	$0, 64(%r13)
	cmpq	$0, 56(%r13)
	je	LBB0_15
## %bb.5:
	movl	$1, (%r13)
	movq	32(%r13), %rax
	movq	_ZIP_STRONG_ENCRYPTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_10
## %bb.6:
	movq	%r14, %rdi
	callq	_read_decryption_header
	jmp	LBB0_13
LBB0_7:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	8(%rax), %eax
	movq	_WINZIP_AES_ENCRYPTION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_init_WinZip_AES_decryption
	jmp	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_init_traditional_PKWARE_decryption
LBB0_13:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.14:
	movq	$0, 56(%r13)
LBB0_15:
	movq	32(%r13), %rax
	movslq	8(%rax), %rdi
	cmpq	$98, %rdi
	je	LBB0_18
## %bb.16:
	testl	%edi, %edi
	jne	LBB0_26
## %bb.17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_zip_read_data_none
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_zip_read_data_zipx_ppmd
LBB0_19:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.20:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.21:
	movq	8(%r13), %rdi
	movq	(%r15), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*16(%r13)
	movq	%rax, 8(%r13)
LBB0_22:
	cmpq	$0, 48(%r13)
	je	LBB0_33
## %bb.23:
	movq	24(%r13), %rcx
	movq	32(%r13), %rax
	movq	16(%rax), %r8
	cmpq	%rcx, %r8
	jne	LBB0_27
## %bb.24:
	movslq	24(%rax), %r8
	movq	_UINT32_MAX@GOTPCREL(%rip), %rdx
	movslq	4(%r13), %rcx
	movl	%ecx, %esi
	xorl	%r8d, %esi
	testl	%esi, (%rdx)
	je	LBB0_29
## %bb.25:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_28
LBB0_26:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdi, %rbx
	callq	_compression_name
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_27:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_28:
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_29:
	cmpl	$0, 44(%r13)
	je	LBB0_31
## %bb.30:
	movq	40(%rax), %rcx
	movq	_AES_VENDOR_AE_2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_33
LBB0_31:
	movq	32(%rax), %r8
	movq	8(%r13), %rcx
	cmpq	%rcx, %r8
	je	LBB0_33
## %bb.32:
	cmpl	$0, 40(%r13)
	je	LBB0_34
LBB0_33:
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_34:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,4,2 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_AE_IFREG,4,2                   ## @AE_IFREG
	.comm	_AE_IFMT,4,2                    ## @AE_IFMT
	.comm	_ZIP_STRONG_ENCRYPTED,4,2       ## @ZIP_STRONG_ENCRYPTED
	.comm	_WINZIP_AES_ENCRYPTION,4,2      ## @WINZIP_AES_ENCRYPTION
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported ZIP compression method (%d: %s)"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.1:                               ## @.str.1
	.asciz	"ZIP compressed data is wrong size (read %jd, expected %jd)"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
L_.str.2:                               ## @.str.2
	.asciz	"ZIP uncompressed data is wrong size (read %jd, expected %jd)\n"

	.comm	_AES_VENDOR_AE_2,8,3            ## @AES_VENDOR_AE_2
L_.str.3:                               ## @.str.3
	.asciz	"ZIP bad CRC: 0x%lx should be 0x%lx"

	.no_dead_strip	_archive_read_format_zip_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_zip_read_data
_archive_read_format_zip_read_data:     ; @archive_read_format_zip_read_data
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	str	wzr, [x23]
LBB0_2:
	ldr	w8, [x23, #4]
	str	w8, [x22]
	str	xzr, [x21]
	str	xzr, [x20]
	ldr	x8, [x23, #48]
	cbnz	x8, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x23, #32]
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AE_IFMT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AE_IFMT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.4:
	ldr	x1, [x23, #64]
	mov	x0, x19
	bl	___archive_read_consume
	str	xzr, [x23, #64]
	ldr	x8, [x23, #56]
Lloh9:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.5:
	mov	w8, #1
	str	w8, [x23]
	ldr	x8, [x23, #32]
	ldr	w9, [x8, #4]
Lloh11:
	adrp	x10, _ZIP_STRONG_ENCRYPTED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ZIP_STRONG_ENCRYPTED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_read_decryption_header
	b	LBB0_13
LBB0_7:
Lloh14:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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_10:
	ldr	w8, [x8, #8]
Lloh16:
	adrp	x9, _WINZIP_AES_ENCRYPTION@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WINZIP_AES_ENCRYPTION@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	bl	_init_WinZip_AES_decryption
	b	LBB0_13
LBB0_12:
	bl	_init_traditional_PKWARE_decryption
LBB0_13:
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.14:
	str	xzr, [x23, #56]
LBB0_15:
	ldr	x8, [x23, #32]
	ldr	w8, [x8, #8]
	cmp	w8, #98
	b.eq	LBB0_18
; %bb.16:
	cbnz	w8, LBB0_26
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_zip_read_data_none
	b	LBB0_19
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_zip_read_data_zipx_ppmd
LBB0_19:
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.20:
	ldr	x2, [x21]
	cbz	x2, LBB0_22
; %bb.21:
	ldp	x0, x8, [x23, #8]
	ldr	x1, [x20]
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x8
	str	x0, [x23, #8]
LBB0_22:
	ldr	x8, [x23, #48]
	cbz	x8, LBB0_33
; %bb.23:
	ldp	x3, x8, [x23, #24]
	ldr	x4, [x8, #16]
	cmp	x4, x3
	b.ne	LBB0_27
; %bb.24:
	ldrsw	x4, [x8, #24]
Lloh19:
	adrp	x9, _UINT32_MAX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _UINT32_MAX@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldrsw	x3, [x23, #4]
	eor	w10, w3, w4
	tst	w10, w9
	b.eq	LBB0_29
; %bb.25:
Lloh22:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_26:
	sxtw	x20, w8
Lloh27:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh29:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_compression_name
	mov	x4, x0
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_archive_set_error
Lloh32:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_8
LBB0_27:
Lloh34:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.1@PAGE
Lloh38:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_28:
	mov	x0, x19
	bl	_archive_set_error
Lloh39:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
	b	LBB0_8
LBB0_29:
	ldr	w9, [x23, #44]
	cbz	w9, LBB0_31
; %bb.30:
	ldr	x9, [x8, #40]
Lloh41:
	adrp	x10, _AES_VENDOR_AE_2@GOTPAGE
Lloh42:
	ldr	x10, [x10, _AES_VENDOR_AE_2@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_33
LBB0_31:
	ldr	x4, [x8, #32]
	ldr	x3, [x23, #8]
	cmp	x4, x3
	b.eq	LBB0_33
; %bb.32:
	ldr	w8, [x23, #40]
	cbz	w8, LBB0_34
LBB0_33:
	ldr	w0, [x24]
	b	LBB0_9
LBB0_34:
Lloh44:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x2, l_.str.3@PAGE
Lloh48:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,4,2 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_AE_IFREG,4,2                   ; @AE_IFREG
	.comm	_AE_IFMT,4,2                    ; @AE_IFMT
	.comm	_ZIP_STRONG_ENCRYPTED,4,2       ; @ZIP_STRONG_ENCRYPTED
	.comm	_WINZIP_AES_ENCRYPTION,4,2      ; @WINZIP_AES_ENCRYPTION
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported ZIP compression method (%d: %s)"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.1:                               ; @.str.1
	.asciz	"ZIP compressed data is wrong size (read %jd, expected %jd)"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
l_.str.2:                               ; @.str.2
	.asciz	"ZIP uncompressed data is wrong size (read %jd, expected %jd)\n"

	.comm	_AES_VENDOR_AE_2,8,3            ; @AES_VENDOR_AE_2
l_.str.3:                               ; @.str.3
	.asciz	"ZIP bad CRC: 0x%lx should be 0x%lx"

	.no_dead_strip	_archive_read_format_zip_read_data
.subsections_via_symbols
