	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_write_start                 ## -- Begin function md_write_start
	.p2align	4, 0x90
_md_write_start:                        ## @md_write_start
	.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
	movq	%rsi, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.1:
	xorl	%edi, %edi
	cmpl	$1, (%rbx)
	sete	%dil
	callq	_BUG_ON
	xorl	%r13d, %r13d
	cmpl	$2, (%rbx)
	jne	LBB0_3
## %bb.2:
	movl	$0, (%rbx)
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	68(%rbx), %rsi
	callq	_set_bit
	movl	40(%rbx), %edi
	callq	_md_wakeup_thread
	movl	64(%rbx), %edi
	callq	_md_wakeup_thread
	movl	$1, %r13d
LBB0_3:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_percpu_ref_get
	xorl	%eax, %eax
	callq	_smp_mb
	cmpl	$1, 4(%rbx)
	jne	LBB0_5
## %bb.4:
	movl	$0, 4(%rbx)
LBB0_5:
	cmpq	$0, 48(%rbx)
	jne	LBB0_7
## %bb.6:
	cmpq	$0, 56(%rbx)
	je	LBB0_10
LBB0_7:
	leaq	36(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	cmpq	$0, 48(%rbx)
	je	LBB0_9
## %bb.8:
	movq	$0, 48(%rbx)
	movq	_MD_SB_CHANGE_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r13
	movq	%r13, %rsi
	callq	_set_bit
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	movl	40(%rbx), %edi
	callq	_md_wakeup_thread
	movl	$1, %r13d
LBB0_9:
	movq	%r12, %rdi
	callq	_spin_unlock
LBB0_10:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.11:
	movl	32(%rbx), %edi
	callq	_sysfs_notify_dirent_safe
LBB0_12:
	cmpl	$0, 28(%rbx)
	je	LBB0_17
## %bb.13:
	movl	24(%rbx), %r13d
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	movl	$1, %r14d
	movl	$1, %esi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	cmpq	$0, 16(%rbx)
	setne	%sil
LBB0_15:
	movl	%r13d, %edi
	callq	_wait_event
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_percpu_ref_put
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.comm	_MD_SB_CHANGE_CLEAN,4,2         ## @MD_SB_CHANGE_CLEAN
	.comm	_MD_SB_CHANGE_PENDING,4,2       ## @MD_SB_CHANGE_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_write_start                 ; -- Begin function md_write_start
	.p2align	2
_md_write_start:                        ; @md_write_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	mov	x0, x1
	bl	_bio_data_dir
Lloh0:
	adrp	x8, _WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x19]
Lloh3:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #68
	bl	_set_bit
	ldr	w0, [x19, #40]
	bl	_md_wakeup_thread
	ldr	w0, [x19, #64]
	bl	_md_wakeup_thread
	mov	w22, #1
	b	LBB0_4
LBB0_3:
	mov	w22, #0
LBB0_4:
	bl	_rcu_read_lock
	add	x20, x19, #8
	mov	x0, x20
	bl	_percpu_ref_get
	bl	_smp_mb
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x19, #4]
LBB0_6:
	ldr	x8, [x19, #48]
Lloh6:
	adrp	x23, _MD_SB_CHANGE_PENDING@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MD_SB_CHANGE_PENDING@GOTPAGEOFF]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_11
LBB0_8:
	add	x21, x19, #36
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_10
; %bb.9:
	str	xzr, [x19, #48]
Lloh8:
	adrp	x8, _MD_SB_CHANGE_CLEAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MD_SB_CHANGE_CLEAN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x22, x19, #12
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x23]
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x19, #40]
	bl	_md_wakeup_thread
	mov	w22, #1
LBB0_10:
	mov	x0, x21
	bl	_spin_unlock
LBB0_11:
	bl	_rcu_read_unlock
	cbz	w22, LBB0_13
; %bb.12:
	ldr	w0, [x19, #32]
	bl	_sysfs_notify_dirent_safe
LBB0_13:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_19
; %bb.14:
	ldr	w22, [x19, #24]
	ldr	w0, [x23]
	add	x21, x19, #12
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w1, ne
	b	LBB0_17
LBB0_16:
	mov	w1, #1
LBB0_17:
	mov	x0, x22
	bl	_wait_event
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_percpu_ref_put
	mov	w0, #0
	b	LBB0_20
LBB0_19:
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.comm	_MD_SB_CHANGE_CLEAN,4,2         ; @MD_SB_CHANGE_CLEAN
	.comm	_MD_SB_CHANGE_PENDING,4,2       ; @MD_SB_CHANGE_PENDING
.subsections_via_symbols
