	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disk_flush
_disk_flush:                            ## @disk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	cmpq	$0, 16(%r15)
	je	LBB0_1
## %bb.3:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	36(%r15), %edi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	$1, (%r15)
	cmpl	$0, 4(%r15)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r15), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_log_clear_bit
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_1:
	cmpq	$0, 24(%r15)
	je	LBB0_2
LBB0_8:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rw_header
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_fail_log_device
	jmp	LBB0_15
LBB0_10:
	xorl	%r14d, %r14d
	cmpq	$0, 24(%r15)
	je	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_flush_header
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %ebx
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	callq	_fail_log_device
	movl	%ebx, %r14d
	jmp	LBB0_14
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_13:
	movq	$0, 24(%r15)
LBB0_14:
	movq	$0, 16(%r15)
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.no_dead_strip	_disk_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disk_flush
_disk_flush:                            ; @disk_flush
	.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, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w0, [x19, #36]
	blr	x8
	cbz	x0, LBB0_7
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #32]
	mov	x0, x19
	mov	x2, x20
	bl	_log_clear_bit
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
LBB0_7:
Lloh0:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rw_header
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
	mov	x0, x19
	bl	_fail_log_device
	b	LBB0_16
LBB0_9:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_flush_header
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.11:
	mov	w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_fail_log_device
	b	LBB0_15
LBB0_12:
	mov	w20, #0
	b	LBB0_16
LBB0_13:
	mov	w20, #0
	b	LBB0_15
LBB0_14:
	str	xzr, [x19, #24]
LBB0_15:
	str	xzr, [x19, #16]
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.no_dead_strip	_disk_flush
.subsections_via_symbols
