	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_classify_response          ## -- Begin function val_classify_response
	.p2align	4, 0x90
_val_classify_response:                 ## @val_classify_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	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	movl	24(%rcx), %edi
	callq	_FLAGS_GET_RCODE
	movq	%rax, %r12
	movq	_LDNS_RCODE_NXDOMAIN@GOTPCREL(%rip), %rbx
	cmpl	%r12d, (%rbx)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r13)
	je	LBB0_20
LBB0_2:
	movq	_BIT_RD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
LBB0_3:
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_VAL_CLASS_UNKNOWN@GOTPCREL(%rip), %r14
	cmpl	%r12d, %eax
	je	LBB0_5
## %bb.4:
	cmpl	%r12d, (%rbx)
	jne	LBB0_39
LBB0_5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movslq	(%r13), %rcx
	cmpq	%r15, %rcx
	jbe	LBB0_33
LBB0_7:
	movslq	(%r13), %rcx
	cmpl	%r12d, %eax
	jne	LBB0_27
## %bb.8:
	testl	%ecx, %ecx
	je	LBB0_36
## %bb.9:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	_LDNS_RR_TYPE_ANY@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_27
## %bb.10:
	movq	_VAL_CLASS_ANY@GOTPCREL(%rip), %r14
	jmp	LBB0_39
LBB0_11:
	movl	(%r13), %ecx
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r13), %rdx
	testl	%ecx, %ecx
	jne	LBB0_21
## %bb.12:
	cmpl	%r12d, %eax
	jne	LBB0_21
## %bb.13:
	testq	%rdx, %rdx
	je	LBB0_36
## %bb.14:
	xorl	%ebx, %ebx
	movq	_VAL_CLASS_REFERRAL@GOTPCREL(%rip), %r14
	movl	$1, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_36
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_DS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_39
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmovel	%r15d, %ebx
	incq	%r12
	cmpq	8(%r13), %r12
	jb	LBB0_15
## %bb.18:
	testl	%ebx, %ebx
	jne	LBB0_39
LBB0_36:
	movq	_VAL_CLASS_NODATA@GOTPCREL(%rip), %r14
	jmp	LBB0_39
LBB0_20:
	movq	_VAL_CLASS_NAMEERROR@GOTPCREL(%rip), %r14
	jmp	LBB0_39
LBB0_21:
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.22:
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.23:
	cmpl	%r12d, %eax
	jne	LBB0_3
## %bb.24:
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.25:
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	callq	_query_dname_compare
	testq	%rax, %rax
	je	LBB0_3
## %bb.26:
	movq	_VAL_CLASS_REFERRAL@GOTPCREL(%rip), %r14
	jmp	LBB0_39
LBB0_27:
	cmpq	%r15, %rcx
	jbe	LBB0_34
## %bb.28:
	incq	%r15
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rbx
	cmpl	%r12d, %eax
	jne	LBB0_30
	.p2align	4, 0x90
LBB0_29:
	movq	16(%r13), %rax
	movq	-8(%rax,%r15,8), %rax
	movl	(%rax), %edi
	callq	_ntohs
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	je	LBB0_38
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	-8(%rax,%r15,8), %rax
	movl	(%rax), %edi
	callq	_ntohs
	cmpq	(%rbx), %rax
	je	LBB0_37
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jae	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	_LDNS_RCODE_NOERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incq	%r15
	cmpl	%r12d, %eax
	je	LBB0_29
	jmp	LBB0_30
LBB0_33:
	movq	_VAL_CLASS_CNAMENOANSWER@GOTPCREL(%rip), %r14
	jmp	LBB0_39
LBB0_34:
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_log_dns_msg
	jmp	LBB0_39
LBB0_37:
	movq	_VAL_CLASS_CNAME@GOTPCREL(%rip), %r14
	jmp	LBB0_39
LBB0_38:
	movq	_VAL_CLASS_POSITIVE@GOTPCREL(%rip), %r14
