	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_zip_streamable_read_header
_archive_read_format_zip_streamable_read_header: ## @archive_read_format_zip_streamable_read_header
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	_ARCHIVE_FORMAT_ZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r13)
LBB0_2:
	movq	16(%r13), %rax
	movq	(%rax), %r15
	movq	(%r15), %rax
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	$0, (%r15)
LBB0_4:
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.5:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rdi
	movq	%rax, 56(%r15)
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%rdi, 48(%r15)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpq	$0, 24(%r15)
	je	LBB0_9
## %bb.8:
	leaq	44(%r15), %rdi
	callq	_archive_decrypto_aes_ctr_release
LBB0_9:
	leaq	16(%r15), %rbx
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.10:
	leaq	40(%r15), %rdi
	callq	_archive_hmac_sha1_cleanup
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	movq	%r13, %rdi
	callq	___archive_read_reset_passphrase
	movq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	___archive_read_consume
	movq	$0, 8(%r15)
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_27
## %bb.12:
	leaq	-44(%rbp), %r12
	leaq	LJTI0_0(%rip), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%esi, %esi
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	callq	___archive_read_consume
	movq	%r13, %rdi
	movl	$4, %esi
	movq	%r12, %rdx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_27
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movslq	-44(%rbp), %rcx
	cmpq	$4, %rcx
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	%rax, %rcx
	addq	$3, %rax
	xorl	%esi, %esi
	jmp	LBB0_16
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpb	$2, (%rax,%rsi)
	je	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=2
	leaq	(%rax,%rsi), %rdx
	addq	$-3, %rdx
	incq	%rsi
	addq	$5, %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_26
LBB0_16:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$80, -3(%rax,%rsi)
	jne	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpb	$75, -2(%rax,%rsi)
	jne	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movzbl	-1(%rax,%rsi), %edx
	decb	%dl
	cmpb	$5, %dl
	ja	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movzbl	%dl, %edx
	movslq	(%rbx,%rdx,4), %rdx
	addq	%rbx, %rdx
	jmpq	*%rdx
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpb	$6, (%rax,%rsi)
	jne	LBB0_25
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpb	$4, (%rax,%rsi)
	jne	LBB0_25
## %bb.21:
	movq	%r13, %rdi
	callq	___archive_read_consume
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_zip_read_local_file_header
	jmp	LBB0_29
LBB0_23:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	callq	_archive_set_error
LBB0_27:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_25
	.long	L0_0_set_20
	.long	L0_0_set_25
	.long	L0_0_set_24
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_ARCHIVE_FORMAT_ZIP,4,2         ## @ARCHIVE_FORMAT_ZIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZIP"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,8,3 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Out  of memory"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.no_dead_strip	_archive_read_format_zip_streamable_read_header
.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_streamable_read_header
_archive_read_format_zip_streamable_read_header: ; @archive_read_format_zip_streamable_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ARCHIVE_FORMAT_ZIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_FORMAT_ZIP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x21, [x8]
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x21]
LBB0_4:
	ldr	x0, [x21, #56]
	cbnz	x0, LBB0_6
; %bb.5:
	mov	w0, #4
	bl	_malloc
	str	x0, [x21, #56]
	cbz	x0, LBB0_26
LBB0_6:
	str	x0, [x21, #48]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_8
; %bb.7:
	add	x0, x21, #44
	bl	_archive_decrypto_aes_ctr_release
LBB0_8:
	mov	x22, x21
	ldr	x8, [x22, #16]!
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x21, #40
	bl	_archive_hmac_sha1_cleanup
LBB0_10:
	stp	xzr, xzr, [x22]
	str	xzr, [x22, #16]
	mov	x0, x19
	bl	___archive_read_reset_passphrase
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	___archive_read_consume
	str	xzr, [x21, #8]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4
	bl	___archive_read_ahead
	cbz	x0, LBB0_27
; %bb.11:
Lloh8:
	adrp	x22, lJTI0_0@PAGE
Lloh9:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, #0
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	bl	___archive_read_consume
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4
	bl	___archive_read_ahead
	cbz	x0, LBB0_27
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldrsw	x8, [sp, #12]
	cmp	w8, #4
	b.lt	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, #0
	add	x8, x0, x8
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x10, x0, x1
	ldrb	w10, [x10, #3]
	cmp	w10, #2
	b.eq	LBB0_25
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x1, x1, #1
	add	x9, x9, #5
	cmp	x9, x8
	b.hi	LBB0_13
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x9, x0, x1
	ldrb	w10, [x9]
	cmp	w10, #80
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldrb	w10, [x9, #1]
	cmp	w10, #75
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x10, x0, x1
	ldrb	w10, [x10, #2]
	sub	w10, w10, #1
	cmp	w10, #5
	b.hi	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	adr	x11, LBB0_16
	ldrb	w12, [x22, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x10, x0, x1
	ldrb	w10, [x10, #3]
	cmp	w10, #6
	b.ne	LBB0_17
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x10, x0, x1
	ldrb	w10, [x10, #3]
	cmp	w10, #4
	b.ne	LBB0_17
; %bb.24:
	mov	x0, x19
	bl	___archive_read_consume
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_zip_read_local_file_header
	b	LBB0_29
LBB0_25:
Lloh10:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
LBB0_27:
Lloh17:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
LBB0_29:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_23-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
                                        ; -- End function
	.comm	_ARCHIVE_FORMAT_ZIP,4,2         ; @ARCHIVE_FORMAT_ZIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZIP"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,8,3 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Out  of memory"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.no_dead_strip	_archive_read_format_zip_streamable_read_header
.subsections_via_symbols
