	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function neg_nsec3_getnc
_neg_nsec3_getnc:                       ## @neg_nsec3_getnc
	.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
	movl	%r9d, %r15d
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdi, %rbx
	movq	16(%rbp), %r13
	movq	24(%rbp), %r9
	movl	24(%rdi), %ecx
	movl	28(%rdi), %eax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%eax, %edx
	movq	%r13, %r8
	callq	_nsec3_hash_to_b32
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	16(%rbx), %rcx
	incq	%rcx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_neg_closest_data
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 16(%rax)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_12
LBB0_6:
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	_LDNS_RR_TYPE_NSEC3@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%r9d, %r9d
	pushq	%r15
	pushq	$0
	pushq	$0
	pushq	%r14
	callq	_grab_nsec
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_neg_params_ok
	xorl	%r13d, %r13d
	testl	%eax, %eax
	cmovneq	%r14, %r13
	jmp	LBB0_12
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.9:
	leaq	8(%rbx), %rdi
	callq	_rbtree_last
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC3,4,2         ## @LDNS_RR_TYPE_NSEC3
	.no_dead_strip	_neg_nsec3_getnc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function neg_nsec3_getnc
_neg_nsec3_getnc:                       ; @neg_nsec3_getnc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x6
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x8, x2
	mov	x19, x0
	ldp	w3, w2, [x0, #24]
	mov	x0, x1
	mov	x1, x8
	mov	x4, x6
	mov	x5, x7
	bl	_nsec3_hash_to_b32
	cbz	x0, LBB0_10
; %bb.1:
	mov	x2, x0
	ldr	x8, [x19, #16]
	add	x3, x8, #1
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x23
	bl	_neg_closest_data
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_4
; %bb.3:
	bl	_rbtree_last
	b	LBB0_5
LBB0_4:
	mov	x0, #0
	b	LBB0_10
LBB0_5:
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
LBB0_6:
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	x0, [x0, #8]
	b	LBB0_5
LBB0_8:
	ldp	w2, w1, [x0]
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_NSEC3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_NSEC3@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	ldr	w4, [x19]
	stp	wzr, w22, [sp]
	mov	x0, x21
	mov	w5, #0
	mov	x6, x20
	mov	w7, #0
	bl	_grab_nsec
	cbz	x0, LBB0_10
; %bb.9:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_neg_params_ok
	cmp	w0, #0
	csel	x0, xzr, x20, eq
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC3,4,2         ; @LDNS_RR_TYPE_NSEC3
	.no_dead_strip	_neg_nsec3_getnc
.subsections_via_symbols
