	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dname_is_subdomain        ## -- Begin function ldns_dname_is_subdomain
	.p2align	4, 0x90
_ldns_dname_is_subdomain:               ## @ldns_dname_is_subdomain
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.1:
	movq	%r15, %rdi
	callq	_ldns_rdf_get_type
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ldns_rdf_compare
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ldns_dname_clone_from
	movq	%rax, %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ldns_dname_clone_from
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ldns_dname2canonical
	movq	%rbx, %rdi
	callq	_ldns_dname2canonical
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ldns_dname_label_count
	movq	%rax, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ldns_dname_label_count
	cmpq	%rax, %r13
	jge	LBB0_5
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_5:
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_11
## %bb.6:
	decq	%r13
	incq	%rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-2(%rbx), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ldns_dname_label
	movq	%rax, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ldns_dname_label
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ldns_rdf_compare
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_ldns_rdf_deep_free
	movq	%r14, %rdi
	callq	_ldns_rdf_deep_free
	testq	%r12, %r12
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	decq	%r13
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_7
LBB0_11:
	movl	$1, %r12d
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rdf_deep_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ldns_rdf_deep_free
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	callq	_ldns_rdf_deep_free
	movq	%r14, %rdi
	callq	_ldns_rdf_deep_free
	jmp	LBB0_13
	.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_is_subdomain        ; -- Begin function ldns_dname_is_subdomain
	.p2align	2
_ldns_dname_is_subdomain:               ; @ldns_dname_is_subdomain
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	bl	_ldns_rdf_get_type
Lloh0:
	adrp	x21, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_ldns_rdf_get_type
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_ldns_rdf_compare
	cbz	x0, LBB0_11
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_ldns_dname_clone_from
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	bl	_ldns_dname_clone_from
	mov	x20, x0
	mov	x0, x19
	bl	_ldns_dname2canonical
	mov	x0, x20
	bl	_ldns_dname2canonical
	mov	x0, x19
	bl	_ldns_dname_label_count
	mov	x22, x0
	mov	x0, x20
	bl	_ldns_dname_label_count
	mov	w21, #0
	cmp	x22, x0
	b.lt	LBB0_15
; %bb.4:
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.5:
	sub	x21, x22, #1
	add	x25, x0, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	x22, x25, #2
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_dname_label
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ldns_dname_label
	mov	x22, x0
	cbz	x23, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x22, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_ldns_rdf_compare
	mov	x24, x0
	mov	x0, x23
	bl	_ldns_rdf_deep_free
	mov	x0, x22
	bl	_ldns_rdf_deep_free
	cbnz	x24, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x21, x21, #1
	sub	x25, x25, #1
	cmp	x25, #1
	b.hi	LBB0_6
LBB0_10:
	mov	w21, #1
	b	LBB0_15
LBB0_11:
	mov	w21, #0
LBB0_12:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x23
	bl	_ldns_rdf_deep_free
	mov	x0, x22
	bl	_ldns_rdf_deep_free
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x19
	bl	_ldns_rdf_deep_free
	mov	x0, x20
	bl	_ldns_rdf_deep_free
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
.subsections_via_symbols
