	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function neg_find_nsec
_neg_find_nsec:                         ## @neg_find_nsec
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_dname_count_labels
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_lock_basic_lock
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_neg_closest_zone_parent
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 24(%rbx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
LBB0_4:
	movq	%r12, %rdi
	callq	_lock_basic_unlock
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_neg_closest_data
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	cmpl	$0, 8(%rax)
	je	LBB0_8
LBB0_10:
	movl	4(%rax), %edi
	movl	4(%rbx), %esi
	callq	_query_dname_compare
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movq	_PACKED_RRSET_NSEC_AT_APEX@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	jmp	LBB0_13
LBB0_11:
	xorl	%r9d, %r9d
LBB0_13:
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rbp), %r11
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	pushq	%r10
	pushq	$0
	pushq	$0
	pushq	%r11
	callq	_grab_nsec
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_lock_basic_unlock
	jmp	LBB0_14
LBB0_8:
	movq	%rax, %rdi
	callq	_rbtree_previous
	movq	%rax, -48(%rbp)
	movq	_RBTREE_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.9:
	cmpl	$0, 8(%rax)
	jne	LBB0_10
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_RBTREE_NULL,8,3                ## @RBTREE_NULL
	.comm	_PACKED_RRSET_NSEC_AT_APEX,8,3  ## @PACKED_RRSET_NSEC_AT_APEX
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ## @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_neg_find_nsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function neg_find_nsec
_neg_find_nsec:                         ; @neg_find_nsec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x6
	mov	x22, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dname_count_labels
	mov	x26, x0
	mov	x0, x19
	bl	_lock_basic_lock
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	mov	x4, x23
	bl	_neg_closest_zone_parent
	cbz	x0, LBB0_5
; %bb.1:
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #24]
	cbnz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [x23, #16]
	cbnz	x23, LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_lock_basic_unlock
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	add	x4, sp, #8
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	bl	_neg_closest_data
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.8:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_10
LBB0_9:
	ldr	w0, [x0, #4]
	ldr	w1, [x23, #4]
	bl	_query_dname_compare
Lloh0:
	adrp	x8, _PACKED_RRSET_NSEC_AT_APEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKED_RRSET_NSEC_AT_APEX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x5, x8, xzr, eq
	ldr	x8, [sp, #8]
	ldp	w2, w1, [x8]
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldr	w4, [x23]
	stp	wzr, w22, [sp]
	mov	x0, x21
	mov	x6, x20
	mov	w7, #0
	bl	_grab_nsec
	mov	x20, x0
	mov	x0, x19
	bl	_lock_basic_unlock
	b	LBB0_6
LBB0_10:
	bl	_rbtree_previous
	str	x0, [sp, #8]
Lloh6:
	adrp	x8, _RBTREE_NULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RBTREE_NULL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.11:
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_9
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RBTREE_NULL,8,3                ; @RBTREE_NULL
	.comm	_PACKED_RRSET_NSEC_AT_APEX,8,3  ; @PACKED_RRSET_NSEC_AT_APEX
	.comm	_LDNS_RR_TYPE_NSEC,4,2          ; @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_neg_find_nsec
.subsections_via_symbols