LBB0_39:
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RCODE_NXDOMAIN,4,2        ## @LDNS_RCODE_NXDOMAIN
	.comm	_VAL_CLASS_NAMEERROR,4,2        ## @VAL_CLASS_NAMEERROR
	.comm	_BIT_RD,4,2                     ## @BIT_RD
	.comm	_LDNS_RCODE_NOERROR,4,2         ## @LDNS_RCODE_NOERROR
	.comm	_LDNS_RR_TYPE_SOA,8,3           ## @LDNS_RR_TYPE_SOA
	.comm	_VAL_CLASS_NODATA,4,2           ## @VAL_CLASS_NODATA
	.comm	_LDNS_RR_TYPE_DS,8,3            ## @LDNS_RR_TYPE_DS
	.comm	_VAL_CLASS_REFERRAL,4,2         ## @VAL_CLASS_REFERRAL
	.comm	_LDNS_RR_TYPE_NS,8,3            ## @LDNS_RR_TYPE_NS
	.comm	_VAL_CLASS_UNKNOWN,4,2          ## @VAL_CLASS_UNKNOWN
	.comm	_VAL_CLASS_CNAMENOANSWER,4,2    ## @VAL_CLASS_CNAMENOANSWER
	.comm	_LDNS_RR_TYPE_ANY,8,3           ## @LDNS_RR_TYPE_ANY
	.comm	_VAL_CLASS_ANY,4,2              ## @VAL_CLASS_ANY
	.comm	_VAL_CLASS_POSITIVE,4,2         ## @VAL_CLASS_POSITIVE
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ## @LDNS_RR_TYPE_CNAME
	.comm	_VAL_CLASS_CNAME,4,2            ## @VAL_CLASS_CNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"validator: error. failed to classify response message: "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_val_classify_response          ; -- Begin function val_classify_response
	.p2align	2
_val_classify_response:                 ; @val_classify_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, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w0, [x3, #24]
	bl	_FLAGS_GET_RCODE
	mov	x22, x0
Lloh0:
	adrp	x26, _LDNS_RCODE_NXDOMAIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _LDNS_RCODE_NXDOMAIN@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_19
LBB0_2:
Lloh2:
	adrp	x8, _BIT_RD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT_RD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x25, _LDNS_RCODE_NOERROR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LDNS_RCODE_NOERROR@GOTPAGEOFF]
	tst	w8, w24
	b.eq	LBB0_10
LBB0_3:
	ldr	w8, [x25]
	ldr	w9, [x26]
	cmp	w8, w22
	ccmp	w9, w22, #4, ne
	b.ne	LBB0_34
; %bb.4:
	cbz	x21, LBB0_6
; %bb.5:
	ldrsw	x9, [x19]
	cmp	x9, x21
	b.ls	LBB0_32
LBB0_6:
	ldrsw	x9, [x19]
	cmp	w8, w22
	b.ne	LBB0_26
; %bb.7:
	cbz	w9, LBB0_18
; %bb.8:
	ldr	x10, [x20]
Lloh7:
	adrp	x11, _LDNS_RR_TYPE_ANY@GOTPAGE
