	.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	32(%rdi), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_2
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.3:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.4:
	movq	$0, 24(%rbx)
	movq	_MD_CHANGE_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %r12
	movq	%r12, %rsi
	callq	_set_bit
	movq	_MD_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	cmpq	$0, 16(%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_irq
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_md_update_sb
	movl	12(%rbx), %edi
	callq	_sysfs_notify_dirent_safe
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
LBB0_9:
	movq	_MD_CHANGE_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_CHANGE_CLEAN,4,2            ## @MD_CHANGE_CLEAN
	.comm	_MD_CHANGE_PENDING,4,2          ## @MD_CHANGE_PENDING
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.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, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_4
LBB0_2:
	mov	w0, #0
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:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.5:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x22, _MD_CHANGE_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MD_CHANGE_PENDING@GOTPAGEOFF]
	cbz	x8, LBB0_10
; %bb.6:
	str	xzr, [x19, #24]
Lloh2:
	adrp	x8, _MD_CHANGE_CLEAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MD_CHANGE_CLEAN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x21, x19, #4
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x22]
	mov	x1, x21
	bl	_set_bit
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	w1, #0
	bl	_md_update_sb
	ldr	w0, [x19, #12]
	bl	_sysfs_notify_dirent_safe
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_irq
LBB0_11:
	ldr	w0, [x22]
	add	x1, x19, #4
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.12:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_CHANGE_CLEAN,4,2            ; @MD_CHANGE_CLEAN
	.comm	_MD_CHANGE_PENDING,4,2          ; @MD_CHANGE_PENDING
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
