	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_cache_data                 ## -- Begin function r5c_cache_data
	.p2align	4, 0x90
_r5c_cache_data:                        ## @r5c_cache_data
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movq	40(%rsi), %r14
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	cmpl	$0, (%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movl	$8, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	addq	$12, %r14
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_R5_Wantwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r13), %rsi
	addq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rax
	movl	-4(%rax,%r14), %edi
	callq	_kmap_atomic
	movq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_crc32c_le
	movq	32(%r13), %rcx
	movl	%eax, -8(%rcx,%r14)
	movq	%r12, %rdi
	callq	_kunmap_atomic
	incl	%r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_WARN_ON
	movq	_STRIPE_DELAYED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rsi
	callq	_clear_bit
	leaq	20(%r13), %rdi
	callq	_atomic_inc
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leal	1(%r15), %r12d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$-9, %cl
	shll	%cl, %r12d
	movq	_R5C_LOG_CRITICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	8(%r13), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_r5l_has_free_space
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_r5l_log_stripe
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	addq	$16, %r13
	addq	$16, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_14
LBB0_10:
	movq	8(%r13), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.11:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_14
LBB0_8:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_r5l_add_no_space_stripe
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R5_Wantwrite,4,2               ## @R5_Wantwrite
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_STRIPE_DELAYED,4,2             ## @STRIPE_DELAYED
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_R5C_LOG_CRITICAL,4,2           ## @R5C_LOG_CRITICAL
	.comm	_MaxSector,8,3                  ## @MaxSector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_cache_data                 ; -- Begin function r5c_cache_data
	.p2align	2
_r5c_cache_data:                        ; @r5c_cache_data
	.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	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #40]
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	w21, #0
Lloh0:
	adrp	x26, _R5_Wantwrite@GOTPAGE
Lloh1:
	ldr	x26, [x26, _R5_Wantwrite@GOTPAGEOFF]
Lloh2:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x24, x24, #12
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	x8, [x19, #32]
	add	x8, x8, x24
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x24
	ldr	w0, [x8, #4]
	bl	_kmap_atomic
	mov	x23, x0
	ldr	w0, [x20, #20]
	ldr	w2, [x27]
	mov	x1, x23
	bl	_crc32c_le
	ldr	x8, [x19, #32]
	str	w0, [x8, x24]
	mov	x0, x23
	bl	_kunmap_atomic
	add	w21, w21, #1
	b	LBB0_2
LBB0_5:
	mov	w21, #0
LBB0_6:
	cmp	w21, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh4:
	adrp	x8, _STRIPE_DELAYED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STRIPE_DELAYED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_clear_bit
	add	x0, x19, #20
	bl	_atomic_inc
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
Lloh7:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w24, [x8]
Lloh10:
	adrp	x8, _R5C_LOG_CRITICAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R5C_LOG_CRITICAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _MaxSector@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_8:
	add	w8, w21, #1
	sub	w9, w24, #9
	lsl	w1, w8, w9
	mov	x0, x20
	bl	_r5l_has_free_space
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_r5l_log_stripe
	cbz	w0, LBB0_14
; %bb.10:
	add	x21, x20, #12
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, x19, #16
	add	x1, x20, #16
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irq
	b	LBB0_14
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	bl	_BUG
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_r5l_add_no_space_stripe
LBB0_14:
	mov	x0, x23
	bl	_mutex_unlock
	mov	w0, #0
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_R5_Wantwrite,4,2               ; @R5_Wantwrite
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_STRIPE_DELAYED,4,2             ; @STRIPE_DELAYED
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_R5C_LOG_CRITICAL,4,2           ; @R5C_LOG_CRITICAL
	.comm	_MaxSector,8,3                  ; @MaxSector
.subsections_via_symbols
