	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r10_sync_page_io
_r10_sync_page_io:                      ## @r10_sync_page_io
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	callq	_is_badblock
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_READ@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	%r13d, (%rax)
	je	LBB0_9
## %bb.2:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
LBB0_3:
	movl	%r14d, %edx
	shll	$9, %edx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_sync_page_io
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movq	_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_7
## %bb.5:
	movq	_WriteErrorSeen@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_WantReplacement@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_MD_RECOVERY_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_set_bit
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_rdev_set_badblocks
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	(%r12), %rdi
	movq	%r12, %rsi
	callq	_md_error
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,4,2                       ## @READ
	.comm	_WriteErrorSeen,4,2             ## @WriteErrorSeen
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_WantReplacement,4,2            ## @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ## @MD_RECOVERY_NEEDED
	.no_dead_strip	_r10_sync_page_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r10_sync_page_io
_r10_sync_page_io:                      ; @r10_sync_page_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x3, sp, #12
	add	x4, sp, #8
	bl	_is_badblock
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #-1
	b	LBB0_11
LBB0_4:
	lsl	w2, w20, #9
	mov	x0, x19
	mov	x1, x21
	mov	x3, x23
	mov	x4, x22
	mov	w5, #0
	mov	w6, #0
	bl	_sync_page_io
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, _WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.7:
Lloh9:
	adrp	x8, _WriteErrorSeen@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WriteErrorSeen@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x22, x19, #8
	mov	x1, x22
	bl	_set_bit
Lloh12:
	adrp	x8, _WantReplacement@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WantReplacement@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_and_set_bit
	cbnz	w0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _MD_RECOVERY_NEEDED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MD_RECOVERY_NEEDED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_set_bit
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_rdev_set_badblocks
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_md_error
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_READ,4,2                       ; @READ
	.comm	_WriteErrorSeen,4,2             ; @WriteErrorSeen
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_WantReplacement,4,2            ; @WantReplacement
	.comm	_MD_RECOVERY_NEEDED,4,2         ; @MD_RECOVERY_NEEDED
	.no_dead_strip	_r10_sync_page_io
.subsections_via_symbols
