	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_handle_cached_data_endio   ## -- Begin function r5c_handle_cached_data_endio
	.p2align	4, 0x90
_r5c_handle_cached_data_endio:          ## @r5c_handle_cached_data_endio
	.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
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movslq	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	leaq	4(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	shlq	$4, %r14
	addq	$-16, %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$-16, %r14
	decl	%r12d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	cmpq	$0, 8(%rsi,%r14)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_R5_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%r14, %rsi
	callq	_set_bit
	movq	16(%r15), %rsi
	addq	%r14, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_r5c_return_dev_pending_writes
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %r13d
	movq	%r15, %rbx
	movq	_STRIPE_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_STRIPE_DEGRADED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%rbx, %r15
	xorl	%r8d, %r8d
	callq	_md_bitmap_endwrite
	jmp	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R5_UPTODATE,4,2                ## @R5_UPTODATE
	.comm	_STRIPE_SECTORS,4,2             ## @STRIPE_SECTORS
	.comm	_STRIPE_DEGRADED,4,2            ## @STRIPE_DEGRADED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_handle_cached_data_endio   ; -- Begin function r5c_handle_cached_data_endio
	.p2align	2
_r5c_handle_cached_data_endio:          ; @r5c_handle_cached_data_endio
	.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
	ldr	w25, [x1]
	cbz	w25, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	sxtw	x8, w25
	add	x21, x1, #4
	lsl	x8, x8, #4
	sub	x26, x8, #8
Lloh0:
	adrp	x28, _STRIPE_SECTORS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _STRIPE_SECTORS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _STRIPE_DEGRADED@GOTPAGE
Lloh3:
	ldr	x27, [x27, _STRIPE_DEGRADED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x26, x26, #16
	subs	w25, w25, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x26]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh4:
	adrp	x9, _R5_UPTODATE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _R5_UPTODATE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	add	x8, x8, x26
	sub	x1, x8, #8
	bl	_set_bit
	ldr	x8, [x19, #16]
	add	x8, x8, x26
	sub	x1, x8, #8
	mov	x0, x20
	bl	_r5c_return_dev_pending_writes
	ldr	x8, [x20]
	ldr	w22, [x8]
	ldr	w23, [x19, #8]
	ldr	w24, [x28]
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_bit
	cmp	w0, #0
	cset	w3, eq
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	mov	w4, #0
	bl	_md_bitmap_endwrite
	b	LBB0_2
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_R5_UPTODATE,4,2                ; @R5_UPTODATE
	.comm	_STRIPE_SECTORS,4,2             ; @STRIPE_SECTORS
	.comm	_STRIPE_DEGRADED,4,2            ; @STRIPE_DEGRADED
.subsections_via_symbols
