	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_try_caching_write          ## -- Begin function r5c_try_caching_write
	.p2align	4, 0x90
_r5c_try_caching_write:                 ## @r5c_try_caching_write
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_r5c_is_writeback
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movq	_STRIPE_R5C_CACHING@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	cmpq	$0, 24(%r15)
	jne	LBB0_12
LBB0_6:
	movq	_STRIPE_SYNCING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
LBB0_12:
	movq	%rbx, %rdi
	callq	_r5c_make_stripe_write_out
	jmp	LBB0_3
LBB0_1:
	cmpq	$0, (%r15)
	jg	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r15)
	jle	LBB0_4
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %r15
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.8:
	movq	%r15, %r13
	shlq	$4, %r13
	addq	$-16, %r13
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$-16, %r13
	decl	%r12d
	je	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r14
	cmpq	$0, 8(%r14,%r13)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_R5_OVERWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%r13, %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_12
LBB0_15:
	movq	_STRIPE_R5C_PARTIAL_STRIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %r12
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_20
## %bb.16:
	movq	_STRIPE_R5C_FULL_STRIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_20
## %bb.17:
	movl	16(%r12), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_r5c_tree_index
	movl	%eax, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	4(%r14), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_radix_tree_lookup_slot
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_radix_tree_deref_slot_protected
	movq	_R5C_RADIX_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	leaq	1(%rax), %rdx
	shlq	%cl, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_radix_tree_replace_slot
	movq	%r14, %rdi
LBB0_19:
	callq	_spin_unlock
	movq	_STRIPE_R5C_PARTIAL_STRIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
LBB0_20:
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.24:
	shlq	$4, %r15
	addq	$-16, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=1
	addq	$-16, %r15
	decl	%r13d
	je	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rbx
	cmpq	$0, 8(%rbx,%r15)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	_R5_Wantwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%r15, %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_R5_Wantdrain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_R5_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	incl	%r14d
	jmp	LBB0_27
LBB0_4:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	cmpq	$0, 24(%r15)
	jne	LBB0_12
	jmp	LBB0_6
LBB0_28:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_30
## %bb.29:
	movq	_STRIPE_OP_BIODRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addq	$16, %rsi
	callq	_set_bit
	movq	_STRIPE_LOG_TRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	jmp	LBB0_30
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_22:
	movq	_R5C_RADIX_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_radix_tree_insert
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_19
## %bb.23:
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_r5c_make_stripe_write_out
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_STRIPE_R5C_CACHING,4,2         ## @STRIPE_R5C_CACHING
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_STRIPE_SYNCING,4,2             ## @STRIPE_SYNCING
	.comm	_R5_OVERWRITE,4,2               ## @R5_OVERWRITE
	.comm	_R5_InJournal,4,2               ## @R5_InJournal
	.comm	_STRIPE_R5C_PARTIAL_STRIPE,4,2  ## @STRIPE_R5C_PARTIAL_STRIPE
	.comm	_STRIPE_R5C_FULL_STRIPE,4,2     ## @STRIPE_R5C_FULL_STRIPE
	.comm	_R5C_RADIX_COUNT_SHIFT,8,3      ## @R5C_RADIX_COUNT_SHIFT
	.comm	_R5_Wantwrite,4,2               ## @R5_Wantwrite
	.comm	_R5_Wantdrain,4,2               ## @R5_Wantdrain
	.comm	_R5_LOCKED,4,2                  ## @R5_LOCKED
	.comm	_STRIPE_OP_BIODRAIN,4,2         ## @STRIPE_OP_BIODRAIN
	.comm	_STRIPE_LOG_TRAPPED,4,2         ## @STRIPE_LOG_TRAPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_try_caching_write          ; -- Begin function r5c_try_caching_write
	.p2align	2
_r5c_try_caching_write:                 ; @r5c_try_caching_write
	.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, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	mov	x0, x23
	bl	_r5c_is_writeback
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh0:
	adrp	x24, _STRIPE_R5C_CACHING@GOTPAGE
Lloh1:
	ldr	x24, [x24, _STRIPE_R5C_CACHING@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _STRIPE_SYNCING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRIPE_SYNCING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_r5c_make_stripe_write_out
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20]
	cmp	x8, #0
	b.gt	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_24
LBB0_6:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	cbz	w21, LBB0_14
; %bb.9:
	sbfiz	x8, x21, #4, #32
	sub	x25, x8, #8
Lloh8:
	adrp	x26, _R5_OVERWRITE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _R5_OVERWRITE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _R5_InJournal@GOTPAGE
Lloh11:
	ldr	x27, [x27, _R5_InJournal@GOTPAGEOFF]
	mov	x28, x21
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x25, x25, #16
	subs	w28, w28, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x25]
	cbz	x9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x26]
	add	x8, x8, x25
	sub	x24, x8, #8
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x27]
	mov	x1, x24
	bl	_test_bit
	cbnz	x0, LBB0_10
	b	LBB0_3
