	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prime_trust_anchor
_prime_trust_anchor:                    ## @prime_trust_anchor
	.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	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movl	4(%rcx), %ecx
	movl	8(%rbx), %edx
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	12(%rbx), %r9d
	movq	_BIT_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-48(%rbp), %r10
	movl	%r12d, %esi
	pushq	$0
	pushq	%r10
	pushq	%rax
	callq	_generate_request
	addq	$32, %rsp
	movl	%eax, %r13d
	cmpq	$0, -48(%rbp)
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_generate_keytag_query
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.4:
	movl	$1, (%r14)
	movl	(%r15), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_regional_alloc_init
	movl	%eax, %ecx
	movl	%eax, 4(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_err
	jmp	LBB0_9
LBB0_6:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	callq	_verbose
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_BIT_CD,4,2                     ## @BIT_CD
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"keytag signaling query failed"

L_.str.1:                               ## @.str.1
	.asciz	"Could not prime trust anchor"

L_.str.2:                               ## @.str.2
	.asciz	"Could not prime trust anchor: out of memory"

	.no_dead_strip	_prime_trust_anchor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prime_trust_anchor
_prime_trust_anchor:                    ; @prime_trust_anchor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
	ldp	w3, w2, [x3, #4]
Lloh2:
	ldr	w4, [x8]
	ldr	w5, [x19, #12]
Lloh3:
	adrp	x8, _BIT_CD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT_CD@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	str	wzr, [sp]
	add	x7, sp, #8
	mov	x1, x22
	bl	_generate_request
	mov	x23, x0
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_generate_keytag_query
	cbz	w0, LBB0_7
LBB0_3:
	cbz	w23, LBB0_6
; %bb.4:
	mov	w22, #1
	str	w22, [x20]
	ldr	w0, [x21]
	ldp	w2, w1, [x19, #4]
	bl	_regional_alloc_init
	str	w0, [x20, #4]
	ldr	d0, [x19]
	str	d0, [x20, #8]
	cbnz	w0, LBB0_10
; %bb.5:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_err
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	bl	_verbose
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_BIT_CD,4,2                     ; @BIT_CD
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keytag signaling query failed"

l_.str.1:                               ; @.str.1
	.asciz	"Could not prime trust anchor"

l_.str.2:                               ; @.str.2
	.asciz	"Could not prime trust anchor: out of memory"

	.no_dead_strip	_prime_trust_anchor
.subsections_via_symbols
