	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_finish_stripe_write_out    ## -- Begin function r5c_finish_stripe_write_out
	.p2align	4, 0x90
_r5c_finish_stripe_write_out:           ## @r5c_finish_stripe_write_out
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rsi), %rsi
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	movq	_STRIPE_R5C_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_WARN_ON
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	callq	_clear_bit
	movq	(%rbx), %rax
	movq	_R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.3:
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movslq	8(%r15), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	leaq	-4(,%r13,4), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_R5_Overlap@GOTPCREL(%rip), %r12
	movq	%rax, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$-4, %r14
	decl	%r13d
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	32(%r15), %rsi
	addq	%r14, %rsi
	callq	_clear_bit
	movl	(%r12), %edi
	movq	32(%r15), %rsi
	addq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	_STRIPE_FULL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	leaq	32(%r13), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	24(%r13), %rax
	movl	(%rax), %edi
	callq	_md_wakeup_thread
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.13:
	leaq	16(%r13), %rdi
	callq	_wake_up
LBB0_14:
	leaq	20(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	leaq	24(%r15), %rdi
	callq	_list_del_init
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	leaq	16(%r14), %rdi
	callq	_atomic_dec
	movq	%r14, %rdi
	callq	_r5c_update_log_state
	movq	_STRIPE_R5C_PARTIAL_STRIPE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_STRIPE_R5C_FULL_STRIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_20
LBB0_16:
	movl	16(%r15), %esi
	movq	%r13, %rdi
	callq	_r5c_tree_index
	movl	%eax, %ebx
	leaq	8(%r14), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	leaq	12(%r14), %rdi
	movq	%rdi, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_radix_tree_lookup_slot
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_radix_tree_deref_slot_protected
	movq	_R5C_RADIX_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shrq	%cl, %rax
	cmpq	$1, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_radix_tree_delete
	jmp	LBB0_19
LBB0_18:
	decq	%rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_radix_tree_replace_slot
LBB0_19:
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_STRIPE_R5C_PARTIAL_STRIPE@GOTPCREL(%rip), %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	leaq	12(%r13), %rdi
	callq	_atomic_dec
	movq	%rbx, %rdi
	callq	_atomic_dec
LBB0_22:
	movq	_STRIPE_R5C_FULL_STRIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	leaq	4(%r13), %rdi
	callq	_atomic_dec
	movq	%r13, %rdi
	callq	_atomic_dec
LBB0_24:
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_r5l_append_flush_payload
	movq	_STRIPE_SYNC_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movq	_STRIPE_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R5_InJournal,4,2               ## @R5_InJournal
	.comm	_STRIPE_R5C_CACHING,4,2         ## @STRIPE_R5C_CACHING
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ## @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_R5_Overlap,4,2                 ## @R5_Overlap
	.comm	_STRIPE_FULL_WRITE,4,2          ## @STRIPE_FULL_WRITE
	.comm	_MaxSector,4,2                  ## @MaxSector
	.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	_STRIPE_SYNC_REQUESTED,4,2      ## @STRIPE_SYNC_REQUESTED
	.comm	_STRIPE_HANDLE,4,2              ## @STRIPE_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5c_finish_stripe_write_out    ; -- Begin function r5c_finish_stripe_write_out
	.p2align	2
_r5c_finish_stripe_write_out:           ; @r5c_finish_stripe_write_out
	.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	x19, [x0, #40]
	cbz	x19, LBB0_24
; %bb.1:
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _R5_InJournal@GOTPAGE
Lloh1:
	ldr	x24, [x24, _R5_InJournal@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x8, [x1, #32]
	ldr	x9, [x1]
	add	x1, x8, x9, lsl #2
	bl	_test_bit
	cbz	x0, LBB0_24
; %bb.2:
Lloh2:
	adrp	x8, _STRIPE_R5C_CACHING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STRIPE_R5C_CACHING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x21, x20, #12
	mov	x1, x21
	bl	_test_bit
	bl	_WARN_ON
	ldr	w0, [x24]
	ldr	x8, [x20, #32]
	ldr	x9, [x20]
	add	x1, x8, x9, lsl #2
	bl	_clear_bit
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.3:
	ldr	w26, [x20, #8]
	cbz	w26, LBB0_6
; %bb.4:
	mov	w25, #0
	sxtw	x8, w26
	lsl	x8, x8, #2
	sub	x27, x8, #4
Lloh8:
	adrp	x28, _R5_Overlap@GOTPAGE
Lloh9:
	ldr	x28, [x28, _R5_Overlap@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x8, [x20, #32]
	add	x1, x8, x27
	bl	_clear_bit
	ldr	w0, [x28]
	ldr	x8, [x20, #32]
	add	x1, x8, x27
	bl	_test_and_clear_bit
	cmp	x0, #0
	csinc	w25, w25, wzr, eq
	sub	x27, x27, #4
	sub	w26, w26, #1
	cbnz	w26, LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w25, #0
LBB0_7:
	str	xzr, [x23]
Lloh10:
	adrp	x8, _STRIPE_FULL_WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STRIPE_FULL_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_10
; %bb.8:
	add	x0, x22, #32
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x22, #24]
	ldr	w0, [x8]
	bl	_md_wakeup_thread
LBB0_10:
	cbz	w25, LBB0_12
; %bb.11:
	add	x0, x22, #16
	bl	_wake_up
LBB0_12:
	add	x23, x19, #20
	mov	x0, x23
	bl	_spin_lock_irq
	add	x0, x20, #24
	bl	_list_del_init
	mov	x0, x23
	bl	_spin_unlock_irq
Lloh13:
	adrp	x8, _MaxSector@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	add	x0, x19, #16
	bl	_atomic_dec
	mov	x0, x19
	bl	_r5c_update_log_state
Lloh16:
	adrp	x28, _STRIPE_R5C_PARTIAL_STRIPE@GOTPAGE
Lloh17:
	ldr	x28, [x28, _STRIPE_R5C_PARTIAL_STRIPE@GOTPAGEOFF]
	ldr	w0, [x28]
	mov	x1, x21
	bl	_test_bit
Lloh18:
	adrp	x27, _STRIPE_R5C_FULL_STRIPE@GOTPAGE
Lloh19:
	ldr	x27, [x27, _STRIPE_R5C_FULL_STRIPE@GOTPAGEOFF]
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_18
LBB0_14:
	ldr	w1, [x20, #16]
	mov	x0, x22
	bl	_r5c_tree_index
	mov	x24, x0
	add	x23, x19, #8
	mov	x0, x23
	bl	_spin_lock
	add	x25, x19, #12
	mov	x0, x25
	mov	x1, x24
	bl	_radix_tree_lookup_slot
	mov	x26, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x26
	mov	x1, x23
	bl	_radix_tree_deref_slot_protected
Lloh20:
	adrp	x8, _R5C_RADIX_COUNT_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R5C_RADIX_COUNT_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	lsr	x9, x0, x8
	subs	x9, x9, #1
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x25
	mov	x1, x24
	bl	_radix_tree_delete
	b	LBB0_17
LBB0_16:
	lsl	x2, x9, x8
	mov	x0, x25
	mov	x1, x26
	bl	_radix_tree_replace_slot
LBB0_17:
	mov	x0, x23
	bl	_spin_unlock
LBB0_18:
	ldr	w0, [x28]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_20
; %bb.19:
	add	x23, x22, #8
	mov	x0, x23
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x0, x22, #12
	bl	_atomic_dec
	mov	x0, x23
	bl	_atomic_dec
LBB0_20:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_and_clear_bit
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x22
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x0, x22, #4
	bl	_atomic_dec
	mov	x0, x22
	bl	_atomic_dec
LBB0_22:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_r5l_append_flush_payload
Lloh23:
	adrp	x8, _STRIPE_SYNC_REQUESTED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STRIPE_SYNC_REQUESTED@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_24
; %bb.23:
Lloh26:
	adrp	x8, _STRIPE_HANDLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STRIPE_HANDLE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x21
	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
	b	_set_bit
LBB0_24:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_R5_InJournal,4,2               ; @R5_InJournal
	.comm	_STRIPE_R5C_CACHING,4,2         ; @STRIPE_R5C_CACHING
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ; @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_R5_Overlap,4,2                 ; @R5_Overlap
	.comm	_STRIPE_FULL_WRITE,4,2          ; @STRIPE_FULL_WRITE
	.comm	_MaxSector,4,2                  ; @MaxSector
	.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	_STRIPE_SYNC_REQUESTED,4,2      ; @STRIPE_SYNC_REQUESTED
	.comm	_STRIPE_HANDLE,4,2              ; @STRIPE_HANDLE
.subsections_via_symbols