LBB0_14:
Lloh12:
	adrp	x27, _STRIPE_R5C_PARTIAL_STRIPE@GOTPAGE
Lloh13:
	ldr	x27, [x27, _STRIPE_R5C_PARTIAL_STRIPE@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_19
; %bb.15:
Lloh14:
	adrp	x8, _STRIPE_R5C_FULL_STRIPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STRIPE_R5C_FULL_STRIPE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_19
; %bb.16:
	ldr	w1, [x19, #16]
	mov	x0, x22
	bl	_r5c_tree_index
	mov	x25, x0
	mov	x0, x23
	bl	_spin_lock
	add	x24, x23, #4
	mov	x0, x24
	mov	x1, x25
	bl	_radix_tree_lookup_slot
	cbz	x0, LBB0_28
; %bb.17:
	mov	x26, x0
	mov	x1, x23
	bl	_radix_tree_deref_slot_protected
Lloh17:
	adrp	x8, _R5C_RADIX_COUNT_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R5C_RADIX_COUNT_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	lsr	x9, x0, x8
	add	x9, x9, #1
	lsl	x2, x9, x8
	mov	x0, x24
	mov	x1, x26
	bl	_radix_tree_replace_slot
LBB0_18:
	mov	x0, x23
	bl	_spin_unlock
	ldr	w0, [x27]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x22
	bl	_atomic_inc
LBB0_19:
	cbz	w21, LBB0_27
; %bb.20:
	mov	w23, #0
	mov	x8, x21
	sbfiz	x8, x8, #4, #32
	sub	x24, x8, #8
Lloh20:
	adrp	x25, _R5_Wantwrite@GOTPAGE
Lloh21:
	ldr	x25, [x25, _R5_Wantwrite@GOTPAGEOFF]
Lloh22:
	adrp	x26, _R5_Wantdrain@GOTPAGE
Lloh23:
	ldr	x26, [x26, _R5_Wantdrain@GOTPAGEOFF]
Lloh24:
	adrp	x27, _R5_LOCKED@GOTPAGE
Lloh25:
	ldr	x27, [x27, _R5_LOCKED@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	x24, x24, #16
	subs	w21, w21, #1
	b.eq	LBB0_25
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x24]
	cbz	x9, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w0, [x25]
	add	x8, x8, x24
	sub	x22, x8, #8
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x26]
	mov	x1, x22
	bl	_set_bit
	ldr	w0, [x27]
	mov	x1, x22
	bl	_set_bit
	add	w23, w23, #1
	b	LBB0_21
LBB0_24:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_set_bit
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_25:
	cbz	w23, LBB0_27
; %bb.26:
Lloh26:
	adrp	x8, _STRIPE_OP_BIODRAIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STRIPE_OP_BIODRAIN@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_set_bit
Lloh29:
	adrp	x8, _STRIPE_LOG_TRAPPED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STRIPE_LOG_TRAPPED@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
LBB0_27:
	mov	w0, #0
	b	LBB0_7
LBB0_28:
Lloh32:
	adrp	x8, _R5C_RADIX_COUNT_SHIFT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _R5C_RADIX_COUNT_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x2, w8
	mov	x0, x24
	mov	x1, x25
	bl	_radix_tree_insert
	cbz	w0, LBB0_18
; %bb.29:
	mov	x0, x23
	bl	_spin_unlock
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_STRIPE_R5C_CACHING,4,2         ; @STRIPE_R5C_CACHING
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_STRIPE_SYNCING,4,2             ; @STRIPE_SYNCING
	.comm	_R5_OVERWRITE,4,2               ; @R5_OVERWRITE
	.comm	_R5_InJournal,4,2               ; @R5_InJournal
	.comm	_STRIPE_R5C_PARTIAL_STRIPE,4,2  ; @STRIPE_R5C_PARTIAL_STRIPE
	.comm	_STRIPE_R5C_FULL_STRIPE,4,2     ; @STRIPE_R5C_FULL_STRIPE
	.comm	_R5C_RADIX_COUNT_SHIFT,8,3      ; @R5C_RADIX_COUNT_SHIFT
	.comm	_R5_Wantwrite,4,2               ; @R5_Wantwrite
	.comm	_R5_Wantdrain,4,2               ; @R5_Wantdrain
	.comm	_R5_LOCKED,4,2                  ; @R5_LOCKED
	.comm	_STRIPE_OP_BIODRAIN,4,2         ; @STRIPE_OP_BIODRAIN
	.comm	_STRIPE_LOG_TRAPPED,4,2         ; @STRIPE_LOG_TRAPPED
.subsections_via_symbols
