	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_state_cleanup             ## -- Begin function mesh_state_cleanup
	.p2align	4, 0x90
_mesh_state_cleanup:                    ## @mesh_state_cleanup
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	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	%rdi, %r14
	movq	8(%rdi), %rax
	movq	8(%rax), %r15
	cmpl	$0, 48(%rdi)
	jne	LBB0_7
## %bb.2:
	movq	40(%r14), %rbx
	movq	$0, 40(%r14)
	testq	%rbx, %rbx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_comm_point_drop_reply
	decl	16(%r15)
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_4:
	movq	32(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movq	_LDNS_RCODE_SERVFAIL@GOTPCREL(%rip), %r12
	movq	_sec_status_unchecked@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	%rax, 32(%r14)
	movq	8(%rbx), %rdi
	callq	_fptr_whitelist_mesh_cb
	movl	%eax, %edi
	callq	_fptr_ok
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	(%r13), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*8(%rbx)
	decl	16(%r15)
	movq	32(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_7:
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	movq	_module_finished@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rdi
	callq	_fptr_whitelist_mod_clear
	movl	%eax, %edi
	callq	_fptr_ok
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
	movq	24(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r12), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alloc_reg_release              ## TAILCALL
LBB0_11:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ## @LDNS_RCODE_SERVFAIL
	.comm	_sec_status_unchecked,4,2       ## @sec_status_unchecked
	.comm	_module_finished,4,2            ## @module_finished
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_state_cleanup             ; -- Begin function mesh_state_cleanup
	.p2align	2
_mesh_state_cleanup:                    ; @mesh_state_cleanup
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_11
; %bb.1:
	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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
	ldr	w8, [x0, #48]
	cbnz	w8, LBB0_7
; %bb.2:
	ldr	x20, [x19, #40]
	str	xzr, [x19, #40]
	cbz	x20, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_comm_point_drop_reply
	ldr	w8, [x21, #16]
	sub	w8, w8, #1
	str	w8, [x21, #16]
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_3
LBB0_4:
	ldr	x23, [x19, #32]
	cbz	x23, LBB0_7
; %bb.5:
Lloh0:
	adrp	x20, _LDNS_RCODE_SERVFAIL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LDNS_RCODE_SERVFAIL@GOTPAGEOFF]
Lloh2:
	adrp	x22, _sec_status_unchecked@GOTPAGE
Lloh3:
	ldr	x22, [x22, _sec_status_unchecked@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x8, [x23, #8]
	str	x8, [x19, #32]
	bl	_fptr_whitelist_mesh_cb
	bl	_fptr_ok
	ldr	x8, [x23, #8]
	ldr	w0, [x23]
	ldr	w1, [x20]
	ldr	w3, [x22]
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	blr	x8
	ldr	w8, [x21, #16]
	sub	w8, w8, #1
	str	w8, [x21, #16]
	ldr	x23, [x19, #32]
	cbnz	x23, LBB0_6
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
Lloh4:
	adrp	x22, _module_finished@GOTPAGE
Lloh5:
	ldr	x22, [x22, _module_finished@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x23, x20, #3
	ldr	x8, [x8, x23]
	ldr	x0, [x8]
	bl	_fptr_whitelist_mod_clear
	bl	_fptr_ok
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x23]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x8, [x19, #24]
	str	xzr, [x8, x23]
	ldr	w8, [x22]
	ldr	x9, [x19, #16]
	str	w8, [x9, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_9
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x19]
	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
	b	_alloc_reg_release
LBB0_11:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RCODE_SERVFAIL,4,2        ; @LDNS_RCODE_SERVFAIL
	.comm	_sec_status_unchecked,4,2       ; @sec_status_unchecked
	.comm	_module_finished,4,2            ; @module_finished
.subsections_via_symbols
