	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_cab_bid
_archive_read_format_cab_bid:           ## @archive_read_format_cab_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r12d
	cmpl	$64, %esi
	jg	LBB0_16
## %bb.1:
	movq	%rdi, %r14
	movl	$8, %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %rbx
	leaq	l_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	xorl	%r12d, %r12d
	cmpb	$77, (%rbx)
	jne	LBB0_16
## %bb.4:
	cmpb	$90, 1(%rbx)
	jne	LBB0_16
## %bb.5:
	xorl	%ebx, %ebx
	movl	$4096, %r13d                    ## imm = 0x1000
	leaq	-44(%rbp), %r15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	leal	(%rbx,%r13), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r12
	movslq	%ebx, %rbx
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	8(%rbx), %rax
	movslq	-44(%rbp), %rcx
	addq	%r12, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	callq	_find_cab_magic
	cltq
	addq	%rax, %rbx
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$256, %r13d                     ## imm = 0x100
	jl	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	sarl	%r13d
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	subl	%r12d, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
	cmpl	$131072, %ebx                   ## imm = 0x20000
	jl	LBB0_6
	jmp	LBB0_16
LBB0_15:
	movl	$64, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"MSCF\000\000\000\000"

	.no_dead_strip	_archive_read_format_cab_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_cab_bid
_archive_read_format_cab_bid:           ; @archive_read_format_cab_bid
	.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
	cmp	w1, #64
	b.gt	LBB0_14
; %bb.1:
	mov	x19, x0
	mov	w1, #8
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_14
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #8
	bl	_memcmp
	cbz	x0, LBB0_16
; %bb.3:
	ldrb	w8, [x20]
	cmp	w8, #77
	b.ne	LBB0_17
; %bb.4:
	ldrb	w8, [x20, #1]
	cmp	w8, #90
	b.ne	LBB0_17
; %bb.5:
	mov	w21, #0
	mov	w22, #4096
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	w1, w22, w21
	add	x2, sp, #12
	mov	x0, x19
	bl	___archive_read_ahead
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	add	x21, x0, w21, sxtw
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x8, x21, #8
	ldrsw	x9, [sp, #12]
	add	x9, x20, x9
	cmp	x8, x9
	b.hs	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x21
	bl	_find_cab_magic
	add	x21, x21, w0, sxtw
	cbnz	w0, LBB0_8
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #256
	b.lt	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	asr	w22, w22, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w21, w21, w20
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	cmp	w21, #32, lsl #12               ; =131072
	b.lt	LBB0_6
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
LBB0_16:
	mov	w0, #64
	b	LBB0_15
LBB0_17:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"MSCF\000\000\000\000"

	.no_dead_strip	_archive_read_format_cab_bid
.subsections_via_symbols