Lloh8:
	ldr	x11, [x11, _LDNS_RR_TYPE_ANY@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_26
; %bb.9:
Lloh10:
	adrp	x23, _VAL_CLASS_ANY@GOTPAGE
Lloh11:
	ldr	x23, [x23, _VAL_CLASS_ANY@GOTPAGEOFF]
	b	LBB0_35
LBB0_10:
	ldr	w9, [x19]
	ldr	w8, [x25]
	ldr	x10, [x19, #8]
	cbnz	w9, LBB0_20
; %bb.11:
	cmp	w8, w22
	b.ne	LBB0_20
; %bb.12:
	cbz	x10, LBB0_18
; %bb.13:
	mov	w20, #0
	mov	x21, #0
Lloh12:
	adrp	x22, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh13:
	ldr	x22, [x22, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
Lloh14:
	adrp	x23, _VAL_CLASS_NODATA@GOTPAGE
Lloh15:
	ldr	x23, [x23, _VAL_CLASS_NODATA@GOTPAGEOFF]
Lloh16:
	adrp	x25, _LDNS_RR_TYPE_DS@GOTPAGE
Lloh17:
	ldr	x25, [x25, _LDNS_RR_TYPE_DS@GOTPAGEOFF]
Lloh18:
	adrp	x24, _VAL_CLASS_REFERRAL@GOTPAGE
Lloh19:
	ldr	x24, [x24, _VAL_CLASS_REFERRAL@GOTPAGEOFF]
Lloh20:
	adrp	x26, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh21:
	ldr	x26, [x26, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_36
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x26]
	cmp	x0, x8
	csinc	w20, w20, wzr, ne
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.lo	LBB0_14
; %bb.17:
	cbnz	w20, LBB0_25
LBB0_18:
Lloh22:
	adrp	x23, _VAL_CLASS_NODATA@GOTPAGE
Lloh23:
	ldr	x23, [x23, _VAL_CLASS_NODATA@GOTPAGEOFF]
	b	LBB0_35
LBB0_19:
Lloh24:
	adrp	x23, _VAL_CLASS_NAMEERROR@GOTPAGE
Lloh25:
	ldr	x23, [x23, _VAL_CLASS_NAMEERROR@GOTPAGEOFF]
	b	LBB0_35
LBB0_20:
	cbnz	x10, LBB0_3
; %bb.21:
	cmp	w9, #1
	b.ne	LBB0_3
; %bb.22:
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.23:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_ntohs
Lloh26:
	adrp	x8, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.24:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	ldr	w1, [x23, #8]
	bl	_query_dname_compare
	cbz	x0, LBB0_3
LBB0_25:
Lloh29:
	adrp	x23, _VAL_CLASS_REFERRAL@GOTPAGE
Lloh30:
	ldr	x23, [x23, _VAL_CLASS_REFERRAL@GOTPAGEOFF]
	b	LBB0_35
LBB0_26:
	cmp	x9, x21
	b.ls	LBB0_33
; %bb.27:
Lloh31:
	adrp	x23, _VAL_CLASS_POSITIVE@GOTPAGE
Lloh32:
	ldr	x23, [x23, _VAL_CLASS_POSITIVE@GOTPAGEOFF]
Lloh33:
	adrp	x26, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh34:
	ldr	x26, [x26, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
Lloh35:
	adrp	x24, _VAL_CLASS_CNAME@GOTPAGE
Lloh36:
	ldr	x24, [x24, _VAL_CLASS_CNAME@GOTPAGEOFF]
	cmp	w8, w22
	b.ne	LBB0_29
LBB0_28:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_35
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8]
	bl	_ntohs
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_36
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.hs	LBB0_33
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [x25]
	cmp	w8, w22
	b.eq	LBB0_28
	b	LBB0_29
LBB0_32:
Lloh37:
	adrp	x23, _VAL_CLASS_CNAMENOANSWER@GOTPAGE
Lloh38:
	ldr	x23, [x23, _VAL_CLASS_CNAMENOANSWER@GOTPAGEOFF]
	b	LBB0_35
LBB0_33:
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_log_dns_msg
LBB0_34:
Lloh41:
	adrp	x23, _VAL_CLASS_UNKNOWN@GOTPAGE
Lloh42:
	ldr	x23, [x23, _VAL_CLASS_UNKNOWN@GOTPAGEOFF]
LBB0_35:
	ldr	w0, [x23]
	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
LBB0_36:
	mov	x23, x24
	b	LBB0_35
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RCODE_NXDOMAIN,4,2        ; @LDNS_RCODE_NXDOMAIN
	.comm	_VAL_CLASS_NAMEERROR,4,2        ; @VAL_CLASS_NAMEERROR
	.comm	_BIT_RD,4,2                     ; @BIT_RD
	.comm	_LDNS_RCODE_NOERROR,4,2         ; @LDNS_RCODE_NOERROR
	.comm	_LDNS_RR_TYPE_SOA,8,3           ; @LDNS_RR_TYPE_SOA
	.comm	_VAL_CLASS_NODATA,4,2           ; @VAL_CLASS_NODATA
	.comm	_LDNS_RR_TYPE_DS,8,3            ; @LDNS_RR_TYPE_DS
	.comm	_VAL_CLASS_REFERRAL,4,2         ; @VAL_CLASS_REFERRAL
	.comm	_LDNS_RR_TYPE_NS,8,3            ; @LDNS_RR_TYPE_NS
	.comm	_VAL_CLASS_UNKNOWN,4,2          ; @VAL_CLASS_UNKNOWN
	.comm	_VAL_CLASS_CNAMENOANSWER,4,2    ; @VAL_CLASS_CNAMENOANSWER
	.comm	_LDNS_RR_TYPE_ANY,8,3           ; @LDNS_RR_TYPE_ANY
	.comm	_VAL_CLASS_ANY,4,2              ; @VAL_CLASS_ANY
	.comm	_VAL_CLASS_POSITIVE,4,2         ; @VAL_CLASS_POSITIVE
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ; @LDNS_RR_TYPE_CNAME
	.comm	_VAL_CLASS_CNAME,4,2            ; @VAL_CLASS_CNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"validator: error. failed to classify response message: "

.subsections_via_symbols
