	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anchors_assemble_rrsets
_anchors_assemble_rrsets:               ## @anchors_assemble_rrsets
	.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
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_lock_basic_lock
	movq	%rbx, -328(%rbp)                ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_rbtree_first
	movq	%rax, %r12
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	%r12, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_lock_basic_unlock
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r12
	cmpq	%r15, (%rbx)
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	20(%r12), %r14
	movq	%r14, %rdi
	callq	_rbtree_next
	movq	%rax, %r15
	leaq	16(%r12), %r13
	movq	%r13, %rdi
	callq	_lock_basic_lock
	cmpq	$0, 32(%r12)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_anchors_assemble
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_anchors_ds_unsupported
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_anchors_dnskey_unsupported
	testq	%rbx, %rbx
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%r12), %edx
	movl	28(%r12), %r8d
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log_nametypeclass
	movq	-336(%rbp), %rax                ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%r12), %edx
	movl	28(%r12), %r8d
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log_nametypeclass
	movq	-336(%rbp), %rax                ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %rbx
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%r12), %rax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %edi
	leaq	-320(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_dname_str
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_log_warn
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_rbtree_delete
	movq	%r13, %rdi
	callq	_lock_basic_unlock
	cmpq	%r12, 8(%rbx)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	$0, 8(%rax)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_anchors_delfunc
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_lock_basic_unlock
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_7:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	movq	%r13, %rdi
	callq	_lock_basic_unlock
	xorl	%ebx, %ebx
LBB0_10:
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	callq	_lock_basic_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.22:
	movl	%ebx, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTREE_NULL,8,3                ## @RBTREE_NULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"warning: unsupported algorithm for trust anchor"

	.comm	_LDNS_RR_TYPE_DS,4,2            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ## @LDNS_RR_TYPE_DNSKEY
L_.str.2:                               ## @.str.2
	.asciz	"trust anchor %s has no supported algorithms, the anchor is ignored (check if you need to upgrade unbound and openssl)"

	.no_dead_strip	_anchors_assemble_rrsets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anchors_assemble_rrsets
_anchors_assemble_rrsets:               ; @anchors_assemble_rrsets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_lock_basic_lock
	ldr	w0, [x19, #16]
	bl	_rbtree_first
Lloh3:
	adrp	x28, _RBTREE_NULL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _RBTREE_NULL@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x8, x0
	b.eq	LBB0_17
; %bb.1:
	mov	x23, x0
Lloh5:
	adrp	x20, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x23, #20
	mov	x0, x24
	bl	_rbtree_next
	mov	x22, x0
	add	x25, x23, #16
	mov	x0, x25
	bl	_lock_basic_lock
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_lock_basic_unlock
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28]
	mov	x23, x22
	cmp	x8, x22
	b.ne	LBB0_2
	b	LBB0_17
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_anchors_assemble
	cbz	w0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_anchors_ds_unsupported
	mov	x27, x0
	mov	x0, x23
	bl	_anchors_dnskey_unsupported
	mov	x26, x0
	cbz	x27, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w3, [x20]
	ldp	w2, w4, [x23, #24]
	mov	w0, #0
	mov	x1, x21
	bl	_log_nametypeclass
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x26, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh9:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldp	w2, w4, [x23, #24]
	mov	w0, #0
	mov	x1, x21
	bl	_log_nametypeclass
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	cmp	x27, x8
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #8]
	cmp	x26, x8
	b.ne	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23, #24]
	add	x1, sp, #15
	bl	_dname_str
	add	x1, sp, #15
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_warn
	ldr	w0, [x19, #16]
	mov	x1, x24
	bl	_rbtree_delete
	mov	x0, x25
	bl	_lock_basic_unlock
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x19, #8]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, #0
	bl	_anchors_delfunc
	b	LBB0_4
LBB0_17:
	mov	w20, #1
LBB0_18:
	mov	x0, x19
	bl	_lock_basic_unlock
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.19:
	mov	x0, x20
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_20:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x0, x25
	bl	_lock_basic_unlock
	mov	w20, #0
	b	LBB0_18
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTREE_NULL,8,3                ; @RBTREE_NULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"warning: unsupported algorithm for trust anchor"

	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ; @LDNS_RR_TYPE_DNSKEY
l_.str.2:                               ; @.str.2
	.asciz	"trust anchor %s has no supported algorithms, the anchor is ignored (check if you need to upgrade unbound and openssl)"

	.no_dead_strip	_anchors_assemble_rrsets
.subsections_via_symbols
