	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_synth_cname
_create_synth_cname:                    ## @create_synth_cname
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.1:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rcx
	movl	(%rcx), %r12d
	cmpl	$3, %r12d
	jl	LBB0_11
## %bb.2:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	(%rax), %r14
	addl	$-2, %r12d
	movq	%r14, %rdi
	callq	_sldns_read_uint16
	cmpq	%r12, %rax
	jne	LBB0_11
## %bb.3:
	addq	$8, %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dname_valid
	cmpq	%r12, %rax
	jne	LBB0_11
## %bb.4:
	movl	(%r15), %edx
	shll	$2, %r13d
	subq	$8, %rsp
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%r13
	callq	_synth_cname_buf
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_regional_alloc
	movq	16(%rbp), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	%rax, 16(%rax)
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	(%r13), %rcx
	movq	%rax, 56(%rcx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_htons
	movq	(%r13), %rcx
	movq	%rax, 48(%rcx)
	movq	(%r13), %rax
	movq	$0, 40(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_regional_alloc_init
	movq	(%r13), %rdi
	movl	%eax, 32(%rdi)
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	%r15, 24(%rdi)
	addq	$24, %rdi
	callq	_rrset_key_hash
	movq	(%r13), %rcx
	movl	%eax, 8(%rcx)
	leal	80(%r12), %esi
	movq	%r14, %rdi
	callq	_regional_alloc_zero
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	%r14, (%rax)
	movq	$0, 24(%r14)
	movl	$1, (%r14)
	movq	$0, 48(%r14)
	movq	_rrset_trust_ans_noAA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	%r14, %rax
	addq	$224, %rax
	movq	%rax, 8(%r14)
	movq	%r12, %rax
	addq	$4, %rax
	movq	%rax, 224(%r14)
	movq	%r14, %rdi
	callq	_packed_rrset_ptr_fixup
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_sldns_write_uint16
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memmove
	jmp	LBB0_10
LBB0_5:
	movq	16(%rbp), %rax
	movq	$0, (%rax)
LBB0_10:
	movl	$1, %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ## @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ## @LDNS_RR_TYPE_CNAME
	.comm	_rrset_trust_ans_noAA,4,2       ## @rrset_trust_ans_noAA
	.no_dead_strip	_create_synth_cname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_synth_cname
_create_synth_cname:                    ; @create_synth_cname
	.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
	sub	sp, sp, #16
	mov	x20, x6
	mov	x25, x5
	mov	x23, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
	lsl	x8, x28, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	x8, [x4]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	cmp	w9, #3
	b.lt	LBB0_9
; %bb.2:
	ldr	x8, [x8, #16]
	ldr	x27, [x8]
	sub	w26, w9, #2
	mov	x0, x27
	bl	_sldns_read_uint16
	cmp	x0, x26
	b.ne	LBB0_9
; %bb.3:
	add	x27, x27, #8
	mov	x0, x27
	mov	x1, x26
	bl	_dname_valid
	cmp	x0, x26
	b.ne	LBB0_9
; %bb.4:
	ldr	w2, [x23]
	lsl	w6, w28, #2
	mov	x0, x24
	mov	x1, x22
	mov	x3, x27
	mov	x4, x26
	mov	x5, x19
	bl	_synth_cname_buf
	cbz	x0, LBB0_12
; %bb.5:
	mov	x23, x0
	mov	x0, x21
	mov	w1, #64
	bl	_regional_alloc
	str	x0, [x20]
	cbz	x0, LBB0_9
; %bb.6:
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x20]
	str	x8, [x8, #16]
Lloh8:
	adrp	x8, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	ldr	x8, [x20]
	str	x0, [x8, #56]
	mov	x0, x25
	bl	_htons
	ldr	x8, [x20]
	str	x0, [x8, #48]
	ldr	x8, [x20]
	str	xzr, [x8, #40]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_regional_alloc_init
	mov	x8, x0
	ldr	x0, [x20]
	str	w8, [x0, #32]
	cbz	w8, LBB0_9
; %bb.7:
	str	x22, [x0, #24]!
	bl	_rrset_key_hash
	ldr	x8, [x20]
	str	w0, [x8, #8]
	add	w1, w23, #80
	mov	x0, x21
	bl	_regional_alloc_zero
	cbz	x0, LBB0_9
; %bb.8:
	mov	x21, x0
	ldr	x8, [x20]
	str	x0, [x8]
	str	xzr, [x0, #24]
	mov	w20, #1
	str	w20, [x0]
	str	xzr, [x0, #48]
Lloh11:
	adrp	x8, _rrset_trust_ans_noAA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rrset_trust_ans_noAA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	add	x8, x23, #4
	mov	x9, x0
	str	x8, [x9, #224]!
	str	x9, [x0, #8]
	bl	_packed_rrset_ptr_fixup
	ldp	x9, x8, [x21, #24]
	ldr	x10, [x21, #16]
	str	x9, [x8]
	ldr	x0, [x10]
	mov	x1, x23
	bl	_sldns_write_uint16
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	add	x0, x8, #4
	mov	x1, x19
	mov	x2, x23
	bl	_memmove
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x20
	sub	sp, x29, #80
	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
LBB0_12:
	str	xzr, [x20]
	mov	w20, #1
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_MAX_DOMAINLEN,4,2         ; @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ; @LDNS_RR_TYPE_CNAME
	.comm	_rrset_trust_ans_noAA,4,2       ; @rrset_trust_ans_noAA
	.no_dead_strip	_create_synth_cname
.subsections_via_symbols
