	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_prime_response
_process_prime_response:                ## @process_prime_response
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	8(%rax), %rcx
	movslq	%edx, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	movq	32(%rsi), %rsi
	movl	48(%r13), %edx
	movl	44(%r13), %ecx
	movl	40(%r13), %r8d
	callq	_anchor_find
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	20(%rbx), %edx
	movq	_LDNS_RR_TYPE_DNSKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %esi
	movl	16(%rbx), %r8d
	callq	_reply_find_rrset_section_an
	movq	%rax, %r12
	cmpq	$0, 8(%rbx)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_VAL_INIT_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	cmpq	$0, 32(%r13)
	jne	LBB0_18
## %bb.4:
	movq	_VAL_VALIDATE_STATE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rbx)
	je	LBB0_7
LBB0_6:
	movq	16(%r14), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_autr_process_prime
	testl	%eax, %eax
	je	LBB0_16
LBB0_7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_primeResponseToKE
	movq	%rax, 16(%r13)
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_lock_basic_unlock
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:
	callq	_key_entry_isbad
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%r13), %rax
	movq	_VAL_MAX_RESTART_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
## %bb.10:
	leaq	24(%r13), %rdi
	movl	8(%r14), %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_val_blacklist
	movq	$0, (%r14)
	incq	(%r13)
	movq	$0, 16(%r13)
	movq	_VAL_INIT_STATE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	movq	$0, 24(%r13)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_errinf_origin
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_errinf_dname
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	16(%r13), %rsi
	movq	%r14, %rdx
	callq	_key_cache_insert
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:
	callq	_key_entry_isnull
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	16(%r13), %rdi
	callq	_key_entry_isbad
	testq	%rax, %rax
	je	LBB0_19
LBB0_14:
	movq	_VAL_VALIDATE_STATE@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_19
LBB0_16:
	movq	_VAL_INIT_STATE@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
LBB0_18:
	movq	$0, 32(%r13)
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VAL_INIT_STATE,8,3             ## @VAL_INIT_STATE
	.comm	_VAL_VALIDATE_STATE,8,3         ## @VAL_VALIDATE_STATE
	.comm	_LDNS_RCODE_NOERROR,4,2         ## @LDNS_RCODE_NOERROR
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ## @LDNS_RR_TYPE_DNSKEY
	.comm	_VAL_MAX_RESTART_COUNT,8,3      ## @VAL_MAX_RESTART_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"for trust anchor"

	.no_dead_strip	_process_prime_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_prime_response
_process_prime_response:                ; @process_prime_response
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x25, x4
	mov	x26, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #8]
	ldr	x22, [x9, w2, sxtw #3]
	ldr	w0, [x8]
	ldr	x1, [x1, #32]
	ldp	w3, w2, [x19, #44]
	ldr	w4, [x19, #40]
	bl	_anchor_find
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x25]
	ldr	w1, [x23]
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNSKEY@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldp	w4, w2, [x23, #16]
	bl	_reply_find_rrset_section_an
	mov	x25, x0
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_6
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _VAL_INIT_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VAL_INIT_STATE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_17
; %bb.4:
Lloh9:
	adrp	x8, _VAL_VALIDATE_STATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VAL_VALIDATE_STATE@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	mov	x25, #0
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_7
LBB0_6:
	ldr	x0, [x20, #16]
	mov	x1, x22
	mov	x2, x23
	mov	x3, x25
	mov	x4, x20
	bl	_autr_process_prime
	cbz	w0, LBB0_15
LBB0_7:
	mov	x0, x25
	mov	x1, x23
	mov	x2, x20
	mov	x3, x24
	bl	_primeResponseToKE
	str	x0, [x19, #16]
	add	x0, x23, #4
	bl	_lock_basic_unlock
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.8:
	bl	_key_entry_isbad
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _VAL_MAX_RESTART_COUNT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VAL_MAX_RESTART_COUNT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.10:
	add	x0, x19, #24
	ldr	w1, [x20, #8]
	mov	x2, x21
	mov	w3, #1
	bl	_val_blacklist
	str	xzr, [x20]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	xzr, [x19, #16]
Lloh14:
	adrp	x9, _VAL_INIT_STATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VAL_INIT_STATE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	stp	x8, x9, [x19]
	b	LBB0_18
LBB0_11:
	str	xzr, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_errinf_origin
	ldr	w2, [x23]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_errinf_dname
	ldr	w0, [x22]
	ldr	x1, [x19, #16]
	mov	x2, x20
	bl	_key_cache_insert
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.12:
	bl	_key_entry_isnull
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x19, #16]
	bl	_key_entry_isbad
	cbz	x0, LBB0_18
LBB0_14:
Lloh19:
	adrp	x8, _VAL_VALIDATE_STATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VAL_VALIDATE_STATE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_18
LBB0_15:
Lloh22:
	adrp	x8, _VAL_INIT_STATE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VAL_INIT_STATE@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_17:
	str	xzr, [x19, #32]
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VAL_INIT_STATE,8,3             ; @VAL_INIT_STATE
	.comm	_VAL_VALIDATE_STATE,8,3         ; @VAL_VALIDATE_STATE
	.comm	_LDNS_RCODE_NOERROR,4,2         ; @LDNS_RCODE_NOERROR
	.comm	_LDNS_RR_TYPE_DNSKEY,4,2        ; @LDNS_RR_TYPE_DNSKEY
	.comm	_VAL_MAX_RESTART_COUNT,8,3      ; @VAL_MAX_RESTART_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"for trust anchor"

	.no_dead_strip	_process_prime_response
.subsections_via_symbols
