	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_recovery_read_error
_fix_recovery_read_error:               ## @fix_recovery_read_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rcx
	movq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	8(%rdi), %rax
	movq	16(%rax), %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movslq	(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movslq	24(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	_get_resync_pages
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	movq	(%rax), %rdx
	xorl	%r15d, %r15d
	shlq	$4, -72(%rbp)                   ## 8-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %r15
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rdx
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	subl	%r14d, %ebx
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	sarl	$9, %r14d
	cmpl	%r14d, %ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	cmovll	%ebx, %r14d
	movq	(%r12), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	8(%rax), %rbx
	addq	%r15, %rbx
	movl	%r14d, %r13d
	shll	$9, %r13d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rcx
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r13d, %edx
	xorl	%r9d, %r9d
	callq	_sync_page_io
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	32(%rax), %rbx
	addq	%r15, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r13d, %edx
	xorl	%r9d, %r9d
	callq	_sync_page_io
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	movq	%r13, %rsi
	callq	_set_bit
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	callq	_set_bit
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	movq	(%r12), %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %rdi
	cmpq	%rdi, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	32(%rax), %rsi
	addq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testl	%eax, %eax
	jne	LBB0_8
## %bb.10:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_mdname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_notice
	movl	4(%r14), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid10:%s: recovery aborted due to read error\n"

	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.no_dead_strip	_fix_recovery_read_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_recovery_read_error
_fix_recovery_read_error:               ; @fix_recovery_read_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldp	x8, x9, [x0, #8]
	str	x9, [sp]                        ; 8-byte Folded Spill
	ldr	x25, [x9, #8]
	ldr	x0, [x8, #16]
	ldr	w27, [x20]
	ldrsw	x9, [x8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	ldrsw	x26, [x8, #24]
	bl	_get_resync_pages
	cbz	w27, LBB0_10
; %bb.1:
	mov	x19, #0
	ldr	x28, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, w21, sxtw
	add	x28, x28, #8
	subs	w27, w27, w21
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w8, #9
	cmp	w27, w8
	csel	w21, w27, w8, lt
	ldr	x8, [x25]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #4
	ldr	x22, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	add	x23, x8, x19
	lsl	w24, w21, #9
	ldr	x3, [x28]
Lloh3:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w5, #0
	mov	w6, #0
	bl	_sync_page_io
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25]
	add	x8, x8, x26, lsl #4
	ldr	x22, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #32]
	add	x23, x8, x19
	ldr	x3, [x28]
Lloh6:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w5, #0
	mov	w6, #0
	bl	_sync_page_io
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh9:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x24, x22, #8
	mov	x1, x24
	bl	_set_bit
Lloh12:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_and_set_bit
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x22]
	bl	_set_bit
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	w3, #0
	bl	_rdev_set_badblocks
	ldr	x8, [x25]
	add	x8, x8, x26, lsl #4
	ldr	x0, [x8, #8]
	cmp	x22, x0
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #32]
	add	x1, x8, x19
	mov	x2, x21
	mov	w3, #0
	bl	_rdev_set_badblocks
	cbnz	w0, LBB0_2
; %bb.9:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	mov	x0, x19
	bl	_mdname
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
	ldr	w8, [x19, #4]
	ldr	x9, [x25]
	lsl	x10, x26, #4
	str	w8, [x9, x10]
Lloh20:
	adrp	x8, _MD_RECOVERY_INTR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MD_RECOVERY_INTR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_set_bit
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid10:%s: recovery aborted due to read error\n"

	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.no_dead_strip	_fix_recovery_read_error
.subsections_via_symbols
