	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_nameerror_response
_validate_nameerror_response:           ## @validate_nameerror_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	(%rcx), %r14
	movq	8(%rcx), %rax
	addq	%r14, %rax
	cmpq	%rax, %r14
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	jae	LBB0_16
## %bb.1:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	8(%rbx), %rcx
	addq	(%rbx), %rcx
	cmpq	%rcx, %r14
	jae	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r14,8), %r15
	movl	(%r15), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_val_nsec_proves_name_error
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r13d
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	4(%rbx), %edi
	movq	%r15, %rsi
	callq	_nsec_closest_encloser
	movq	%rax, %rdi
	callq	_dname_count_labels
	movl	%eax, %r13d
	cmpl	%r12d, %eax
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_val_nsec_proves_no_wc
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_val_nsec_proves_insecuredelegation
	movl	%r13d, %r12d
	testq	%rax, %rax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_10
## %bb.8:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	_sec_status_insecure@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	testl	%r13d, %r13d
	sete	%al
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%dl
	orb	%al, %dl
	cmpb	$1, %dl
	jne	LBB0_15
## %bb.12:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.13:
	movq	24(%rbx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_nsec3_prove_nameerror
	movq	%rax, 16(%rbx)
	movq	_sec_status_secure@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.14:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_sec_status_to_string
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verbose                        ## TAILCALL
LBB0_15:
	testl	%r13d, %r13d
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_16
## %bb.18:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
LBB0_21:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	_sec_status_secure@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_23
LBB0_16:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movq	%rdi, %r15
	movl	(%rax), %edi
	movq	%rsi, %r14
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_validate_nodata_response
	movq	16(%rbx), %rax
	movq	_sec_status_secure@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.17:
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r9, %r13
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movq	%rdi, %r15
	movl	(%rax), %edi
	movq	%rsi, %r14
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_verbose
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_validate_nodata_response
	movq	16(%rbx), %rax
	movq	_sec_status_secure@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.20:
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delegation is insecure"

	.comm	_sec_status_insecure,8,3        ## @sec_status_insecure
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
	.comm	_sec_status_secure,8,3          ## @sec_status_secure
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
L_.str.1:                               ## @.str.1
	.asciz	"NameError response failed nsec, nsec3 proof was %s"

L_.str.2:                               ## @.str.2
	.asciz	"NameError response has failed to prove: qname does not exist"

	.comm	_sec_status_bogus,8,3           ## @sec_status_bogus
	.comm	_LDNS_RCODE_NOERROR,4,2         ## @LDNS_RCODE_NOERROR
L_.str.3:                               ## @.str.3
	.asciz	"NameError response has failed to prove: covering wildcard does not exist"

L_.str.4:                               ## @.str.4
	.asciz	"successfully validated NAME ERROR response."

	.no_dead_strip	_validate_nameerror_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_nameerror_response
_validate_nameerror_response:           ; @validate_nameerror_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x5
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x24, x1
	mov	x9, x0
	ldp	x28, x8, [x3]
	add	x8, x8, x28
	cmp	x28, x8
	b.hs	LBB0_19
; %bb.1:
	stp	x9, x24, [sp, #24]              ; 16-byte Folded Spill
	str	x23, [sp, #40]                  ; 8-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	w24, #0
	mov	w27, #0
	mov	w21, #0
	mov	w20, #0
Lloh0:
	adrp	x23, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_ntohs
Lloh2:
	adrp	x8, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	csinc	w20, w20, wzr, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldp	x8, x9, [x19]
	add	x3, x9, x8
	cmp	x28, x3
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x25, [x8, x28, lsl #3]
	ldr	w0, [x25]
	bl	_ntohs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x22, #4]
	mov	x0, x25
	bl	_val_nsec_proves_name_error
	cmp	x0, #0
	csinc	w27, w27, wzr, eq
	ldr	w0, [x22, #4]
	mov	x1, x25
	bl	_nsec_closest_encloser
	bl	_dname_count_labels
	mov	x26, x0
	cmp	w0, w24
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ccmp	w21, #0, #0, eq
	b.ne	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w2, w1, [x22]
	mov	x0, x25
	bl	_val_nsec_proves_no_wc
	cmp	x0, #0
	cset	w21, ne
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x22
	bl	_val_nsec_proves_insecuredelegation
	cbnz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x26
	b	LBB0_3
LBB0_10:
	cmp	w21, #0
	ccmp	w27, #0, #4, ne
	b.ne	LBB0_15
; %bb.11:
	cbz	w20, LBB0_15
; %bb.12:
	ldr	x2, [x19, #24]
	ldp	x0, x1, [sp, #24]               ; 16-byte Folded Reload
	mov	x4, x22
	ldr	x5, [sp, #40]                   ; 8-byte Folded Reload
	bl	_nsec3_prove_nameerror
	str	x0, [x19, #16]
Lloh5:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.13:
Lloh8:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	bl	_sec_status_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_verbose
	b	LBB0_22
LBB0_14:
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
	bl	_verbose
Lloh18:
	adrp	x8, _sec_status_insecure@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sec_status_insecure@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	ldp	x20, x9, [sp, #16]              ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	cbz	w27, LBB0_19
; %bb.16:
	cbz	w21, LBB0_23
LBB0_17:
Lloh20:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_verbose
Lloh25:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
LBB0_18:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_22
LBB0_19:
Lloh27:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_20:
	mov	x21, x9
	bl	_verbose
Lloh32:
	adrp	x8, _sec_status_bogus@GOTPAGE
Lloh33:
	ldr	x8, [x8, _sec_status_bogus@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	bl	_validate_nodata_response
	ldr	x8, [x19, #16]
Lloh35:
	adrp	x9, _sec_status_secure@GOTPAGE
Lloh36:
	ldr	x9, [x9, _sec_status_secure@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
Lloh38:
	adrp	x8, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_22:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_23:
Lloh41:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delegation is insecure"

	.comm	_sec_status_insecure,8,3        ; @sec_status_insecure
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
	.comm	_sec_status_secure,8,3          ; @sec_status_secure
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
l_.str.1:                               ; @.str.1
	.asciz	"NameError response failed nsec, nsec3 proof was %s"

l_.str.2:                               ; @.str.2
	.asciz	"NameError response has failed to prove: qname does not exist"

	.comm	_sec_status_bogus,8,3           ; @sec_status_bogus
	.comm	_LDNS_RCODE_NOERROR,4,2         ; @LDNS_RCODE_NOERROR
l_.str.3:                               ; @.str.3
	.asciz	"NameError response has failed to prove: covering wildcard does not exist"

l_.str.4:                               ; @.str.4
	.asciz	"successfully validated NAME ERROR response."

	.no_dead_strip	_validate_nameerror_response
.subsections_via_symbols
