	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __write_dirty_buffer
___write_dirty_buffer:                  ## @__write_dirty_buffer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_B_DIRTY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	20(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	_B_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_wait_on_bit_lock_io
	movl	4(%rbx), %eax
	movl	12(%rbx), %ecx
	movl	%ecx, 16(%rbx)
	movl	%eax, 8(%rbx)
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_add_tail                  ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_write_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_submit_io                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B_DIRTY,4,2                    ## @B_DIRTY
	.comm	_B_WRITING,4,2                  ## @B_WRITING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_write_endio,4,2                ## @write_endio
	.no_dead_strip	___write_dirty_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __write_dirty_buffer
___write_dirty_buffer:                  ; @__write_dirty_buffer
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _B_DIRTY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B_DIRTY@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #20
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_clear_bit
Lloh2:
	adrp	x8, _B_WRITING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B_WRITING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_wait_on_bit_lock_io
	ldr	w8, [x19, #12]
	str	w8, [x19, #16]
	ldr	w8, [x19, #4]
	str	w8, [x19, #8]
	cbz	x20, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	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
	b	_list_add_tail
LBB0_3:
	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
LBB0_4:
Lloh8:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _write_endio@GOTPAGE
Lloh12:
	ldr	x8, [x8, _write_endio@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	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
	b	_submit_io
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_B_DIRTY,4,2                    ; @B_DIRTY
	.comm	_B_WRITING,4,2                  ; @B_WRITING
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_write_endio,4,2                ; @write_endio
	.no_dead_strip	___write_dirty_buffer
.subsections_via_symbols
