	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cache_ref_iterator_advance
_cache_ref_iterator_advance:            ## @cache_ref_iterator_advance
	.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	%rdi, %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	(%r12)
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %r15
	movslq	(%r12), %rax
	decq	%rax
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r15,%rbx,8), %r13
	movq	16(%r15,%rbx,8), %r14
	movl	(%r15,%rbx,8), %eax
	movq	%r14, %rcx
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r15,%rbx,8), %rax
	addq	$16, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_sort_ref_dir
	movl	(%r13), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%eax
	movl	%eax, (%r13)
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r14), %rcx
	cltq
	movq	(%rcx,%rax,8), %r14
	movq	8(%r15,%rbx,8), %r15
	movq	_PREFIX_WITHIN_DIR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r14), %edi
	movl	44(%r12), %esi
	callq	_overlaps_prefix
	movl	%eax, %r15d
	movq	_PREFIX_EXCLUDES_DIR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %eax
	movq	_REF_DIR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r12), %rdi
	movl	(%r12), %esi
	incl	%esi
	movl	40(%r12), %edx
	callq	_ALLOC_GROW
	movq	32(%r12), %rbx
	movslq	(%r12), %r13
	leal	1(%r13), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_get_ref_dir
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movq	%rax, 16(%rbx,%rcx,8)
	movl	%r15d, %eax
	movq	%rax, 8(%rbx,%rcx,8)
	movl	$-1, (%rbx,%rcx,8)
	jmp	LBB0_1
LBB0_5:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ref_iterator_abort             ## TAILCALL
LBB0_10:
	movl	8(%r14), %ecx
	movl	%ecx, 24(%r12)
	addq	$4, %r14
	movq	%r14, 16(%r12)
	movl	%eax, 8(%r12)
	movq	_ITER_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREFIX_WITHIN_DIR,8,3          ## @PREFIX_WITHIN_DIR
	.comm	_PREFIX_EXCLUDES_DIR,4,2        ## @PREFIX_EXCLUDES_DIR
	.comm	_REF_DIR,4,2                    ## @REF_DIR
	.comm	_ITER_OK,4,2                    ## @ITER_OK
	.no_dead_strip	_cache_ref_iterator_advance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cache_ref_iterator_advance
_cache_ref_iterator_advance:            ; @cache_ref_iterator_advance
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _PREFIX_WITHIN_DIR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PREFIX_WITHIN_DIR@GOTPAGEOFF]
	mov	w23, #24
Lloh2:
	adrp	x25, _REF_DIR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _REF_DIR@GOTPAGEOFF]
	mov	w26, #-1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	subs	w8, w8, #1
	str	w8, [x19]
	b.eq	LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #32]
	ldrsw	x8, [x19]
	sub	x27, x8, #1
	madd	x28, x27, x23, x21
	mov	x24, x28
	ldr	x20, [x24, #16]!
	ldr	w8, [x28]
	mov	x9, x20
	cmn	w8, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_sort_ref_dir
	ldr	w8, [x28]
	ldr	x9, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	str	w8, [x28]
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x20, #8]
	ldr	x20, [x9, w8, sxtw #3]
	madd	x8, x27, x23, x21
	ldr	x21, [x8, #8]
	ldr	x8, [x22]
	cmp	x21, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #44]
	bl	_overlaps_prefix
	mov	x21, x0
Lloh4:
	adrp	x8, _PREFIX_EXCLUDES_DIR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PREFIX_EXCLUDES_DIR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #32]
	ldr	w8, [x19]
	add	w1, w8, #1
	ldr	w2, [x19, #40]
	bl	_ALLOC_GROW
	ldr	x24, [x19, #32]
	ldrsw	x27, [x19]
	add	w8, w27, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_get_ref_dir
	madd	x8, x27, x23, x24
	mov	w9, w21
	stp	x9, x0, [x8, #8]
	str	w26, [x8]
	b	LBB0_2
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ref_iterator_abort
LBB0_10:
	ldr	w9, [x20, #8]
	str	w9, [x19, #24]
	add	x9, x20, #4
	str	x9, [x19, #16]
	str	w8, [x19, #8]
Lloh7:
	adrp	x8, _ITER_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ITER_OK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PREFIX_WITHIN_DIR,8,3          ; @PREFIX_WITHIN_DIR
	.comm	_PREFIX_EXCLUDES_DIR,4,2        ; @PREFIX_EXCLUDES_DIR
	.comm	_REF_DIR,4,2                    ; @REF_DIR
	.comm	_ITER_OK,4,2                    ; @ITER_OK
	.no_dead_strip	_cache_ref_iterator_advance
.subsections_via_symbols
