	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_data_need
_calc_data_need:                        ## @calc_data_need
	.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	(%rdi), %r13
	movq	8(%rdi), %rax
	addq	%r13, %rax
	cmpq	%rax, %r13
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r15
	leaq	-48(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	8(%r14), %rax
	addq	(%r14), %rax
	cmpq	%rax, %r13
	jae	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rax
	movl	16(%rax), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_NSEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r13,8), %rcx
	movq	8(%rcx), %rdi
	movq	%rdi, -56(%rbp)
	movq	(%rax,%r13,8), %rax
	movq	(%rax), %rbx
	movq	%rbx, -48(%rbp)
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_dname_is_root
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%edi, %edi
	cmpq	$2, -48(%rbp)
	setae	%dil
	callq	_log_assert
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dname_remove_label
	movq	-48(%rbp), %rax
	addq	%rax, %rbx
	addq	$4, %rbx
	movq	-56(%rbp), %rdi
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ## @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_calc_data_need
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_data_need
_calc_data_need:                        ; @calc_data_need
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldp	x21, x8, [x0]
	add	x8, x8, x21
	cmp	x21, x8
	b.hs	LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x22, _LDNS_RR_TYPE_NSEC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_RR_TYPE_NSEC@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldp	x8, x9, [x19]
	add	x8, x9, x8
	cmp	x21, x8
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w0, [x8, #16]
	bl	_ntohs
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	lsl	x9, x21, #3
	ldr	x10, [x8, x9]
	ldr	x0, [x10, #8]
	str	x0, [sp, #8]
	ldr	x8, [x8, x9]
	ldr	x8, [x8]
	str	x8, [sp]
	add	x20, x8, #4
	bl	_dname_is_root
	cbnz	w0, LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp]
	cmp	x8, #1
	cset	w0, hi
	bl	_log_assert
	add	x0, sp, #8
	mov	x1, sp
	bl	_dname_remove_label
	ldp	x8, x0, [sp]
	add	x8, x20, x8
	add	x20, x8, #4
	bl	_dname_is_root
	cbz	w0, LBB0_5
	b	LBB0_2
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_NSEC,8,3          ; @LDNS_RR_TYPE_NSEC
	.no_dead_strip	_calc_data_need
.subsections_via_symbols
