	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packed_ref_iterator_begin
_packed_ref_iterator_begin:             ## @packed_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, %r14d
	movq	%rsi, %r15
	movq	_REF_STORE_READ@GOTPCREL(%rip), %rax
	movq	_DO_FOR_EACH_INCLUDE_BROKEN@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_REF_STORE_ODB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_2:
	orl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_packed_downcast
	movq	%rax, %rdi
	callq	_get_snapshot
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	cmpb	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_find_reference_location
	movq	%rax, %r13
	cmpq	8(%rbx), %r13
	jne	LBB0_7
LBB0_10:
	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_5:
	movq	(%rbx), %r13
	cmpq	8(%rbx), %r13
	je	LBB0_10
LBB0_7:
	movl	$1, %edi
	movl	$48, %esi
	callq	_xcalloc
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r14
	leaq	24(%rax), %r12
	movq	_packed_ref_iterator_vtable@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_base_ref_iterator_init
	movq	%rbx, 40(%r14)
	movq	%rbx, %rdi
	callq	_acquire_snapshot
	movq	%r13, (%r14)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	leaq	32(%r14), %rdi
	xorl	%esi, %esi
	callq	_strbuf_init
	leaq	20(%r14), %rax
	movq	%rax, 24(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r14)
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	cmpb	$0, (%r15)
	je	LBB0_9
## %bb.11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prefix_ref_iterator_begin      ## TAILCALL
LBB0_9:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_STORE_READ,4,2             ## @REF_STORE_READ
	.comm	_DO_FOR_EACH_INCLUDE_BROKEN,4,2 ## @DO_FOR_EACH_INCLUDE_BROKEN
	.comm	_REF_STORE_ODB,4,2              ## @REF_STORE_ODB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ref_iterator_begin"

	.comm	_packed_ref_iterator_vtable,4,2 ## @packed_ref_iterator_vtable
	.no_dead_strip	_packed_ref_iterator_begin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packed_ref_iterator_begin
_packed_ref_iterator_begin:             ; @packed_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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _REF_STORE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_STORE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DO_FOR_EACH_INCLUDE_BROKEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DO_FOR_EACH_INCLUDE_BROKEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _REF_STORE_ODB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REF_STORE_ODB@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w2
	csel	w9, w10, wzr, eq
	orr	w1, w9, w8
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_packed_downcast
	bl	_get_snapshot
	mov	x21, x0
	cbz	x19, LBB0_3
; %bb.1:
	ldrb	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_find_reference_location
	mov	x23, x0
	b	LBB0_4
LBB0_3:
	ldr	x23, [x21]
LBB0_4:
	ldr	x8, [x21, #8]
	cmp	x23, x8
	b.eq	LBB0_8
; %bb.5:
	mov	w0, #1
	mov	w1, #48
	bl	_xcalloc
	mov	x24, x0
	add	x22, x0, #24
Lloh11:
	adrp	x1, _packed_ref_iterator_vtable@GOTPAGE
Lloh12:
	ldr	x1, [x1, _packed_ref_iterator_vtable@GOTPAGEOFF]
	mov	x0, x22
	mov	w2, #1
	bl	_base_ref_iterator_init
	str	x21, [x24, #40]
	mov	x0, x21
	bl	_acquire_snapshot
	ldr	x8, [x21, #8]
	stp	x23, x8, [x24]
	add	x0, x24, #32
	mov	w1, #0
	bl	_strbuf_init
	add	x8, x24, #20
	str	x8, [x24, #24]
	str	w20, [x24, #16]
	cbz	x19, LBB0_9
; %bb.6:
	ldrb	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	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	_prefix_ref_iterator_begin
LBB0_8:
	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_9:
	mov	x0, x22
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_STORE_READ,4,2             ; @REF_STORE_READ
	.comm	_DO_FOR_EACH_INCLUDE_BROKEN,4,2 ; @DO_FOR_EACH_INCLUDE_BROKEN
	.comm	_REF_STORE_ODB,4,2              ; @REF_STORE_ODB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ref_iterator_begin"

	.comm	_packed_ref_iterator_vtable,4,2 ; @packed_ref_iterator_vtable
	.no_dead_strip	_packed_ref_iterator_begin
.subsections_via_symbols
