	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_update_on_rdev_error       ## -- Begin function r5c_update_on_rdev_error
	.p2align	4, 0x90
_r5c_update_on_rdev_error:              ## @r5c_update_on_rdev_error
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	%rbx, %rdi
	callq	_raid5_calc_degraded
	testq	%rax, %rax
	jg	LBB0_3
## %bb.2:
	movq	_Journal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_R5C_JOURNAL_MODE_WRITE_BACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	addq	$8, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Journal,4,2                    ## @Journal
	.comm	_R5C_JOURNAL_MODE_WRITE_BACK,8,3 ## @R5C_JOURNAL_MODE_WRITE_BACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_update_on_rdev_error       ; -- Begin function r5c_update_on_rdev_error
	.p2align	2
_r5c_update_on_rdev_error:              ; @r5c_update_on_rdev_error
	.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	x19, [x0]
	ldr	x21, [x19]
	cbz	x21, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x0, x19
	bl	_raid5_calc_degraded
	cmp	x0, #0
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _Journal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Journal@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _R5C_JOURNAL_MODE_WRITE_BACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R5C_JOURNAL_MODE_WRITE_BACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	add	x0, x21, #8
	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	_schedule_work
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_Journal,4,2                    ; @Journal
	.comm	_R5C_JOURNAL_MODE_WRITE_BACK,8,3 ; @R5C_JOURNAL_MODE_WRITE_BACK
.subsections_via_symbols
