	.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	%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, %rbx
	callq	_spin_lock_irq
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.1:
	leaq	24(%rbx), %rdi
	callq	_bio_list_get
	movq	%rax, %r14
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___set_current_state
	leaq	-48(%rbp), %rdi
	callq	_blk_start_plug
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_md_bitmap_unplug
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	testq	%r14, %r14
	je	LBB0_12
## %bb.2:
	movq	_Faulty@GOTPCREL(%rip), %r12
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bio_io_error
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r15
	movq	(%r14), %rbx
	movq	8(%r14), %r14
	movq	$0, 8(%r15)
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_bio_set_dev
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_bio_op
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_blk_queue_discard
	testl	%eax, %eax
	sete	%al
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_bio_endio
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_generic_make_request
	jmp	LBB0_11
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_blk_finish_plug
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.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, #80
	.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
	mov	x20, x0
	bl	_spin_lock_irq
	mov	x0, x20
	ldr	x8, [x0, #24]!
	cbz	x8, LBB0_12
; %bb.1:
	bl	_bio_list_get
	mov	x19, x0
	str	xzr, [x20, #16]
	mov	x0, x20
	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
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_md_bitmap_unplug
	add	x0, x20, #4
	bl	_wake_up
	cbz	x19, LBB0_11
; %bb.2:
Lloh3:
	adrp	x22, _Faulty@GOTPAGE
Lloh4:
	ldr	x22, [x22, _Faulty@GOTPAGEOFF]
Lloh5:
	adrp	x23, _REQ_OP_DISCARD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _REQ_OP_DISCARD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_bio_io_error
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x19, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x19
	ldr	x19, [x19, #8]
	ldr	x21, [x20]
	str	xzr, [x20, #8]
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_bio_set_dev
	ldr	w0, [x22]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_bio_op
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_blk_queue_discard
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_bio_endio
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_generic_make_request
	b	LBB0_4
LBB0_11:
	add	x0, sp, #8
	bl	_blk_finish_plug
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #80
	b	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.no_dead_strip	_flush_pending_writes
.subsections_via_symbols
