	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_wait_for_blocked_rdev       ## -- Begin function md_wait_for_blocked_rdev
	.p2align	4, 0x90
_md_wait_for_blocked_rdev:              ## @md_wait_for_blocked_rdev
	.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
	movl	8(%rdi), %edi
	callq	_sysfs_notify_dirent_safe
	movl	4(%rbx), %r15d
	movq	_Blocked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_BlockedBadBlocks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%r12d, %r12d
	testl	%eax, %eax
	sete	%r12b
LBB0_2:
	movl	$5000, %edi                     ## imm = 0x1388
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_wait_event_timeout
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rdev_dec_pending               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Blocked,4,2                    ## @Blocked
	.comm	_BlockedBadBlocks,4,2           ## @BlockedBadBlocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_md_wait_for_blocked_rdev       ; -- Begin function md_wait_for_blocked_rdev
	.p2align	2
_md_wait_for_blocked_rdev:              ; @md_wait_for_blocked_rdev
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_sysfs_notify_dirent_safe
	ldr	w21, [x20, #4]
Lloh0:
	adrp	x8, _Blocked@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Blocked@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _BlockedBadBlocks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BlockedBadBlocks@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w22, eq
LBB0_3:
	mov	w0, #5000
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_wait_event_timeout
	mov	x0, x20
	mov	x1, 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	_rdev_dec_pending
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_Blocked,4,2                    ; @Blocked
	.comm	_BlockedBadBlocks,4,2           ; @BlockedBadBlocks
.subsections_via_symbols
