	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dname_cat_clone           ## -- Begin function ldns_dname_cat_clone
	.p2align	4, 0x90
_ldns_dname_cat_clone:                  ## @ldns_dname_cat_clone
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_ldns_rdf_get_type
	movq	%r13, %rcx
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_ldns_rdf_size
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ldns_dname_last_label_is_root_label
	cmpq	$1, %rax
	adcl	$-1, %r15d
	movq	%r14, %rdi
	callq	_ldns_rdf_size
	movl	%eax, %r12d
	addl	%r15d, %r12d
	movq	_uint8_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_LDNS_XMALLOC
	movl	%eax, %r13d
	movq	_buf@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_ldns_rdf_data
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%rbx, %r13
	addl	(%rbx), %r15d
	movq	%r14, %rdi
	callq	_ldns_rdf_data
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ldns_rdf_size
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_memcpy
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %edx
	movl	%r12d, %esi
	callq	_ldns_rdf_new_frm_data
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_LDNS_FREE
	movq	%rbx, %rax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uint8_t,4,2                    ## @uint8_t
	.comm	_buf,4,2                        ## @buf
	.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_cat_clone           ; -- Begin function ldns_dname_cat_clone
	.p2align	2
_ldns_dname_cat_clone:                  ; @ldns_dname_cat_clone
	.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	x19, x1
	mov	x20, x0
	bl	_ldns_rdf_get_type
Lloh0:
	adrp	x24, _LDNS_RDF_TYPE_DNAME@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LDNS_RDF_TYPE_DNAME@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_ldns_rdf_get_type
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_ldns_rdf_size
	mov	x21, x0
	mov	x0, x20
	bl	_ldns_dname_last_label_is_root_label
	cmp	x0, #0
	cset	w8, ne
	sub	w22, w21, w8
	mov	x0, x19
	bl	_ldns_rdf_size
	add	w21, w22, w0
Lloh2:
	adrp	x8, _uint8_t@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uint8_t@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_LDNS_XMALLOC
Lloh5:
	adrp	x25, _buf@GOTPAGE
Lloh6:
	ldr	x25, [x25, _buf@GOTPAGEOFF]
	str	w0, [x25]
	cbz	w0, LBB0_4
; %bb.3:
	mov	x23, x0
	mov	x0, x20
	bl	_ldns_rdf_data
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x25]
	add	w20, w8, w22
	mov	x0, x19
	bl	_ldns_rdf_data
	mov	x22, x0
	mov	x0, x19
	bl	_ldns_rdf_size
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_memcpy
	ldr	x0, [x24]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_ldns_rdf_new_frm_data
	mov	x19, x0
	ldr	w0, [x25]
	bl	_LDNS_FREE
	mov	x0, x19
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_uint8_t,4,2                    ; @uint8_t
	.comm	_buf,4,2                        ; @buf
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
.subsections_via_symbols
