	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_failed_sync
_handle_failed_sync:                    ## @handle_failed_sync
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	28(%rsi), %edi
	callq	_BUG_ON
	movq	_STRIPE_SYNCING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_clear_bit
	movq	_R5_Overlap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	shlq	$2, %rsi
	addq	16(%r14), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	32(%r12), %rdi
	callq	_wake_up
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	_MD_RECOVERY_RECOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	addq	$4, %rsi
	callq	_test_bit
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_Faulty@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	4(%rax,%r13,8), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %esi
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testl	%eax, %eax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%r13,8), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_In_sync@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %esi
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testl	%eax, %eax
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_15:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.17:
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	jmp	LBB0_18
LBB0_4:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_18
LBB0_16:
	movl	$1, %r15d
LBB0_18:
	movq	8(%r12), %rdi
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_done_sync                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STRIPE_SYNCING,4,2             ## @STRIPE_SYNCING
	.comm	_R5_Overlap,4,2                 ## @R5_Overlap
	.comm	_MD_RECOVERY_RECOVER,4,2        ## @MD_RECOVERY_RECOVER
	.comm	_Faulty,4,2                     ## @Faulty
	.comm	_In_sync,4,2                    ## @In_sync
	.comm	_STRIPE_SECTORS,4,2             ## @STRIPE_SECTORS
	.no_dead_strip	_handle_failed_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_failed_sync
_handle_failed_sync:                    ; @handle_failed_sync
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #28]
	bl	_BUG_ON
Lloh0:
	adrp	x8, _STRIPE_SYNCING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRIPE_SYNCING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_clear_bit
Lloh3:
	adrp	x8, _R5_Overlap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R5_Overlap@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	add	x1, x8, x9, lsl #2
	bl	_test_and_clear_bit
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #32
	bl	_wake_up
LBB0_2:
	stp	xzr, xzr, [x21]
Lloh6:
	adrp	x8, _MD_RECOVERY_RECOVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MD_RECOVERY_RECOVER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	bl	_test_bit
Lloh9:
	adrp	x22, _STRIPE_SECTORS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _STRIPE_SECTORS@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.3:
	bl	_rcu_read_lock
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_16
; %bb.4:
	mov	x24, #0
	mov	x25, #0
	mov	w23, #0
Lloh11:
	adrp	x26, _Faulty@GOTPAGE
Lloh12:
	ldr	x26, [x26, _Faulty@GOTPAGEOFF]
Lloh13:
	adrp	x27, _In_sync@GOTPAGE
Lloh14:
	ldr	x27, [x27, _In_sync@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x24
	ldr	w0, [x8, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	w0, [x26]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x20, #8]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w3, #0
	bl	_rdev_set_badblocks
	cmp	w0, #0
	csinc	w23, w23, wzr, ne
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x24]
	bl	_rcu_dereference
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	w0, [x26]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x20, #8]
	ldr	w2, [x22]
	mov	x0, x21
	mov	w3, #0
	bl	_rdev_set_badblocks
	cmp	w0, #0
	csinc	w23, w23, wzr, ne
	b	LBB0_5
LBB0_14:
	bl	_rcu_read_unlock
	cbz	w23, LBB0_17
; %bb.15:
	mov	w2, #0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_18
LBB0_16:
	bl	_rcu_read_unlock
LBB0_17:
	mov	w2, #1
LBB0_18:
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_md_done_sync
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRIPE_SYNCING,4,2             ; @STRIPE_SYNCING
	.comm	_R5_Overlap,4,2                 ; @R5_Overlap
	.comm	_MD_RECOVERY_RECOVER,4,2        ; @MD_RECOVERY_RECOVER
	.comm	_Faulty,4,2                     ; @Faulty
	.comm	_In_sync,4,2                    ; @In_sync
	.comm	_STRIPE_SECTORS,4,2             ; @STRIPE_SECTORS
	.no_dead_strip	_handle_failed_sync
.subsections_via_symbols
