	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_overlay_ref_iterator_begin     ## -- Begin function overlay_ref_iterator_begin
	.p2align	4, 0x90
_overlay_ref_iterator_begin:            ## @overlay_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_is_empty_ref_iterator
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ref_iterator_abort
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_is_empty_ref_iterator
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_ref_iterator_abort
	movq	%rbx, %r14
LBB0_2:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	cmpl	$0, (%r14)
	jne	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_BUG
LBB0_8:
	movq	_overlay_iterator_select@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_merge_ref_iterator_begin       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overlay_ref_iterator requires ordered inputs"

	.comm	_overlay_iterator_select,4,2    ## @overlay_iterator_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_overlay_ref_iterator_begin     ; -- Begin function overlay_ref_iterator_begin
	.p2align	2
_overlay_ref_iterator_begin:            ; @overlay_ref_iterator_begin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_is_empty_ref_iterator
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ref_iterator_abort
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_is_empty_ref_iterator
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ref_iterator_abort
	mov	x19, x20
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BUG
LBB0_8:
Lloh2:
	adrp	x8, _overlay_iterator_select@GOTPAGE
Lloh3:
	ldr	x8, [x8, _overlay_iterator_select@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	w0, #1
	mov	x1, x20
	mov	x2, x19
	mov	x4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_merge_ref_iterator_begin
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overlay_ref_iterator requires ordered inputs"

	.comm	_overlay_iterator_select,4,2    ; @overlay_iterator_select
.subsections_via_symbols
