	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synth_cname_rrset
_synth_cname_rrset:                     ## @synth_cname_rrset
	.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	%r9, %r12
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, %rdi
	movl	$80, %esi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	%r13, %rdi
	movl	$80, %esi
	callq	_regional_alloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, 72(%rbx)
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_regional_alloc
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %rdi
	movq	16(%rbp), %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	%rax, %rsi
	callq	_dname_pkt_copy
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 52(%rbx)
	movl	68(%r12), %eax
	movl	%eax, 68(%rbx)
	movl	48(%r12), %ecx
	movl	%ecx, 48(%rbx)
	movl	$1, 8(%rbx)
	leal	4(%r14), %r12d
	movl	%r12d, 12(%rbx)
	movq	56(%rbx), %rsi
	movq	40(%rbp), %rdi
	xorl	%r8d, %r8d
	callq	_pkt_hash_rrset
	movl	%eax, 64(%rbx)
	movq	32(%rbx), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	32(%rbx), %rax
	movl	$1, 16(%rax)
	leal	8(%r14), %esi
	movq	%r13, %rdi
	callq	_regional_alloc
	movq	32(%rbx), %rcx
	movq	%rax, 24(%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	24(%rbp), %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_sldns_write_uint32
	movq	32(%rbx), %rax
	movq	24(%rax), %rdi
	addq	$16, %rdi
	movq	%r14, %rsi
	callq	_sldns_write_uint16
	movq	32(%rbx), %rax
	movq	24(%rax), %rdi
	addq	$24, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memmove
	movq	32(%rbx), %rax
	movl	%r12d, 12(%rax)
	movq	32(%rbp), %rdi
	movq	%rdi, 40(%rbx)
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	16(%rsi), %rcx
	leaq	40(%r13), %rdx
	testq	%r13, %r13
	cmoveq	%rcx, %rdx
	movq	%rbx, (%rdx)
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.5:
	movq	%rbx, 8(%rsi)
LBB0_6:
	incl	4(%rsi)
	incl	(%rsi)
	movq	24(%rax), %rax
	addq	$32, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r14, (%r15)
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ## @LDNS_RR_TYPE_CNAME
	.no_dead_strip	_synth_cname_rrset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synth_cname_rrset
_synth_cname_rrset:                     ; @synth_cname_rrset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x27, x6
	mov	x22, x5
	mov	x26, x4
	mov	x20, x3
	mov	x25, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x4
	mov	w1, #80
	bl	_regional_alloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	mov	x0, x26
	mov	w1, #80
	bl	_regional_alloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.2:
	str	x0, [x19, #72]
	ldr	w1, [x21]
	mov	x0, x26
	bl	_regional_alloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	x28, [x29, #24]
	ldr	x2, [x23]
	mov	x0, x28
	bl	_dname_pkt_copy
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
	str	x8, [x19]
Lloh2:
	ldr	w2, [x9]
	ldr	w8, [x27, #68]
	str	w8, [x19, #68]
	ldr	w3, [x27, #48]
	stp	w3, w2, [x19, #48]
	mov	w8, #1
	add	w27, w20, #4
	stp	w8, w27, [x19, #8]
	ldr	x1, [x19, #56]
	mov	x0, x28
	mov	w4, #0
	bl	_pkt_hash_rrset
	str	w0, [x19, #64]
	ldr	x0, [x19, #32]
	mov	w1, #0
	mov	w2, #80
	bl	_memset
	ldr	x8, [x19, #32]
	mov	w9, #1
	str	w9, [x8, #16]
	add	w1, w20, #8
	mov	x0, x26
	bl	_regional_alloc
	ldr	x8, [x19, #32]
	str	x0, [x8, #24]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x26, [x29, #16]
	mov	w1, #0
	bl	_sldns_write_uint32
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #24]
	add	x0, x8, #16
	mov	x1, x20
	bl	_sldns_write_uint16
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #24]
	add	x0, x8, #24
	mov	x1, x25
	mov	x2, x20
	bl	_memmove
	ldr	x8, [x19, #32]
	str	w27, [x8, #12]
	str	x26, [x19, #40]
	add	x9, x22, #16
	add	x10, x24, #40
	cmp	x24, #0
	csel	x9, x9, x10, eq
	str	x19, [x9]
	cbnz	x26, LBB0_6
; %bb.5:
	str	x19, [x22, #8]
LBB0_6:
	ldr	d0, [x22]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x22]
	ldr	x8, [x8, #24]
	add	x8, x8, #32
	str	x8, [x23]
	str	x20, [x21]
	b	LBB0_8
LBB0_7:
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ; @LDNS_RR_TYPE_CNAME
	.no_dead_strip	_synth_cname_rrset
.subsections_via_symbols
