	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function anchor_store_new_key
_anchor_store_new_key:                  ## @anchor_store_new_key
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dname_count_size_labels
	movl	%eax, %r13d
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_anchor_find
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%r12d, %r8d
	movl	$1, %r9d
	callq	_anchor_new_ta
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_lock_basic_lock
LBB0_7:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_15
## %bb.8:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_anchor_find_key
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_anchor_new_ta_key
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_13
## %bb.12:
	incl	20(%rbx)
	jmp	LBB0_14
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_10:
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_13:
	incl	16(%rbx)
LBB0_14:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, 8(%rbx)
LBB0_15:
	movq	%rbx, %rdi
	callq	_lock_basic_unlock
LBB0_16:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ## @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ## @LDNS_RR_TYPE_DNSKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad type for trust anchor"

	.no_dead_strip	_anchor_store_new_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function anchor_store_new_key
_anchor_store_new_key:                  ; @anchor_store_new_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x24, x1
	mov	x25, x0
	add	x1, sp, #8
	mov	x0, x24
	bl	_dname_count_size_labels
Lloh0:
	adrp	x27, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x9, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x26, x0
	ldr	x3, [sp, #8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x26
	mov	x4, x23
	bl	_anchor_find
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	cbnz	x22, LBB0_6
	b	LBB0_13
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x19, #0
	b	LBB0_14
LBB0_4:
	ldr	x3, [sp, #8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x26
	mov	x4, x23
	mov	w5, #1
	bl	_anchor_new_ta
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.5:
	mov	x0, x19
	bl	_lock_basic_lock
	cbz	x22, LBB0_13
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_anchor_find_key
	cbnz	x0, LBB0_13
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_anchor_new_ta_key
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w8, [x27]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_lock_basic_unlock
	mov	x19, #0
	b	LBB0_14
LBB0_11:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_12:
	ldr	x8, [x19, #8]
	str	x8, [x0]
	str	x0, [x19, #8]
LBB0_13:
	mov	x0, x19
	bl	_lock_basic_unlock
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DS,4,2            ; @LDNS_RR_TYPE_DS
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ; @LDNS_RR_TYPE_DNSKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad type for trust anchor"

	.no_dead_strip	_anchor_store_new_key
.subsections_via_symbols
