	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_state_remove_reply        ## -- Begin function mesh_state_remove_reply
	.p2align	4, 0x90
_mesh_state_remove_reply:               ## @mesh_state_remove_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rsi), %r8
	testq	%r8, %r8
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	xorl	%ecx, %ecx
	movq	%r8, %rax
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, %rdi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, (%rcx)
	movq	(%rdi), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	decl	12(%rbx)
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rax
	cmpq	%rdx, 8(%rdi)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, 8(%rsi)
	movq	%rax, %r8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rcx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_9:
	testq	%r8, %r8
	jne	LBB0_14
## %bb.10:
	cmpl	$0, (%rsi)
	jne	LBB0_14
## %bb.11:
	cmpq	$0, 16(%rsi)
	jne	LBB0_13
## %bb.12:
	incl	8(%rbx)
LBB0_13:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	callq	_log_assert
	decq	(%rbx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_state_remove_reply        ; -- Begin function mesh_state_remove_reply
	.p2align	2
_mesh_state_remove_reply:               ; @mesh_state_remove_reply
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	mov	x9, #0
	mov	x10, x8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x11, x10
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	str	x10, [x9]
	ldr	x10, [x11]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w11, [x19, #12]
	sub	w11, w11, #1
	str	w11, [x19, #12]
	mov	x11, x10
	cbz	x10, LBB0_9
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x10, x12, [x11]
	cmp	x12, x2
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cbnz	x9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	str	x10, [x1, #8]
	mov	x8, x10
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, x11
	cbnz	x10, LBB0_2
LBB0_9:
	cbnz	x8, LBB0_14
; %bb.10:
	ldr	w8, [x1]
	cbnz	w8, LBB0_14
; %bb.11:
	ldr	x8, [x1, #16]
	cbnz	x8, LBB0_13
; %bb.12:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_13:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	bl	_log_assert
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
