	.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, %r15
	movq	_B_DIRTY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_B_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_do_io_schedule@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_wait_on_bit_lock
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	movq	%r15, %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	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	_write_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %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	_do_io_schedule,4,2             ## @do_io_schedule
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_WRITE,4,2                      ## @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, #8
	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, _do_io_schedule@GOTPAGE
Lloh6:
	ldr	x8, [x8, _do_io_schedule@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_wait_on_bit_lock
	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:
Lloh11:
	adrp	x8, _WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _write_endio@GOTPAGE
Lloh15:
	ldr	x8, [x8, _write_endio@GOTPAGEOFF]
	ldr	w2, [x19, #4]
Lloh16:
	ldr	w3, [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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B_DIRTY,4,2                    ; @B_DIRTY
	.comm	_B_WRITING,4,2                  ; @B_WRITING
	.comm	_do_io_schedule,4,2             ; @do_io_schedule
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_write_endio,4,2                ; @write_endio
	.no_dead_strip	___write_dirty_buffer
.subsections_via_symbols
