	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_cname_response
_validate_cname_response:               ## @validate_cname_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	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	cmpq	$0, (%rcx)
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%r15,8), %r13
	movq	%r13, %rdi
	leaq	-48(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_val_rrset_wildcard
	testl	%eax, %eax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_ntohs
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	(%r14), %rbx
	cmpq	%rbx, %r15
	jb	LBB0_4
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	movl	8(%r13), %r15d
	callq	_ntohs
	movq	%rax, %rbx
	movl	4(%r13), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_13:
	movq	(%r14), %rbx
LBB0_14:
	movq	16(%r14), %rax
	addq	%rbx, %rax
	xorl	%r12d, %r12d
	cmpq	%rax, %rbx
	jae	LBB0_28
## %bb.15:
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movq	(%r14), %rdx
	movq	16(%r14), %rcx
	leaq	(%rcx,%rdx), %rax
	cmpq	%rax, %rbx
	jae	LBB0_22
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %r13
	movl	(%r13), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_val_nsec_proves_positive_wildcard
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r12d
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r13), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1, %eax
	cmovel	%eax, %r15d
	jmp	LBB0_21
LBB0_22:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.23:
	testl	%r12d, %r12d
	jne	LBB0_29
## %bb.24:
	testl	%r15d, %r15d
	je	LBB0_29
## %bb.25:
	shlq	$3, %rdx
	addq	24(%r14), %rdx
	movq	%rax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	callq	_nsec3_prove_wildcard
	movq	_sec_status_insecure@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_27
## %bb.26:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_verbose
	movl	(%rbx), %eax
	jmp	LBB0_34
LBB0_11:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	movl	8(%r13), %r15d
	callq	_ntohs
	movq	%rax, %rbx
	movl	4(%r13), %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	%r12d, %edi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_log_nametypeclass
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_27:
	movq	_sec_status_secure@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	sete	%r12b
LBB0_28:
	movq	-48(%rbp), %rax
LBB0_29:
	testq	%rax, %rax
	je	LBB0_32
## %bb.30:
	testl	%r12d, %r12d
	jne	LBB0_32
## %bb.31:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_verbose
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
	jmp	LBB0_33
LBB0_32:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_verbose
	movq	_sec_status_secure@GOTPCREL(%rip), %rax
LBB0_33:
	movl	(%rax), %eax
LBB0_34:
	movl	%eax, 8(%r14)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cname response has inconsistent wildcard sigs:"

	.comm	_sec_status_bogus,8,3           ## @sec_status_bogus
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ## @LDNS_RR_TYPE_DNAME
L_.str.1:                               ## @.str.1
	.asciz	"cannot validate a wildcarded DNAME:"

	.comm	_LDNS_RR_TYPE_CNAME,8,3         ## @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ## @LDNS_RR_TYPE_NSEC3
	.comm	_sec_status_insecure,4,2        ## @sec_status_insecure
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
L_.str.2:                               ## @.str.2
	.asciz	"wildcard CNAME response is insecure"

	.comm	_sec_status_secure,4,2          ## @sec_status_secure
L_.str.3:                               ## @.str.3
	.asciz	"CNAME response was wildcard expansion and did not prove original data did not exist"

L_.str.4:                               ## @.str.4
	.asciz	"Successfully validated CNAME response"

	.no_dead_strip	_validate_cname_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_cname_response
