	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_pending_writes
_flush_pending_writes:                  ## @flush_pending_writes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irq
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_bio_list_get
	movq	%rax, %r14
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_blk_start_plug
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_flush_bio_list
	movq	%r15, %rdi
	callq	_blk_finish_plug
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_flush_pending_writes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_pending_writes
_flush_pending_writes:                  ; @flush_pending_writes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_spin_lock_irq
	mov	x0, x19
	ldr	x8, [x0, #16]!
	cbz	x8, LBB0_2
; %bb.1:
	bl	_bio_list_get
	mov	x20, x0
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
Lloh0:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___set_current_state
	add	x0, sp, #8
	bl	_blk_start_plug
	mov	x0, x19
	mov	x1, x20
	bl	_flush_bio_list
	add	x0, sp, #8
	bl	_blk_finish_plug
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_flush_pending_writes
.subsections_via_symbols
