	.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_bid
_archive_read_format_zip_seekable_bid:  ## @archive_read_format_zip_seekable_bid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r13d
	cmpl	$32, %esi
	jg	LBB0_20
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_SEEK_END@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	___archive_read_seek
	testq	%rax, %rax
	jle	LBB0_20
## %bb.2:
	movl	$16384, %edi                    ## imm = 0x4000
	movq	%rax, %rsi
	callq	_zipmin
	movq	%rax, %r15
	movl	%r15d, %esi
	negl	%esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	___archive_read_seek
	testq	%rax, %rax
	js	LBB0_20
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	cmpl	$23, %r15d
	jl	LBB0_20
## %bb.5:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leal	-22(%r15), %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$-4, %ecx
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	%ecx, %r12d
	jle	LBB0_20
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r14d
	movsbl	(%rbx,%r14), %eax
	cmpl	$74, %eax
	jg	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$5, %eax
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$6, %eax
	jne	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$-3, %ecx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$75, %eax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$80, %eax
	jne	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rbx,%r14), %r15
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	movl	$-4, %ecx
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$-2, %ecx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$-1, %ecx
	jmp	LBB0_19
LBB0_14:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addq	%r14, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_read_eocd
	movl	%eax, %r13d
	cmpl	$20, %r12d
	jb	LBB0_20
## %bb.15:
	addq	$-20, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_16
LBB0_20:
	movl	%r13d, %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdx
	callq	_read_zip64_eocd
	cmpl	%r13d, %eax
	cmovlel	%r13d, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PK\005\006"

L_.str.1:                               ## @.str.1
	.asciz	"PK\006\007"

	.no_dead_strip	_archive_read_format_zip_seekable_bid
.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_bid
_archive_read_format_zip_seekable_bid:  ; @archive_read_format_zip_seekable_bid
	.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
	cmp	w1, #32
	b.le	LBB0_2
; %bb.1:
	mov	w21, #-1
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x21, _SEEK_END@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SEEK_END@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	___archive_read_seek
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x1, x0
	mov	w0, #16384
	bl	_zipmin
	mov	x23, x0
	neg	w1, w23
	ldr	w2, [x21]
	mov	x0, x19
	bl	___archive_read_seek
	tbnz	x0, #63, LBB0_5
; %bb.4:
	mov	x21, x0
	sxtw	x1, w23
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cmp	x0, #0
	ccmp	w23, #23, #8, ne
	b.ge	LBB0_8
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
LBB0_7:
	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
LBB0_8:
	mov	x22, x0
	sub	w25, w23, #22
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #-4
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w25, w25, w8
	cmp	w25, #0
	b.le	LBB0_5
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x24, x22, w25, uxtw
	ldrsb	w8, [x24]
	cmp	w8, #74
	b.gt	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #5
	b.eq	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #6
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #-3
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #75
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, #80
	b.ne	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_9
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #-2
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #-1
	b	LBB0_10
LBB0_20:
	add	x2, x21, w25, uxtw
	mov	x0, x20
	mov	x1, x24
	bl	_read_eocd
	mov	x21, x0
	cmp	w25, #20
	b.lo	LBB0_6
; %bb.21:
	sub	x22, x24, #20
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_memcmp
	cbnz	w0, LBB0_6
; %bb.22:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_read_zip64_eocd
	cmp	w0, w21
	csel	w0, w0, w21, gt
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PK\005\006"

l_.str.1:                               ; @.str.1
	.asciz	"PK\006\007"

	.no_dead_strip	_archive_read_format_zip_seekable_bid
.subsections_via_symbols
