	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_ref_iterator_begin       ## -- Begin function cache_ref_iterator_begin
	.p2align	4, 0x90
_cache_ref_iterator_begin:              ## @cache_ref_iterator_begin
	.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	%edx, %r15d
	movq	%rsi, %r14
	movl	(%rdi), %edi
	callq	_get_ref_dir
	movq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	cmpb	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_find_containing_dir
	movq	%rax, %r12
LBB0_3:
	testq	%r12, %r12
	je	LBB0_11
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_prime_ref_dir
LBB0_6:
	movl	$1, %edi
	movl	$24, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	leaq	20(%rax), %r15
	movq	_cache_ref_iterator_vtable@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_base_ref_iterator_init
	movq	8(%rbx), %rdi
	movl	16(%rbx), %edx
	movl	$10, %esi
	callq	_ALLOC_GROW
	movl	$1, (%rbx)
	movq	8(%rbx), %r13
	movl	$-1, (%r13)
	movq	%r12, 8(%r13)
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	cmpb	$0, (%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_xstrdup
	movl	%eax, 4(%rbx)
	movq	_PREFIX_WITHIN_DIR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_empty_ref_iterator_begin       ## TAILCALL
LBB0_9:
	movq	_PREFIX_CONTAINS_DIR@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cache_ref_iterator_vtable,4,2  ## @cache_ref_iterator_vtable
	.comm	_PREFIX_WITHIN_DIR,4,2          ## @PREFIX_WITHIN_DIR
	.comm	_PREFIX_CONTAINS_DIR,4,2        ## @PREFIX_CONTAINS_DIR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_ref_iterator_begin       ; -- Begin function cache_ref_iterator_begin
	.p2align	2
_cache_ref_iterator_begin:              ; @cache_ref_iterator_begin
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	ldr	w0, [x0]
	bl	_get_ref_dir
	mov	x20, x0
	cbz	x19, LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_find_containing_dir
	mov	x20, x0
LBB0_3:
	cbz	x20, LBB0_9
; %bb.4:
	cbz	w21, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_prime_ref_dir
LBB0_6:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #24
	bl	_xcalloc
	mov	x22, x0
	add	x21, x0, #20
Lloh0:
	adrp	x1, _cache_ref_iterator_vtable@GOTPAGE
Lloh1:
	ldr	x1, [x1, _cache_ref_iterator_vtable@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #1
	bl	_base_ref_iterator_init
	ldr	x0, [x22, #8]
	ldr	w2, [x22, #16]
	mov	w1, #10
	bl	_ALLOC_GROW
	str	w23, [x22]
	ldr	x23, [x22, #8]
	mov	w8, #-1
	str	w8, [x23]
	str	x20, [x23, #8]
	cbz	x19, LBB0_10
; %bb.7:
	ldrb	w8, [x19]
	cbz	w8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_xstrdup
	str	w0, [x22, #4]
Lloh2:
	adrp	x8, _PREFIX_WITHIN_DIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PREFIX_WITHIN_DIR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_empty_ref_iterator_begin
LBB0_10:
Lloh4:
	adrp	x8, _PREFIX_CONTAINS_DIR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PREFIX_CONTAINS_DIR@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cache_ref_iterator_vtable,4,2  ; @cache_ref_iterator_vtable
	.comm	_PREFIX_WITHIN_DIR,4,2          ; @PREFIX_WITHIN_DIR
	.comm	_PREFIX_CONTAINS_DIR,4,2        ; @PREFIX_CONTAINS_DIR
.subsections_via_symbols