_validate_cname_response:               ; @validate_cname_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	x28, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #24]
	ldr	x8, [x3]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x25, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh2:
	adrp	x27, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh3:
	ldr	x27, [x27, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x24, [x8, x20, lsl #3]
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x24
	bl	_val_rrset_wildcard
	cbz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_ntohs
	ldr	x8, [x25]
	ldr	x9, [sp, #24]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.ne	LBB0_22
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_ntohs
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldr	x26, [x19]
	cmp	x20, x26
	b.lo	LBB0_2
	b	LBB0_10
LBB0_7:
	mov	x26, #0
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	ldr	w21, [x24, #8]
	ldr	w0, [x24]
	bl	_ntohs
	mov	x22, x0
	ldr	w0, [x24, #4]
	bl	_ntohs
	mov	x4, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_23
LBB0_9:
	ldr	x26, [x19]
LBB0_10:
	ldr	x8, [x19, #16]
	add	x8, x8, x26
	cmp	x26, x8
	b.hs	LBB0_18
; %bb.11:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	mov	w25, #0
	mov	w27, #0
Lloh9:
	adrp	x28, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh10:
	ldr	x28, [x28, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh11:
	adrp	x20, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh12:
	ldr	x20, [x20, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x26, #1
	ldr	x8, [x19]
	ldr	x3, [x19, #16]
	add	x9, x3, x8
	cmp	x26, x9
	b.hs	LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #24]
	ldr	x24, [x8, x26, lsl #3]
	ldr	w0, [x24]
	bl	_ntohs
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x2, [sp, #24]
	mov	x0, x24
	mov	x1, x21
	bl	_val_nsec_proves_positive_wildcard
	cmp	x0, #0
	csinc	w25, w25, wzr, eq
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x24]
	bl	_ntohs
	ldr	x8, [x20]
	cmp	x0, x8
	csinc	w27, w27, wzr, ne
	b	LBB0_12
LBB0_18:
	mov	w25, #0
	b	LBB0_25
LBB0_19:
	ldr	x6, [sp, #24]
	cmp	x6, #0
	ccmp	w25, #0, #0, ne
	ccmp	w27, #0, #4, eq
	b.eq	LBB0_26
; %bb.20:
	ldr	x9, [x19, #24]
	add	x2, x9, x8, lsl #3
	mov	x0, x23
	mov	x1, x22
	mov	x4, x21
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	bl	_nsec3_prove_wildcard
Lloh13:
	adrp	x20, _sec_status_insecure@GOTPAGE
Lloh14:
	ldr	x20, [x20, _sec_status_insecure@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.21:
Lloh15:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_verbose
	ldr	w8, [x20]
	b	LBB0_32
LBB0_22:
Lloh20:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	ldr	w21, [x24, #8]
	ldr	w0, [x24]
	bl	_ntohs
	mov	x22, x0
	ldr	w0, [x24, #4]
	bl	_ntohs
	mov	x4, x0
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_23:
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_log_nametypeclass
	b	LBB0_29
LBB0_24:
Lloh25:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh26:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w25, eq
LBB0_25:
	ldr	x6, [sp, #24]
LBB0_26:
	cbz	x6, LBB0_30
; %bb.27:
	cbnz	w25, LBB0_30
; %bb.28:
Lloh28:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_verbose
LBB0_29:
Lloh33:
	adrp	x8, _sec_status_bogus@GOTPAGE
Lloh34:
	ldr	x8, [x8, _sec_status_bogus@GOTPAGEOFF]
	b	LBB0_31
LBB0_30:
Lloh35:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_verbose
Lloh40:
	adrp	x8, _sec_status_secure@GOTPAGE
Lloh41:
	ldr	x8, [x8, _sec_status_secure@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
LBB0_32:
	str	w8, [x19, #8]
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cname response has inconsistent wildcard sigs:"

	.comm	_sec_status_bogus,8,3           ; @sec_status_bogus
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ; @LDNS_RR_TYPE_DNAME
l_.str.1:                               ; @.str.1
	.asciz	"cannot validate a wildcarded DNAME:"

	.comm	_LDNS_RR_TYPE_CNAME,8,3         ; @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.comm	_LDNS_RR_TYPE_NSEC3,8,3         ; @LDNS_RR_TYPE_NSEC3
	.comm	_sec_status_insecure,4,2        ; @sec_status_insecure
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
l_.str.2:                               ; @.str.2
	.asciz	"wildcard CNAME response is insecure"

	.comm	_sec_status_secure,4,2          ; @sec_status_secure
l_.str.3:                               ; @.str.3
	.asciz	"CNAME response was wildcard expansion and did not prove original data did not exist"

l_.str.4:                               ; @.str.4
	.asciz	"Successfully validated CNAME response"

	.no_dead_strip	_validate_cname_response
.subsections_via_symbols
