	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_allow_write                 ## -- Begin function md_allow_write
	.p2align	4, 0x90
_md_allow_write:                        ## @md_allow_write
	.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	40(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 48(%rdi)
	je	LBB0_2
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.3:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.4:
	movq	$0, 32(%rbx)
	movq	_MD_SB_CHANGE_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	_MD_SB_CHANGE_PENDING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_set_bit
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.5:
	cmpl	$0, (%rbx)
	jne	LBB0_7
## %bb.6:
	movl	$1, (%rbx)
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_md_update_sb
	movl	16(%rbx), %edi
	callq	_sysfs_notify_dirent_safe
	movl	12(%rbx), %ebx
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_event                     ## TAILCALL
LBB0_8:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_allow_write                 ; -- Begin function md_allow_write
	.p2align	2
_md_allow_write:                        ; @md_allow_write
	.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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #48]
	cbz	x9, LBB0_3
LBB0_2:
	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_3:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.4:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.5:
	str	xzr, [x19, #32]
Lloh0:
	adrp	x8, _MD_SB_CHANGE_CLEAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_SB_CHANGE_CLEAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_set_bit
Lloh3:
	adrp	x22, _MD_SB_CHANGE_PENDING@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MD_SB_CHANGE_PENDING@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_set_bit
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	mov	w1, #0
	bl	_md_update_sb
	ldr	w0, [x19, #16]
	bl	_sysfs_notify_dirent_safe
	ldr	w19, [x19, #12]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w1, eq
	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	_wait_event
LBB0_9:
	mov	x0, x21
	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	_spin_unlock
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
