	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_nodata_response
_validate_nodata_response:              ## @validate_nodata_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	$0, -64(%rbp)
	movq	(%rcx), %r12
	movq	8(%rcx), %rax
	addq	%r12, %rax
	cmpq	%rax, %r12
	jae	LBB0_21
## %bb.1:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	8(%rbx), %rax
	addq	(%rbx), %rax
	cmpq	%rax, %r12
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r12,8), %r13
	movl	(%r13), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	callq	_nsec_proves_nodata
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r15d
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_val_nsec_proves_name_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_nsec_closest_encloser
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_val_nsec_proves_insecuredelegation
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movq	_sec_status_insecure@GOTPCREL(%rip), %r15
	jmp	LBB0_25
LBB0_9:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	xorl	%ecx, %ecx
	testq	%rsi, %rsi
	je	LBB0_16
LBB0_11:
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.13:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.15:
	callq	_query_dname_compare
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	testl	%ecx, %ecx
	je	LBB0_17
	jmp	LBB0_20
LBB0_12:
	movl	%r15d, %ecx
LBB0_16:
	testl	%ecx, %ecx
	jne	LBB0_20
LBB0_17:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.18:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	shlq	$3, %rdx
	addq	24(%rbx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_nsec3_prove_nodata
	movq	_sec_status_insecure@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_23
## %bb.19:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_verbose
	jmp	LBB0_25
LBB0_23:
	movq	_sec_status_secure@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_24
LBB0_21:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_verbose
	movq	_verbosity@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VERB_ALGO@GOTPCREL(%rip), %rcx
	movq	_sec_status_bogus@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	jl	LBB0_25
## %bb.22:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_log_dns_msg
	jmp	LBB0_25
LBB0_14:
	movl	%r15d, %ecx
	testl	%ecx, %ecx
	je	LBB0_17
LBB0_20:
	testl	%ecx, %ecx
	je	LBB0_21
LBB0_24:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_verbose
	movq	_sec_status_secure@GOTPCREL(%rip), %r15
LBB0_25:
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_VERB_ALGO,8,3                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delegation is insecure"

	.comm	_sec_status_insecure,4,2        ## @sec_status_insecure
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
L_.str.1:                               ## @.str.1
	.asciz	"NODATA response is insecure"

	.comm	_sec_status_secure,4,2          ## @sec_status_secure
	.comm	_VERB_QUERY,8,3                 ## @VERB_QUERY
L_.str.2:                               ## @.str.2
	.asciz	"NODATA response failed to prove NODATA status with NSEC/NSEC3"

	.comm	_verbosity,8,3                  ## @verbosity
L_.str.3:                               ## @.str.3
	.asciz	"Failed NODATA"

	.comm	_sec_status_bogus,4,2           ## @sec_status_bogus
L_.str.4:                               ## @.str.4
	.asciz	"successfully validated NODATA response."

	.no_dead_strip	_validate_nodata_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_nodata_response
_validate_nodata_response:              ; @validate_nodata_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x20, x2
	str	xzr, [sp, #24]
	ldp	x28, x8, [x3]
	add	x8, x8, x28
	cmp	x28, x8
	b.hs	LBB0_23
; %bb.1:
	mov	x23, x0
	stp	x1, x4, [sp, #8]                ; 16-byte Folded Spill
	mov	w26, #0
	mov	x24, #0
	mov	w27, #0
Lloh0:
	adrp	x21, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh2:
	adrp	x22, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh3:
	ldr	x22, [x22, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_ntohs
	ldr	x8, [x22]
	cmp	x0, x8
	csinc	w27, w27, wzr, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldp	x8, x9, [x19]
	add	x8, x9, x8
	cmp	x28, x8
	b.hs	LBB0_9
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, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #24
	mov	x0, x25
	mov	x1, x20
	bl	_nsec_proves_nodata
	cmp	x0, #0
	csinc	w26, w26, wzr, eq
	ldr	w1, [x20]
	mov	x0, x25
	bl	_val_nsec_proves_name_error
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x25
	bl	_nsec_closest_encloser
	mov	x24, x0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x20
	bl	_val_nsec_proves_insecuredelegation
	cbz	x0, LBB0_3
; %bb.8:
Lloh4:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_9:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_12
; %bb.10:
	cbnz	x24, LBB0_12
; %bb.11:
	mov	w26, #0
	b	LBB0_15
LBB0_12:
	cbz	x0, LBB0_15
; %bb.13:
	cbz	x24, LBB0_15
; %bb.14:
	mov	x1, x24
	bl	_query_dname_compare
	cmp	x0, #0
	csel	w26, w26, wzr, eq
LBB0_15:
	cbnz	w26, LBB0_20
; %bb.16:
	cbz	w27, LBB0_20
; %bb.17:
	ldr	x8, [x19, #24]
	ldp	x9, x3, [x19]
	add	x2, x8, x9, lsl #3
	mov	x0, x23
	ldp	x1, x5, [sp, #8]                ; 16-byte Folded Reload
	mov	x4, x20
	bl	_nsec3_prove_nodata
Lloh9:
	adrp	x8, _sec_status_insecure@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sec_status_insecure@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.18:
Lloh12:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_19:
	bl	_verbose
Lloh17:
	adrp	x8, _sec_status_insecure@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sec_status_insecure@GOTPAGEOFF]
	b	LBB0_26
LBB0_20:
	cbz	w26, LBB0_23
LBB0_21:
Lloh19:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_verbose
Lloh24:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
Lloh26:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh27:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_21
LBB0_23:
Lloh29:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh31:
	ldr	x0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_verbose
Lloh34:
	adrp	x8, _verbosity@GOTPAGE
Lloh35:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _VERB_ALGO@GOTPAGE
Lloh38:
	ldr	x9, [x9, _VERB_ALGO@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_25
; %bb.24:
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_log_dns_msg
LBB0_25:
Lloh42:
	adrp	x8, _sec_status_bogus@GOTPAGE
Lloh43:
	ldr	x8, [x8, _sec_status_bogus@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_VERB_ALGO,8,3                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delegation is insecure"

	.comm	_sec_status_insecure,4,2        ; @sec_status_insecure
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
l_.str.1:                               ; @.str.1
	.asciz	"NODATA response is insecure"

	.comm	_sec_status_secure,4,2          ; @sec_status_secure
	.comm	_VERB_QUERY,8,3                 ; @VERB_QUERY
l_.str.2:                               ; @.str.2
	.asciz	"NODATA response failed to prove NODATA status with NSEC/NSEC3"

	.comm	_verbosity,8,3                  ; @verbosity
l_.str.3:                               ; @.str.3
	.asciz	"Failed NODATA"

	.comm	_sec_status_bogus,4,2           ; @sec_status_bogus
l_.str.4:                               ; @.str.4
	.asciz	"successfully validated NODATA response."

	.no_dead_strip	_validate_nodata_response
.subsections_via_symbols
