	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dname_cat                 ## -- Begin function ldns_dname_cat
	.p2align	4, 0x90
_ldns_dname_cat:                        ## @ldns_dname_cat
	.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, %r13
	callq	_ldns_rdf_get_type
	movq	_LDNS_RDF_TYPE_DNAME@GOTPCREL(%rip), %r15
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rbx
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_ldns_rdf_get_type
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	callq	_ldns_rdf_size
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_ldns_dname_last_label_is_root_label
	cmpq	$1, %rax
	adcq	$-1, %r15
	movq	%r14, %rdi
	callq	_ldns_rdf_size
	movq	%rax, %r12
	addq	%r15, %r12
	movq	%r13, %rdi
	callq	_ldns_rdf_data
	movq	_uint8_t@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_LDNS_XREALLOC
	movq	_newd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ldns_rdf_set_data
	movq	%r13, %rdi
	callq	_ldns_rdf_data
	addq	%rax, %r15
	movq	%r14, %rdi
	callq	_ldns_rdf_data
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ldns_rdf_size
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ldns_rdf_set_size
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_LDNS_STATUS_MEM_ERR@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %eax
	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	_newd,4,2                       ## @newd
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ## @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_STATUS_ERR,4,2            ## @LDNS_STATUS_ERR
	.comm	_LDNS_STATUS_MEM_ERR,4,2        ## @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_dname_cat                 ; -- Begin function ldns_dname_cat
	.p2align	2
_ldns_dname_cat:                        ; @ldns_dname_cat
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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_4
; %bb.1:
	mov	x0, x20
	bl	_ldns_rdf_get_type
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_ldns_rdf_size
	mov	x21, x0
	mov	x0, x19
	bl	_ldns_dname_last_label_is_root_label
	cmp	x0, #0
	cset	w8, ne
	sub	x22, x21, x8
	mov	x0, x20
	bl	_ldns_rdf_size
	add	x21, x22, x0
	mov	x0, x19
	bl	_ldns_rdf_data
Lloh2:
	adrp	x8, _uint8_t@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uint8_t@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_LDNS_XREALLOC
Lloh5:
	adrp	x8, _newd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _newd@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	cbz	w0, LBB0_6
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_ldns_rdf_set_data
	mov	x0, x19
	bl	_ldns_rdf_data
	add	x22, x0, x22
	mov	x0, x20
	bl	_ldns_rdf_data
	mov	x23, x0
	mov	x0, x20
	bl	_ldns_rdf_size
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	bl	_ldns_rdf_set_size
Lloh8:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x8, _LDNS_STATUS_MEM_ERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LDNS_STATUS_MEM_ERR@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_uint8_t,4,2                    ; @uint8_t
	.comm	_newd,4,2                       ; @newd
	.comm	_LDNS_RDF_TYPE_DNAME,8,3        ; @LDNS_RDF_TYPE_DNAME
	.comm	_LDNS_STATUS_ERR,4,2            ; @LDNS_STATUS_ERR
	.comm	_LDNS_STATUS_MEM_ERR,4,2        ; @LDNS_STATUS_MEM_ERR
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
.subsections_via_symbols
