	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writecache_suspend
_writecache_suspend:                    ## @writecache_suspend
	.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	(%rdi), %rbx
	leaq	24(%rbx), %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	callq	_wc_lock
	movq	%rbx, %rdi
	callq	_writecache_flush
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
	incl	12(%rbx)
	movl	16(%rbx), %edi
	leaq	20(%rbx), %rsi
	callq	_queue_work
	movq	%rbx, %rdi
	callq	_wc_unlock
	movl	16(%rbx), %edi
	callq	_flush_workqueue
	movq	%rbx, %rdi
	callq	_wc_lock
	decl	12(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_wc_unlock
	movl	16(%rbx), %edi
	callq	_flush_workqueue
	movq	%rbx, %rdi
	callq	_wc_lock
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_writecache_wait_for_writeback
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_WC_MODE_PMEM
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	callq	_persistent_memory_flush_cache
LBB0_6:
	movq	%rbx, %rdi
	callq	_writecache_poison_lists
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wc_unlock                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_writecache_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writecache_suspend
_writecache_suspend:                    ; @writecache_suspend
	.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	x19, [x0]
	add	x0, x19, #24
	bl	_del_timer_sync
	mov	x0, x19
	bl	_wc_lock
	mov	x0, x19
	bl	_writecache_flush
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x19]
	ldp	w8, w0, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	add	x1, x19, #20
	bl	_queue_work
	mov	x0, x19
	bl	_wc_unlock
	ldr	w0, [x19, #16]
	bl	_flush_workqueue
	mov	x0, x19
	bl	_wc_lock
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_wc_unlock
	ldr	w0, [x19, #16]
	bl	_flush_workqueue
	mov	x0, x19
	bl	_wc_lock
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_writecache_wait_for_writeback
	cbnz	x0, LBB0_3
; %bb.4:
	mov	x0, x19
	bl	_WC_MODE_PMEM
	cbz	x0, LBB0_6
; %bb.5:
	ldp	w1, w0, [x19, #4]
	bl	_persistent_memory_flush_cache
LBB0_6:
	mov	x0, x19
	bl	_writecache_poison_lists
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wc_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_writecache_suspend
.subsections_via_symbols
