	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _zip_checkcons
__zip_checkcons:                        ## @_zip_checkcons
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rsi)
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rbx
	cmpq	%r14, %rbx
	cmovbq	%rbx, %r14
	cmpq	16(%r15), %r14
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	8(%rax), %rbx
	movl	24(%rax), %edi
	callq	__zip_string_length
	addq	%rbx, %rax
	movq	_LENTRYSIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rax
	cmovaq	%rax, %rcx
	cmpq	16(%r15), %rcx
	ja	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_fseeko
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	__zip_dirent_read
	movl	$-1, %edx
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	movq	%r13, %rsi
	callq	__zip_headercomp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	20(%rax), %edi
	movq	-64(%rbp), %rsi
	callq	__zip_ef_merge
	movq	8(%r15), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, 20(%rcx)
	movl	$1, 16(%rcx)
	movq	$0, -64(%rbp)
	movq	%r13, %rdi
	callq	__zip_dirent_finalize
	incq	%r12
	cmpq	(%r15), %r12
	jb	LBB0_2
## %bb.8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%r14, %rcx
	jmp	LBB0_10
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	movq	_ZIP_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rcx
	cmovbq	%rcx, %rdx
	jmp	LBB0_16
LBB0_11:
	movq	_ZIP_ER_NOZIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_12:
	movq	_ZIP_ER_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:
	callq	__zip_error_set
	jmp	LBB0_15
LBB0_14:
	movq	_ZIP_ER_INCONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	__zip_error_set
	leaq	-64(%rbp), %rdi
	callq	__zip_dirent_finalize
LBB0_15:
	movl	$-1, %edx
LBB0_16:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_ER_NOZIP,4,2               ## @ZIP_ER_NOZIP
	.comm	_LENTRYSIZE,8,3                 ## @LENTRYSIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ZIP_ER_SEEK,4,2                ## @ZIP_ER_SEEK
	.comm	_errno,4,2                      ## @errno
	.comm	_ZIP_ER_INCONS,4,2              ## @ZIP_ER_INCONS
	.comm	_ZIP_INT64_MAX,8,3              ## @ZIP_INT64_MAX
	.no_dead_strip	__zip_checkcons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _zip_checkcons
__zip_checkcons:                        ; @_zip_checkcons
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x1]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldr	x23, [x8]
Lloh0:
	adrp	x24, _LENTRYSIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LENTRYSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SEEK_SET@GOTPAGEOFF]
	mov	w26, #1
	mov	x27, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x10, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x9, [x8]
	cmp	x9, x27
	csel	x27, x9, x27, lo
	cmp	x27, x10
	b.hi	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x8, #8]
	add	x28, x10, x9
	ldr	w0, [x8, #24]
	bl	__zip_string_length
	ldr	x8, [x24]
	add	x9, x28, x0
	add	x8, x9, x8
	cmp	x8, x23
	csel	x23, x8, x23, hi
	ldr	x8, [x20, #16]
	cmp	x23, x8
	b.hi	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w1, [x8]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_fseeko
	cbnz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	x5, x19
	bl	__zip_dirent_read
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22, lsl #3]
	add	x1, sp, #8
	bl	__zip_headercomp
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20, #8]
	lsl	x28, x22, #3
	ldr	x8, [x8, x28]
	ldr	w0, [x8, #20]
	ldr	x1, [sp, #8]
	bl	__zip_ef_merge
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x28]
	stp	w26, w0, [x8, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	__zip_dirent_finalize
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x22, x8
	b.lo	LBB0_2
; %bb.8:
	sub	x8, x23, x27
LBB0_9:
Lloh4:
	adrp	x9, _ZIP_INT64_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ZIP_INT64_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x0, x8, x9, lo
	b	LBB0_15
LBB0_10:
Lloh7:
	adrp	x8, _ZIP_ER_NOZIP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZIP_ER_NOZIP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _ZIP_ER_SEEK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZIP_ER_SEEK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_12:
	bl	__zip_error_set
	b	LBB0_14
LBB0_13:
Lloh16:
	adrp	x8, _ZIP_ER_INCONS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZIP_ER_INCONS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	__zip_error_set
	add	x0, sp, #8
	bl	__zip_dirent_finalize
LBB0_14:
	mov	w0, #-1
LBB0_15:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_ER_NOZIP,4,2               ; @ZIP_ER_NOZIP
	.comm	_LENTRYSIZE,8,3                 ; @LENTRYSIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ZIP_ER_SEEK,4,2                ; @ZIP_ER_SEEK
	.comm	_errno,4,2                      ; @errno
	.comm	_ZIP_ER_INCONS,4,2              ; @ZIP_ER_INCONS
	.comm	_ZIP_INT64_MAX,8,3              ; @ZIP_INT64_MAX
	.no_dead_strip	__zip_checkcons
.subsections_via_symbols
