	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___blkdev_issue_flush           ## -- Begin function __blkdev_issue_flush
	.p2align	4, 0x90
___blkdev_issue_flush:                  ## @__blkdev_issue_flush
	.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	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_DECLARE_COMPLETION_ONSTACK
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_bdev_get_queue
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.4:
	xorl	%r13d, %r13d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_bio_alloc
	movq	%rax, %r12
	movq	_bio_end_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%rbx, 16(%r12)
	movq	%r15, 8(%r12)
	movq	%r12, %rdi
	callq	_bio_get
	movq	_WRITE_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_submit_bio
	movq	%r15, %rdi
	callq	_wait_for_completion
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	(%r12), %eax
	movl	%eax, (%r14)
LBB0_6:
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bio_flagged
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	testl	%eax, %eax
	cmovnel	%r13d, %ebx
	movq	%r12, %rdi
	callq	_bio_put
	jmp	LBB0_7
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_bio_end_flush,4,2              ## @bio_end_flush
	.comm	_WRITE_FLUSH,4,2                ## @WRITE_FLUSH
	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___blkdev_issue_flush           ; -- Begin function __blkdev_issue_flush
	.p2align	2
___blkdev_issue_flush:                  ; @__blkdev_issue_flush
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x20, _wait@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wait@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_DECLARE_COMPLETION_ONSTACK
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x0, x22
	bl	_bdev_get_queue
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_bio_alloc
	mov	x21, x0
Lloh2:
	adrp	x8, _bio_end_flush@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bio_end_flush@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	stp	x20, x22, [x0, #8]
	bl	_bio_get
Lloh5:
	adrp	x8, _WRITE_FLUSH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WRITE_FLUSH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_submit_bio
	mov	x0, x20
	bl	_wait_for_completion
	cbz	x19, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	str	w8, [x19]
LBB0_5:
Lloh8:
	adrp	x8, _BIO_UPTODATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_UPTODATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bio_flagged
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w19, wzr, w8, ne
	mov	x0, x21
	bl	_bio_put
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _ENXIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_bio_end_flush,4,2              ; @bio_end_flush
	.comm	_WRITE_FLUSH,4,2                ; @WRITE_FLUSH
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
