	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dname_label_count         ## -- Begin function ldns_dname_label_count
	.p2align	4, 0x90
_ldns_dname_label_count:                ## @ldns_dname_label_count
	.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
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	callq	_ldns_rdf_size
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_ldns_rdf_data
	cmpq	$1, %r14
	jne	LBB0_7
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rax), %r12
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_6
## %bb.8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_6
## %bb.9:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r12), %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rdf_data
	incq	%r13
	movq	8(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%r12, %rbx
	incq	%rbx
	movq	%rax, %r12
	cmpq	%r14, %rbx
	jb	LBB0_10
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ## @LDNS_RDF_TYPE_DNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dname_label_count         ; -- Begin function ldns_dname_label_count
	.p2align	2
_ldns_dname_label_count:                ; @ldns_dname_label_count
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_ldns_rdf_size
	mov	x20, x0
	mov	x0, x19
	bl	_ldns_rdf_get_type
Lloh0:
	adrp	x8, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ldns_rdf_data
	cmp	x20, #1
	b.ne	LBB0_5
LBB0_3:
	mov	x21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x21, #0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.6:
	cbz	x20, LBB0_4
; %bb.7:
	mov	x21, #0
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x22, x8
	add	x22, x8, #1
	mov	x0, x19
	bl	_ldns_rdf_data
	add	x21, x21, #1
	ldr	x8, [x0, x22, lsl #3]
	cmp	x8, #0
	ccmp	x22, x20, #2, ne
	b.lo	LBB0_8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
.subsections_via_symbols
