	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function val_check_nonsecure
LCPI0_0:
	.space	16,255
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_val_check_nonsecure
	.p2align	4, 0x90
_val_check_nonsecure:                   ## @val_check_nonsecure
	.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	%rsi, %r13
	movq	(%rsi), %r8
	movq	8(%rsi), %rcx
	leaq	(%rcx,%r8), %rbx
	cmpq	%rbx, %r8
	jae	LBB0_8
## %bb.1:
	movq	32(%r13), %r9
	movq	_sec_status_secure@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	(,%r8,8), %r14
	leaq	1(%r8), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%r14), %rax
	movq	(%rax), %rdx
	cmpq	%rsi, (%rdx)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r14
	incq	%r15
	decq	%rcx
	jne	LBB0_2
LBB0_8:
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.9:
	movq	16(%r13), %rdx
	cmpq	%rbx, %rdx
	jbe	LBB0_14
## %bb.10:
	movq	_sec_status_secure@GOTPCREL(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jbe	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	(%rax,%rbx,8), %rdi
	leaq	8(%rdi), %rsi
	movl	%ebx, %eax
	notl	%eax
	addl	%eax, %edx
	shll	$3, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movdqu	16(%r13), %xmm0
	paddq	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 16(%r13)
	decq	%rbx
	movq	%xmm0, %rdx
	jmp	LBB0_13
LBB0_3:
	testq	%r8, %r8
	je	LBB0_6
## %bb.4:
	movl	12(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.15:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_verbose
	movq	$0, 24(%r13)
	movq	8(%r13), %rdx
	movq	32(%r13), %rax
	addq	(%r13), %rdx
	movq	%rdx, 16(%r13)
	leaq	(%rax,%r14), %rdi
	leaq	(%rax,%r14), %rsi
	addq	$8, %rsi
	subl	%r15d, %edx
	shll	$3, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movdqu	8(%r13), %xmm0
	pcmpeqd	%xmm1, %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 8(%r13)
	jmp	LBB0_14
LBB0_5:
	movq	32(%r13), %rax
	movq	(%rax,%r14), %rax
LBB0_6:
	movq	_VERB_QUERY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	12(%rax), %edi
	movl	16(%rax), %r15d
	callq	_ntohs
	movq	%rax, %r12
	movq	32(%r13), %rax
	movq	(%rax,%r14), %rax
	movl	8(%rax), %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_log_nametypeclass
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_status_secure,8,3          ## @sec_status_secure
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_VERB_ALGO,4,2                  ## @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncate to minimal"

	.comm	_VERB_QUERY,4,2                 ## @VERB_QUERY
L_.str.1:                               ## @.str.1
	.asciz	"message is bogus, non secure rrset"

	.comm	_sec_status_bogus,4,2           ## @sec_status_bogus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_check_nonsecure            ; -- Begin function val_check_nonsecure
	.p2align	2
_val_check_nonsecure:                   ; @val_check_nonsecure
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldp	x8, x9, [x1]
	add	x20, x9, x8
	cmp	x8, x20
	b.hs	LBB0_4
; %bb.1:
	ldr	x10, [x19, #32]
Lloh0:
	adrp	x11, _sec_status_secure@GOTPAGE
Lloh1:
	ldr	x11, [x11, _sec_status_secure@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	lsl	x23, x8, #3
	add	x21, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x23]
	ldr	x13, [x12]
	ldr	x13, [x13]
	cmp	x13, x11
	b.ne	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #8
	add	x21, x21, #1
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_15
; %bb.5:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.ls	LBB0_15
; %bb.6:
Lloh3:
	adrp	x21, _sec_status_secure@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sec_status_secure@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ls	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	add	x0, x9, x20, lsl #3
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x10, [x21]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, x0, #8
	mvn	w9, w20
	add	w8, w8, w9
	lsl	w2, w8, #3
	bl	_memmove
	ldr	q0, [x19, #16]
	movi.2d	v1, #0xffffffffffffffff
	add.2d	v0, v0, v1
	str	q0, [x19, #16]
	sub	x20, x20, #1
	fmov	x8, d0
	b	LBB0_7
LBB0_10:
	cbz	x8, LBB0_14
; %bb.11:
	ldr	w0, [x12, #12]
	bl	_ntohs
Lloh5:
	adrp	x8, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_verbose
	ldp	x8, x9, [x19]
	add	x8, x9, x8
	sub	w9, w8, w21
	stp	x8, xzr, [x19, #16]
	ldr	x8, [x19, #32]
	add	x0, x8, x23
	add	x1, x0, #8
	lsl	w2, w9, #3
	bl	_memmove
	ldur	q0, [x19, #8]
	movi.2d	v1, #0xffffffffffffffff
	add.2d	v0, v0, v1
	stur	q0, [x19, #8]
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19, #32]
	ldr	x12, [x8, x23]
LBB0_14:
Lloh13:
	adrp	x8, _VERB_QUERY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VERB_QUERY@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	ldp	w0, w21, [x12, #12]
	bl	_ntohs
	mov	x22, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23]
	ldr	w0, [x8, #8]
	bl	_ntohs
	mov	x4, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_log_nametypeclass
Lloh18:
	adrp	x8, _sec_status_bogus@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sec_status_bogus@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #40]
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_status_secure,8,3          ; @sec_status_secure
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_VERB_ALGO,4,2                  ; @VERB_ALGO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncate to minimal"

	.comm	_VERB_QUERY,4,2                 ; @VERB_QUERY
l_.str.1:                               ; @.str.1
	.asciz	"message is bogus, non secure rrset"

	.comm	_sec_status_bogus,4,2           ; @sec_status_bogus
.subsections_via_symbols
