	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function synth_dname_msg
_synth_dname_msg:                       ## @synth_dname_msg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	$0, -56(%rbp)
	cmpq	%rdx, (%r15)
	jl	LBB0_18
## %bb.2:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	8(%r15), %eax
	movl	%eax, (%r8)
	movq	%rsi, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rsi
	movl	$2, %edx
	callq	_gen_dns_msg
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %r13
	movq	_BIT_QR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	movl	%eax, 48(%rcx)
	movq	$0, 80(%rcx)
	movl	$1, (%rcx)
	movq	(%r15), %rdi
	subq	%rbx, %rdi
	movq	%rdi, 8(%rcx)
	callq	_PREFETCH_TTL_CALC
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx)
	movq	_SERVE_EXPIRED_TTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	8(%rcx), %rax
	movq	%rax, 24(%rcx)
	movq	_sec_status_unchecked@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rcx)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rcx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_packed_rrset_copy_region
	movq	(%r13), %rcx
	movq	40(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r13), %rax
	movq	40(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.4:
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_get_cname_target
	cmpq	$0, -56(%rbp)
	je	LBB0_18
## %bb.5:
	movq	-64(%rbp), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rbx
	subq	24(%r12), %rbx
	movq	_LDNS_MAX_DOMAINLEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jbe	LBB0_10
## %bb.6:
	movq	_LDNS_RCODE_YXDOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	orl	%eax, 48(%rcx)
	jmp	LBB0_19
LBB0_10:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	subq	24(%r12), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	callq	_memcpy
	movq	(%r15), %rax
	subq	24(%r12), %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,4), %rdi
	movq	-56(%rbp), %rsi
	movq	-64(%rbp), %rdx
	callq	_memmove
	movq	%r14, %rdi
	movl	$56, %esi
	callq	_regional_alloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	40(%rax), %rax
	movq	%rbx, 8(%rax)
	movq	%rbx, 16(%rbx)
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 52(%rbx)
	movl	48(%r12), %eax
	movl	%eax, 48(%rbx)
	movq	$0, 40(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_regional_alloc_init
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movq	%rbx, %rcx
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	(%r15), %rax
	movq	%rax, 24(%rcx)
	callq	_rrset_key_hash
	movl	%eax, 8(%rbx)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	leal	84(%r15), %esi
	movq	%r14, %rdi
	callq	_regional_alloc_zero
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %r14
	movq	%rax, (%rbx)
	movq	$0, (%rax)
	movl	$1, 12(%rax)
	movq	$0, 48(%rax)
	movq	_rrset_trust_ans_noAA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	%r14, %rax
	addq	$224, %rax
	movq	%rax, 16(%r14)
	leaq	4(%r15), %rax
	movq	%rax, 224(%r14)
	movq	%r14, %rdi
	callq	_packed_rrset_ptr_fixup
	movq	(%r14), %rax
	movq	24(%r14), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rdi
	movq	(%r13), %rax
	movq	%rdi, 8(%rax)
	callq	_PREFETCH_TTL_CALC
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx)
	movq	_SERVE_EXPIRED_TTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r14), %rax
	movq	%rax, 24(%rcx)
	movq	32(%r14), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_sldns_write_uint16
	movq	32(%r14), %rax
	movq	(%rax), %rdi
	addq	$16, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memmove
	movq	(%r13), %rax
	incl	16(%rax)
	incl	20(%rax)
	jmp	LBB0_19
LBB0_18:
	xorl	%r13d, %r13d
LBB0_19:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT_QR,4,2                     ## @BIT_QR
	.comm	_SERVE_EXPIRED_TTL,8,3          ## @SERVE_EXPIRED_TTL
	.comm	_sec_status_unchecked,4,2       ## @sec_status_unchecked
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ## @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_RCODE_YXDOMAIN,4,2        ## @LDNS_RCODE_YXDOMAIN
	.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	_synth_dname_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function synth_dname_msg
