	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_ref_iterator_advance
_merge_ref_iterator_advance:            ## @merge_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, %r14
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	(%rax), %rdi
	callq	_ref_iterator_advance
	movq	_ITER_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.6:
	movq	8(%r14), %rcx
	movq	$0, (%rcx)
	jmp	LBB0_7
LBB0_1:
	movq	32(%r14), %rdi
	callq	_ref_iterator_advance
	movq	_ITER_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	je	LBB0_3
## %bb.2:
	movq	$0, 32(%r14)
	movq	_ITER_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
LBB0_3:
	movq	40(%r14), %rdi
	callq	_ref_iterator_advance
	cmpl	(%rbx), %eax
	je	LBB0_8
## %bb.4:
	movq	$0, 40(%r14)
LBB0_7:
	movq	_ITER_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
LBB0_8:
	leaq	32(%r14), %r12
	leaq	40(%r14), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_ITER_YIELD_CURRENT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_17
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rdi
	movq	40(%r14), %rsi
	movl	48(%r14), %edx
	callq	*(%r14)
	movl	%eax, %ebx
	movq	_ITER_SELECT_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ITER_SELECT_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ITER_CURRENT_SELECTION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rax
	movq	%r15, %r13
	andl	%ebx, %ecx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rax
	movq	%r12, %r13
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, 8(%r14)
	movq	_ITER_SKIP_SECONDARY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rdi
	callq	_ref_iterator_advance
	movq	_ITER_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	$0, (%r13)
	movq	_ITER_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
LBB0_18:
	movq	%r14, %rdi
	callq	_ref_iterator_abort
	movq	_ITER_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_20:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ref_iterator_abort             ## TAILCALL
LBB0_17:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 24(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r14)
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_ITER_OK@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ITER_OK,4,2                    ## @ITER_OK
	.comm	_ITER_ERROR,4,2                 ## @ITER_ERROR
	.comm	_ITER_SELECT_DONE,4,2           ## @ITER_SELECT_DONE
	.comm	_ITER_SELECT_ERROR,4,2          ## @ITER_SELECT_ERROR
	.comm	_ITER_CURRENT_SELECTION_MASK,4,2 ## @ITER_CURRENT_SELECTION_MASK
	.comm	_ITER_SKIP_SECONDARY,4,2        ## @ITER_SKIP_SECONDARY
	.comm	_ITER_YIELD_CURRENT,4,2         ## @ITER_YIELD_CURRENT
	.no_dead_strip	_merge_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 merge_ref_iterator_advance
_merge_ref_iterator_advance:            ; @merge_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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _ITER_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ITER_OK@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x0, [x8]
	bl	_ref_iterator_advance
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	b	LBB0_7
LBB0_3:
	ldr	x0, [x19, #32]
	bl	_ref_iterator_advance
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	str	xzr, [x19, #32]
Lloh2:
	adrp	x8, _ITER_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ITER_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_15
LBB0_5:
	ldr	x0, [x19, #40]
	bl	_ref_iterator_advance
Lloh5:
	adrp	x8, _ITER_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ITER_OK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.6:
	str	xzr, [x19, #40]
LBB0_7:
Lloh8:
	adrp	x8, _ITER_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ITER_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_15
LBB0_8:
	add	x22, x19, #32
	add	x23, x19, #40
Lloh11:
	adrp	x25, _ITER_SELECT_DONE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ITER_SELECT_DONE@GOTPAGEOFF]
Lloh13:
	adrp	x26, _ITER_SELECT_ERROR@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ITER_SELECT_ERROR@GOTPAGEOFF]
Lloh15:
	adrp	x27, _ITER_CURRENT_SELECTION_MASK@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ITER_CURRENT_SELECTION_MASK@GOTPAGEOFF]
Lloh17:
	adrp	x28, _ITER_SKIP_SECONDARY@GOTPAGE
Lloh18:
	ldr	x28, [x28, _ITER_SKIP_SECONDARY@GOTPAGEOFF]
Lloh19:
	adrp	x24, _ITER_YIELD_CURRENT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _ITER_YIELD_CURRENT@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x24]
	tst	w8, w20
	b.ne	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldp	x0, x1, [x19, #32]
	ldr	w2, [x19, #48]
	blr	x8
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x27]
	tst	w8, w20
	csel	x8, x22, x23, eq
	csel	x21, x23, x22, eq
	str	x8, [x19, #8]
	ldr	w8, [x28]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x21]
	bl	_ref_iterator_advance
Lloh21:
	adrp	x8, _ITER_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ITER_OK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	str	xzr, [x21]
Lloh24:
	adrp	x8, _ITER_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ITER_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
LBB0_15:
	mov	x0, x19
	bl	_ref_iterator_abort
Lloh27:
	adrp	x8, _ITER_ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ITER_ERROR@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	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_17:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	str	w9, [x19, #24]
	ldr	d0, [x8]
	str	d0, [x19, #16]
Lloh29:
	adrp	x8, _ITER_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ITER_OK@GOTPAGEOFF]
LBB0_18:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ITER_OK,4,2                    ; @ITER_OK
	.comm	_ITER_ERROR,4,2                 ; @ITER_ERROR
	.comm	_ITER_SELECT_DONE,4,2           ; @ITER_SELECT_DONE
	.comm	_ITER_SELECT_ERROR,4,2          ; @ITER_SELECT_ERROR
	.comm	_ITER_CURRENT_SELECTION_MASK,4,2 ; @ITER_CURRENT_SELECTION_MASK
	.comm	_ITER_SKIP_SECONDARY,4,2        ; @ITER_SKIP_SECONDARY
	.comm	_ITER_YIELD_CURRENT,4,2         ; @ITER_YIELD_CURRENT
	.no_dead_strip	_merge_ref_iterator_advance
.subsections_via_symbols
