	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_state_add_reply           ## -- Begin function mesh_state_add_reply
	.p2align	4, 0x90
_mesh_state_add_reply:                  ## @mesh_state_add_reply
	.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, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	movl	$64, %esi
	callq	_regional_alloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	%rax, 56(%rbx)
	movq	(%r13), %rax
	movq	%rax, 48(%rbx)
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	movq	%r14, %r15
	je	LBB0_3
## %bb.2:
	movl	8(%r15), %esi
	callq	_edns_opt_copy_region
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_17
LBB0_3:
	movq	%r12, 40(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rsi
	movl	8(%r15), %edi
	movl	12(%r15), %edx
	callq	_regional_alloc_init
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.5:
	movl	8(%r15), %edi
	movl	$16, %esi
	callq	_regional_alloc_zero
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movl	8(%r15), %edi
	movq	(%r13), %rax
	movq	(%rax), %rsi
	movl	$24, %edx
	callq	_regional_alloc_init
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_18
## %bb.7:
	movq	(%r13), %rcx
	movq	(%rcx), %rax
	movq	16(%rax), %r14
	cmpl	$0, 8(%rcx)
	movl	$0, %edi
	jne	LBB0_10
## %bb.8:
	cmpl	$1, (%r14)
	movl	$0, %edi
	jne	LBB0_10
## %bb.9:
	movq	(%rax), %r12
	movq	_LDNS_RR_TYPE_CNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
LBB0_10:
	callq	_log_assert
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_LDNS_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sldns_buffer_at
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	callq	_log_assert
	movl	8(%r15), %edi
	movl	$32, %esi
	callq	_regional_alloc_zero
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movl	8(%r15), %edi
	movq	24(%r14), %rcx
	movl	(%rcx), %edx
	movq	8(%r14), %rsi
	movq	16(%r14), %rcx
	movl	(%rcx), %ecx
	movl	(%rsi), %r8d
	leaq	L_.str(%rip), %r9
	movq	%rax, %rsi
	callq	_rrset_insert_rr
	testl	%eax, %eax
	movl	$0, %eax
	jne	LBB0_15
	jmp	LBB0_18
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_14:
	movq	$0, (%rbx)
LBB0_15:
	movq	%rbx, (%r15)
	movl	$1, %eax
LBB0_18:
	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
	.comm	_LDNS_HEADER_SIZE,4,2           ## @LDNS_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CNAME local alias"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_state_add_reply           ; -- Begin function mesh_state_add_reply
	.p2align	2
_mesh_state_add_reply:                  ; @mesh_state_add_reply
	.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	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	w1, #64
	bl	_regional_alloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x9, [x25]
	stp	x9, x8, [x0, #48]
	ldr	x0, [x25]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x19, #8]
	bl	_edns_opt_copy_region
	str	x0, [x20, #48]
	cbz	x0, LBB0_12
LBB0_3:
	stp	x23, x24, [x20, #32]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x8, [x19]
	str	x8, [x20, #16]
	ldr	x1, [x22, #8]
	ldp	w0, w2, [x19, #8]
	bl	_regional_alloc_init
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w0, [x19, #8]
	mov	w1, #16
	bl	_regional_alloc_zero
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w0, [x19, #8]
	ldr	x8, [x22]
	ldr	x1, [x8]
	mov	w2, #24
	bl	_regional_alloc_init
	ldr	x8, [x20]
	str	x0, [x8]
	cbz	x0, LBB0_12
; %bb.7:
	ldr	x9, [x22]
	ldr	x8, [x9]
	ldr	x23, [x8, #16]
	ldr	w9, [x9, #8]
	cbnz	w9, LBB0_13
; %bb.8:
	ldr	w9, [x23]
	cmp	w9, #1
	b.ne	LBB0_13
; %bb.9:
	ldr	x24, [x8]
Lloh0:
	adrp	x8, _LDNS_RR_TYPE_CNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_RR_TYPE_CNAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htons
	cmp	x24, x0
	cset	w0, eq
	b	LBB0_14
LBB0_10:
	str	xzr, [x20]
LBB0_11:
	str	x20, [x19]
	mov	w0, #1
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
LBB0_14:
	bl	_log_assert
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x22, [x8, #8]
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LDNS_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDNS_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_sldns_buffer_at
	cmp	x22, x0
	cset	w0, eq
	bl	_log_assert
	ldr	w0, [x19, #8]
	mov	w1, #32
	bl	_regional_alloc_zero
	cbz	x0, LBB0_12
; %bb.15:
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x0, [x8]
	ldr	w0, [x19, #8]
	ldr	x8, [x23, #24]
	ldr	w2, [x8]
	ldp	x9, x8, [x23, #8]
	ldr	w3, [x8]
	ldr	w4, [x9]
Lloh6:
	adrp	x5, l_.str@PAGE
Lloh7:
	add	x5, x5, l_.str@PAGEOFF
	bl	_rrset_insert_rr
	cbnz	w0, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_CNAME,4,2         ; @LDNS_RR_TYPE_CNAME
	.comm	_LDNS_HEADER_SIZE,4,2           ; @LDNS_HEADER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CNAME local alias"

.subsections_via_symbols