_synth_dname_msg:                       ; @synth_dname_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, #0
	ldr	x24, [x0]
	str	xzr, [sp, #8]
	ldr	x8, [x24]
	cmp	x8, x2
	b.lt	LBB0_12
; %bb.1:
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w8, [x24, #8]
	str	w8, [x4]
	mov	x0, x1
	mov	x1, x3
	mov	w2, #2
	bl	_gen_dns_msg
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.2:
Lloh0:
	adrp	x8, _BIT_QR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT_QR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #48]
	str	xzr, [x9, #80]
	mov	w8, #1
	str	w8, [x9]
	ldr	x8, [x24]
	sub	x0, x8, x23
	str	x0, [x9, #8]
	bl	_PREFETCH_TTL_CALC
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x26, _SERVE_EXPIRED_TTL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SERVE_EXPIRED_TTL@GOTPAGEOFF]
	ldr	x10, [x26]
	add	x9, x10, x9
	stp	x9, x0, [x8, #24]
Lloh5:
	adrp	x9, _sec_status_unchecked@GOTPAGE
Lloh6:
	ldr	x9, [x9, _sec_status_unchecked@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #72]
	stp	xzr, xzr, [x8, #56]
	movi.2s	v0, #1
	str	d0, [x8, #16]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_packed_rrset_copy_region
	ldr	x8, [x19]
	ldr	x8, [x8, #40]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.3:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x22
	bl	_get_cname_target
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.4:
	ldr	x8, [x21]
	ldr	x9, [sp]
	ldr	x10, [x22, #24]
	add	x8, x9, x8
	sub	x23, x8, x10
Lloh8:
	adrp	x8, _LDNS_MAX_DOMAINLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDNS_MAX_DOMAINLEN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ls	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _LDNS_RCODE_YXDOMAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LDNS_RCODE_YXDOMAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #48]
	orr	w8, w10, w8
	str	w8, [x9, #48]
	b	LBB0_12
LBB0_6:
	mov	x0, x20
	mov	x1, x23
	bl	_regional_alloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x24, x0
	ldr	w1, [x21, #8]
	ldr	x8, [x21]
	ldr	x9, [x22, #24]
	sub	x2, x8, x9
	bl	_memcpy
	ldr	x8, [x21]
	ldr	x9, [x22, #24]
	sub	x8, x8, x9
	add	x0, x24, x8, lsl #2
	ldp	x2, x1, [sp]
	bl	_memmove
	mov	x0, x20
	mov	w1, #56
	bl	_regional_alloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x25, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19]
	ldr	x8, [x8, #40]
	str	x25, [x8, #8]
	str	x25, [x25, #16]
Lloh14:
	adrp	x8, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x25, #52]
	ldr	w8, [x22, #48]
	str	w8, [x25, #48]
	str	xzr, [x25, #40]
	ldr	w1, [x21, #8]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_regional_alloc_init
	str	w0, [x25, #32]
	cbz	w0, LBB0_11
; %bb.9:
	ldr	x8, [x21]
	mov	x21, x25
	str	x8, [x21, #24]!
	mov	x0, x21
	bl	_rrset_key_hash
	stur	w0, [x21, #-16]
	add	w1, w23, #84
	mov	x0, x20
	bl	_regional_alloc_zero
	cbz	x0, LBB0_11
; %bb.10:
	mov	x20, x0
	str	x0, [x25]
	str	xzr, [x0]
	mov	w8, #1
	str	w8, [x0, #12]
	str	xzr, [x0, #48]
Lloh17:
	adrp	x8, _rrset_trust_ans_noAA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rrset_trust_ans_noAA@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	add	x8, x23, #4
	mov	x9, x0
	str	x8, [x9, #224]!
	str	x9, [x0, #16]
	bl	_packed_rrset_ptr_fixup
	ldr	x8, [x20]
	ldr	x9, [x20, #24]
	str	x8, [x9]
	ldr	x0, [x20]
	ldr	x8, [x19]
	str	x0, [x8, #8]
	bl	_PREFETCH_TTL_CALC
	ldr	x8, [x19]
	str	x0, [x8, #32]
	ldr	x9, [x20]
	ldr	x10, [x26]
	add	x9, x10, x9
	str	x9, [x8, #24]
	ldr	x8, [x20, #32]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_sldns_write_uint16
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	add	x0, x8, #16
	mov	x1, x24
	mov	x2, x23
	bl	_memmove
	ldr	x8, [x19]
	ldr	d0, [x8, #16]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x8, #16]
	b	LBB0_12
LBB0_11:
	mov	x19, #0
LBB0_12:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT_QR,4,2                     ; @BIT_QR
	.comm	_SERVE_EXPIRED_TTL,8,3          ; @SERVE_EXPIRED_TTL
	.comm	_sec_status_unchecked,4,2       ; @sec_status_unchecked
	.comm	_LDNS_MAX_DOMAINLEN,8,3         ; @LDNS_MAX_DOMAINLEN
	.comm	_LDNS_RCODE_YXDOMAIN,4,2        ; @LDNS_RCODE_YXDOMAIN
	.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	_synth_dname_msg
.subsections_via_symbols
