	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_zip_seekable_read_header
_archive_read_format_zip_seekable_read_header: ## @archive_read_format_zip_seekable_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, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	(%rbx), %rax
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	movq	_ARCHIVE_FORMAT_ZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 64(%rbx)
	je	LBB0_5
LBB0_7:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	leaq	60(%rbx), %rdi
	addq	$16, %rsi
	movq	_ARCHIVE_RB_DIR_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___archive_rb_tree_iterate
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r15)
	cmpq	$0, 64(%rbx)
	jne	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_slurp_central_directory
	cmpl	(%r12), %eax
	jne	LBB0_26
## %bb.6:
	leaq	60(%rbx), %rdi
	callq	_ARCHIVE_RB_TREE_MIN
LBB0_9:
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.13:
	leaq	56(%rbx), %rdi
	callq	___archive_rb_tree_find_node
	jmp	LBB0_14
LBB0_10:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	cmpq	$0, 32(%rbx)
	je	LBB0_16
## %bb.15:
	leaq	52(%rbx), %rdi
	callq	_archive_decrypto_aes_ctr_release
LBB0_16:
	leaq	24(%rbx), %r13
	cmpq	$0, 24(%rbx)
	je	LBB0_18
## %bb.17:
	leaq	48(%rbx), %rdi
	callq	_archive_hmac_sha1_cleanup
LBB0_18:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movq	$0, 16(%r13)
	movq	%r15, %rdi
	callq	___archive_read_reset_passphrase
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_archive_filter_bytes
	movq	16(%rbx), %rcx
	movq	(%rcx), %rsi
	movq	%rsi, %rcx
	subq	%rax, %rcx
	jle	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	movq	%rcx, %rsi
	callq	___archive_read_consume
	jmp	LBB0_22
LBB0_20:
	je	LBB0_22
## %bb.21:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	___archive_read_seek
LBB0_22:
	movq	$0, 8(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_zip_read_local_file_header
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.23:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_24
## %bb.25:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_zip_read_mac_metadata
	cmpl	%r12d, %eax
	cmovgel	%r12d, %eax
	jmp	LBB0_26
LBB0_24:
	movl	%r12d, %eax
LBB0_26:
	addq	$8, %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_FORMAT_ZIP,4,2         ## @ARCHIVE_FORMAT_ZIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZIP"

	.comm	_ARCHIVE_RB_DIR_RIGHT,4,2       ## @ARCHIVE_RB_DIR_RIGHT
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_archive_read_format_zip_seekable_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_seekable_read_header
_archive_read_format_zip_seekable_read_header: ; @archive_read_format_zip_seekable_read_header
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x21, [x8]
Lloh0:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w23, [x24]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
Lloh5:
	adrp	x8, _ARCHIVE_FORMAT_ZIP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FORMAT_ZIP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.3:
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_14
LBB0_4:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.5:
	add	x0, x21, #60
	add	x1, x8, #16
Lloh8:
	adrp	x8, _ARCHIVE_RB_DIR_RIGHT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_RB_DIR_RIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	___archive_rb_tree_iterate
	str	x0, [x21, #16]
	cbz	x0, LBB0_16
LBB0_6:
	ldr	x1, [x0, #8]
	cbz	x1, LBB0_22
; %bb.7:
	add	x0, x21, #56
	bl	___archive_rb_tree_find_node
	mov	x22, x0
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_9
LBB0_8:
	add	x0, x21, #52
	bl	_archive_decrypto_aes_ctr_release
LBB0_9:
	mov	x25, x21
	ldr	x8, [x25, #24]!
	cbz	x8, LBB0_11
; %bb.10:
	add	x0, x21, #48
	bl	_archive_hmac_sha1_cleanup
LBB0_11:
	stp	xzr, xzr, [x25]
	str	xzr, [x25, #16]
	mov	x0, x20
	bl	___archive_read_reset_passphrase
	mov	x0, x20
	mov	w1, #0
	bl	_archive_filter_bytes
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	subs	x8, x1, x0
	b.le	LBB0_17
; %bb.12:
	mov	x0, x20
	mov	x1, x8
	bl	___archive_read_consume
	b	LBB0_19
LBB0_13:
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	ldr	x8, [x21, #64]
	cbnz	x8, LBB0_4
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_slurp_central_directory
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.15:
	add	x0, x21, #60
	bl	_ARCHIVE_RB_TREE_MIN
	str	x0, [x21, #16]
	cbnz	x0, LBB0_6
LBB0_16:
Lloh13:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_24
LBB0_17:
	b.eq	LBB0_19
; %bb.18:
Lloh16:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	bl	___archive_read_seek
LBB0_19:
	str	xzr, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_zip_read_local_file_header
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.20:
	cbz	x22, LBB0_23
; %bb.21:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_zip_read_mac_metadata
	cmp	w0, w23
	csel	w0, w0, w23, lt
	b	LBB0_24
LBB0_22:
	mov	x22, #0
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_8
	b	LBB0_9
LBB0_23:
	mov	x0, x23
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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_FORMAT_ZIP,4,2         ; @ARCHIVE_FORMAT_ZIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZIP"

	.comm	_ARCHIVE_RB_DIR_RIGHT,4,2       ; @ARCHIVE_RB_DIR_RIGHT
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_archive_read_format_zip_seekable_read_header
.subsections_via_symbols
