	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_anchors_lookup                 ## -- Begin function anchors_lookup
	.p2align	4, 0x90
_anchors_lookup:                        ## @anchors_lookup
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	leaq	-104(%rbp), %r12
	movq	%r12, -56(%rbp)
	movq	%rsi, -64(%rbp)
	movq	%rsi, %rdi
	callq	_dname_count_labels
	movl	%eax, -104(%rbp)
	movq	%rbx, -96(%rbp)
	movq	%r15, -88(%rbp)
	movq	%r14, %rdi
	callq	_lock_basic_lock
	movl	4(%r14), %edi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rsi
	callq	_rbtree_find_less_equal
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rbx
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	leaq	24(%rbx), %rdi
	callq	_lock_basic_lock
LBB0_10:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
	jmp	LBB0_11
LBB0_2:
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.3:
	cmpq	%r15, 16(%rbx)
	jne	LBB0_12
## %bb.4:
	movq	40(%rbx), %rdi
	movl	(%rbx), %esi
	movq	-64(%rbp), %rdx
	movl	-104(%rbp), %ecx
	leaq	-44(%rbp), %r8
	callq	_dname_lab_cmp
	movl	-44(%rbp), %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, (%rbx)
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_12:
	movq	%r14, %rdi
	callq	_lock_basic_unlock
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_anchors_lookup                 ; -- Begin function anchors_lookup
	.p2align	2
_anchors_lookup:                        ; @anchors_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	str	xzr, [sp, #16]
	add	x8, sp, #24
	stp	x1, x8, [sp, #64]
	mov	x0, x1
	bl	_dname_count_labels
	str	w0, [sp, #24]
	stp	x20, x21, [sp, #32]
	mov	x0, x19
	bl	_lock_basic_lock
	ldr	w0, [x19, #4]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_rbtree_find_less_equal
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x20, [sp, #16]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	add	x0, x20, #24
	bl	_lock_basic_lock
LBB0_4:
	mov	x0, x19
	bl	_lock_basic_unlock
	b	LBB0_11
LBB0_5:
	ldr	x20, [sp, #16]
	cbz	x20, LBB0_10
; %bb.6:
	ldr	x8, [x20, #16]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.7:
	ldr	x0, [x20, #40]
	ldr	w1, [x20]
	ldr	x2, [sp, #64]
	ldr	w3, [sp, #24]
	add	x4, sp, #12
	bl	_dname_lab_cmp
	ldr	w8, [sp, #12]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20]
	cmp	w9, w8
	b.le	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x20, [x20, #32]
	cbnz	x20, LBB0_8
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	bl	_lock_basic_unlock
	mov	x20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
