	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_cname_target               ## -- Begin function get_cname_target
	.p2align	4, 0x90
_get_cname_target:                      ## @get_cname_target
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_ntohs
	movq	_LDNS_RR_TYPE_DNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_2:
	movq	(%rbx), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_7
## %bb.3:
	movq	8(%rbx), %rax
	cmpl	$3, (%rax)
	jl	LBB0_7
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	callq	_sldns_read_uint16
	movq	%rax, %r12
	movq	8(%rbx), %rax
	movslq	(%rax), %rax
	addq	$-4, %rax
	cmpq	%rax, %r12
	jne	LBB0_7
## %bb.5:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	addq	$16, %rdi
	movq	%r12, %rsi
	callq	_dname_valid
	cmpq	%r12, %rax
	jne	LBB0_7
## %bb.6:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	addq	$16, %rax
	movq	%rax, (%r15)
	movq	%r12, (%r14)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ## @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ## @LDNS_RR_TYPE_DNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_cname_target               ; -- Begin function get_cname_target
	.p2align	2
_get_cname_target:                      ; @get_cname_target
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_ntohs
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_ntohs
Lloh3:
	adrp	x8, _LDNS_RR_TYPE_DNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_RR_TYPE_DNAME@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_2:
	ldr	x22, [x21]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x22, #16]
	ldr	x0, [x8]
	bl	_sldns_read_uint16
	ldr	x8, [x22, #8]
	ldrsw	x8, [x8]
	sub	x8, x8, #4
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	mov	x21, x0
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	add	x0, x8, #16
	mov	x1, x21
	bl	_dname_valid
	cmp	x0, x21
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	add	x8, x8, #16
	str	x8, [x20]
	str	x21, [x19]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_CNAME,8,3         ; @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_RR_TYPE_DNAME,8,3         ; @LDNS_RR_TYPE_DNAME
.subsections_via_symbols
