	.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_skip_streamable
_archive_read_format_zip_read_data_skip_streamable: ## @archive_read_format_zip_read_data_skip_streamable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %esi
	callq	___archive_read_consume
	movl	$0, (%rbx)
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.2:
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	movq	_ZIP_LENGTH_AT_END@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rax)
	jle	LBB0_9
LBB0_4:
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	___archive_read_consume
	testq	%rax, %rax
	js	LBB0_6
LBB0_5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	cmpq	$0, 32(%rbx)
	je	LBB0_17
## %bb.10:
	movl	$1, 8(%rbx)
	movq	_ZIP_STRONG_ENCRYPTED@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_read_decryption_header
	jmp	LBB0_15
LBB0_12:
	movl	16(%rax), %eax
	movq	_WINZIP_AES_ENCRYPTION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_init_WinZip_AES_decryption
	jmp	LBB0_15
LBB0_14:
	movq	%r15, %rdi
	callq	_init_traditional_PKWARE_decryption
LBB0_15:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.16:
	movq	$0, 32(%rbx)
LBB0_17:
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$16, %esi
	callq	___archive_read_ahead
	movl	-28(%rbp), %ecx
	cmpl	$16, %ecx
	jge	LBB0_19
LBB0_18:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_archive_set_error
LBB0_6:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	-28(%rbp), %r14
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	subl	%eax, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___archive_read_consume
	movq	%r15, %rdi
	movl	$16, %esi
	movq	%r14, %rdx
	callq	___archive_read_ahead
	movl	-28(%rbp), %ecx
	cmpl	$16, %ecx
	jl	LBB0_18
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movl	%ecx, %ecx
	addq	%rax, %rcx
	addq	$-16, %rcx
	movq	%rax, %rsi
	cmpq	%rcx, %rax
	jbe	LBB0_24
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=2
	addq	$4, %rsi
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	cmpq	%rcx, %rsi
	ja	LBB0_20
LBB0_24:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	3(%rsi), %edx
	cmpb	$74, %dl
	jg	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$7, %dl
	je	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$8, %dl
	jne	LBB0_22
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$7, 2(%rsi)
	jne	LBB0_22
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$75, 1(%rsi)
	jne	LBB0_22
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$80, (%rsi)
	jne	LBB0_22
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$80, %dl
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$75, %dl
	jne	LBB0_22
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=2
	addq	$2, %rsi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=2
	incq	%rsi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_24 Depth=2
	addq	$3, %rsi
	jmp	LBB0_23
LBB0_35:
	movq	16(%rbx), %rcx
	movq	_LA_USED_ZIP64@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%eax, %esi
	testl	%edx, 20(%rcx)
	je	LBB0_37
## %bb.36:
	addl	$24, %esi
	jmp	LBB0_38
LBB0_37:
	addl	$16, %esi
LBB0_38:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	___archive_read_consume
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ZIP_LENGTH_AT_END,4,2          ## @ZIP_LENGTH_AT_END
	.comm	_ZIP_STRONG_ENCRYPTED,4,2       ## @ZIP_STRONG_ENCRYPTED
	.comm	_WINZIP_AES_ENCRYPTION,4,2      ## @WINZIP_AES_ENCRYPTION
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated ZIP file data"

	.comm	_LA_USED_ZIP64,4,2              ## @LA_USED_ZIP64
	.no_dead_strip	_archive_read_format_zip_read_data_skip_streamable
.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_skip_streamable
_archive_read_format_zip_read_data_skip_streamable: ; @archive_read_format_zip_read_data_skip_streamable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w1, [x20]
	bl	___archive_read_consume
	str	wzr, [x20]
	tbnz	x0, #63, LBB0_31
; %bb.1:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _ZIP_LENGTH_AT_END@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ZIP_LENGTH_AT_END@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	x10, [x8, #8]
	cmp	x10, #1
	b.lt	LBB0_6
LBB0_4:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	___archive_read_consume
	tbnz	x0, #63, LBB0_31
LBB0_5:
Lloh3:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_32
LBB0_6:
	ldr	x10, [x20, #32]
	cbz	x10, LBB0_15
; %bb.7:
	mov	w10, #1
	str	w10, [x20, #8]
Lloh5:
	adrp	x10, _ZIP_STRONG_ENCRYPTED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ZIP_STRONG_ENCRYPTED@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_read_decryption_header
	b	LBB0_12
LBB0_9:
	ldr	w8, [x8, #16]
Lloh8:
	adrp	x9, _WINZIP_AES_ENCRYPTION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WINZIP_AES_ENCRYPTION@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	bl	_init_WinZip_AES_decryption
	b	LBB0_12
LBB0_11:
	bl	_init_traditional_PKWARE_decryption
LBB0_12:
Lloh11:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_33
; %bb.13:
	str	xzr, [x20, #32]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	w1, w8, w0
	mov	x0, x19
	bl	___archive_read_consume
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #16
	bl	___archive_read_ahead
	ldr	w8, [sp, #12]
	cmp	w8, #16
	b.lt	LBB0_30
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x0, w8, uxtw
	sub	x9, x8, #16
	mov	x8, x0
	cmp	x0, x9
	b.ls	LBB0_19
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x8, #4
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	cmp	x8, x9
	b.hi	LBB0_14
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x11, x8
	ldrb	w10, [x11, #3]!
	cmp	w10, #74
	b.gt	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	cmp	w10, #7
	b.eq	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	cmp	w10, #8
	b.ne	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	ldrb	w10, [x8, #2]
	cmp	w10, #7
	b.ne	LBB0_17
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=2
	ldrb	w10, [x8, #1]
	cmp	w10, #75
	b.ne	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=2
	ldrb	w10, [x8]
	cmp	w10, #80
	b.ne	LBB0_17
	b	LBB0_34
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=2
	cmp	w10, #80
	b.eq	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=2
	cmp	w10, #75
	b.ne	LBB0_17
; %bb.27:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x8, #2
	b	LBB0_18
LBB0_28:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x8, #1
	b	LBB0_18
LBB0_29:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x8, x11
	b	LBB0_18
LBB0_30:
Lloh14:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
LBB0_31:
Lloh19:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_32:
	ldr	w0, [x8]
LBB0_33:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_34:
	ldr	x9, [x20, #16]
	ldr	w9, [x9, #20]
Lloh21:
	adrp	x10, _LA_USED_ZIP64@GOTPAGE
Lloh22:
	ldr	x10, [x10, _LA_USED_ZIP64@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	sub	w8, w8, w0
	and	w9, w10, w9
	cbz	w9, LBB0_36
; %bb.35:
	add	w1, w8, #24
	b	LBB0_37
LBB0_36:
	add	w1, w8, #16
LBB0_37:
	mov	x0, x19
	bl	___archive_read_consume
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ZIP_LENGTH_AT_END,4,2          ; @ZIP_LENGTH_AT_END
	.comm	_ZIP_STRONG_ENCRYPTED,4,2       ; @ZIP_STRONG_ENCRYPTED
	.comm	_WINZIP_AES_ENCRYPTION,4,2      ; @WINZIP_AES_ENCRYPTION
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated ZIP file data"

	.comm	_LA_USED_ZIP64,4,2              ; @LA_USED_ZIP64
	.no_dead_strip	_archive_read_format_zip_read_data_skip_streamable
.subsections_via_symbols
