	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_spurious_authority
_remove_spurious_authority:             ## @remove_spurious_authority
	.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	(%rdi), %rbx
	movslq	8(%rdi), %rax
	movq	%rax, %rcx
	xorq	$1, %rcx
	orq	%rbx, %rcx
	je	LBB0_6
## %bb.1:
	addq	%rbx, %rax
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_LDNS_RR_TYPE_NS@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	8(%r14), %rax
	addq	(%r14), %rax
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %r12
	movl	4(%rax), %edi
	callq	_ntohs
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_5
## %bb.7:
	movq	_VERB_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_log_rrset_key
	movq	(%r15), %r12
	movslq	8(%r15), %rax
	addq	%r12, %rax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	8(%r15), %rax
	addq	(%r15), %rax
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %r12
	jae	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %esi
	callq	_query_dname_compare
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_val_reply_remove_auth
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_val_reply_remove_auth          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	"Removing spurious unsigned NS record (likely inserted by forwarder)"

	.no_dead_strip	_remove_spurious_authority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_spurious_authority
_remove_spurious_authority:             ; @remove_spurious_authority
	.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
	ldr	x20, [x0]
	ldrsw	x8, [x0, #8]
	cmp	x8, #1
	ccmp	x20, #0, #0, eq
	add	x8, x20, x8
	ccmp	x20, x8, #2, ne
	b.lo	LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _LDNS_RR_TYPE_NS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LDNS_RR_TYPE_NS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	x8, x8, x9
	cmp	x20, x8
	b.hs	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x22, [x8, #8]
	ldr	w0, [x8, #4]
	bl	_ntohs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_3
; %bb.6:
Lloh2:
	adrp	x8, _VERB_ALGO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VERB_ALGO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	x2, [x8, x20, lsl #3]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_rrset_key
	ldr	x22, [x21]
	ldrsw	x8, [x21, #8]
	add	x8, x22, x8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldr	x8, [x21]
	ldrsw	x9, [x21, #8]
	add	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, x8
	b.hs	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8, #4]
	bl	_ntohs
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x22, lsl #3]
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w1, [x8]
	bl	_query_dname_compare
	cbnz	x0, LBB0_7
; %bb.11:
	mov	x0, x21
	mov	x1, x22
	bl	_val_reply_remove_auth
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	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
	b	_val_reply_remove_auth
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.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	"Removing spurious unsigned NS record (likely inserted by forwarder)"

	.no_dead_strip	_remove_spurious_authority
.subsections_via_symbols
