	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r5l_write_stripe               ## -- Begin function r5l_write_stripe
	.p2align	4, 0x90
_r5l_write_stripe:                      ## @r5l_write_stripe
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	cmpq	$0, 56(%rsi)
	je	LBB0_3
LBB0_5:
	movq	_STRIPE_LOG_TRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r14
	movq	64(%rbx), %r15
	movq	_R5_Wantwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	48(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	(%rcx,%rax,4), %rsi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_STRIPE_SYNCING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_STRIPE_R5C_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_WARN_ON
	cmpl	$0, 8(%rbx)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_7
## %bb.8:
	xorl	%r13d, %r13d
	movl	$8, %r12d
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movq	_R5_Wantwrite@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	movslq	8(%rbx), %rax
	addq	$12, %r12
	cmpq	%rax, %r13
	jge	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	48(%rbx), %rsi
	addq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	48(%rbx), %rsi
	addq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incl	-52(%rbp)                       ## 4-byte Folded Spill
	movq	_STRIPE_LOG_TRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	48(%rbx), %rax
	movl	-4(%rax,%r12), %edi
	callq	_kmap_atomic
	movq	%rax, %r15
	movl	28(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_crc32c_le
	movq	48(%rbx), %rcx
	movl	%eax, -8(%rcx,%r12)
	movq	%r15, %rdi
	movq	_R5_Wantwrite@GOTPCREL(%rip), %r15
	callq	_kunmap_atomic
	jmp	LBB0_13
LBB0_7:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	movq	16(%rbx), %r15
	sarq	$63, %r15
	addl	$2, %r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %eax
	subl	%r15d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_STRIPE_LOG_TRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_set_bit
	movq	_STRIPE_DELAYED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	leaq	36(%rbx), %rdi
	callq	_atomic_inc
	leaq	16(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	incl	%r12d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	addb	$-9, %cl
	shll	%cl, %r12d
	movq	(%r14), %rax
	movq	_R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_r5l_has_free_space
	movl	%r12d, %r13d
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_25
LBB0_18:
	movq	_R5C_LOG_CRITICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	24(%rbx), %rax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_20
LBB0_25:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_r5l_add_no_space_stripe
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_r5l_wake_reclaim
	jmp	LBB0_26
LBB0_20:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_r5l_has_free_space
	testl	%eax, %eax
	je	LBB0_21
LBB0_16:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	callq	_r5l_log_stripe
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_24
## %bb.17:
	leaq	20(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	addq	$32, %rbx
	addq	$24, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irq
LBB0_24:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_26:
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_21:
	movq	24(%rbx), %rax
	cmpq	8(%r14), %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_24
LBB0_23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_r5l_add_no_space_stripe
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_R5_Wantwrite,4,2               ## @R5_Wantwrite
	.comm	_STRIPE_SYNCING,4,2             ## @STRIPE_SYNCING
	.comm	_STRIPE_LOG_TRAPPED,4,2         ## @STRIPE_LOG_TRAPPED
	.comm	_STRIPE_R5C_CACHING,4,2         ## @STRIPE_R5C_CACHING
	.comm	_R5_InJournal,4,2               ## @R5_InJournal
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_STRIPE_DELAYED,4,2             ## @STRIPE_DELAYED
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ## @R5C_JOURNAL_MODE_WRITE_THROUGH
	.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	_r5l_write_stripe               ; -- Begin function r5l_write_stripe
	.p2align	2
_r5l_write_stripe:                      ; @r5l_write_stripe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #56]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _STRIPE_LOG_TRAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRIPE_LOG_TRAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #40
	bl	_clear_bit
LBB0_3:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x19, x0
	ldr	x21, [x20, #64]
Lloh6:
	adrp	x24, _R5_Wantwrite@GOTPAGE
Lloh7:
	ldr	x24, [x24, _R5_Wantwrite@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	x8, [x20, #48]
	ldr	x9, [x20]
	mov	w10, #12
	madd	x8, x9, x10, x8
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.6:
Lloh8:
	adrp	x8, _STRIPE_SYNCING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STRIPE_SYNCING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x22, x20, #40
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_2
; %bb.7:
Lloh11:
	adrp	x8, _STRIPE_R5C_CACHING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STRIPE_R5C_CACHING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	bl	_WARN_ON
	ldr	w8, [x20, #8]
	cmp	w8, #1
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_14
; %bb.8:
	mov	x26, #0
	mov	x27, #0
	mov	w25, #0
Lloh14:
	adrp	x28, _R5_InJournal@GOTPAGE
Lloh15:
	ldr	x28, [x28, _R5_InJournal@GOTPAGEOFF]
Lloh16:
	adrp	x21, _STRIPE_LOG_TRAPPED@GOTPAGE
Lloh17:
	ldr	x21, [x21, _STRIPE_LOG_TRAPPED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x20, #8]
	add	x26, x26, #12
	cmp	x27, x8
	b.ge	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x8, [x20, #48]
	add	x8, x8, x26
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x28]
	ldr	x8, [x20, #48]
	add	x8, x8, x26
	add	x1, x8, #8
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w25, w25, #1
	ldr	w0, [x21]
	mov	x1, x22
	bl	_test_bit
	cbnz	x0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #48]
	add	x8, x8, x26
	ldr	w0, [x8, #4]
	bl	_kmap_atomic
	mov	x23, x0
	ldr	w0, [x19, #28]
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_crc32c_le
	ldr	x8, [x20, #48]
	str	w0, [x8, x26]
	mov	x0, x23
	bl	_kunmap_atomic
	b	LBB0_9
LBB0_14:
	mov	w25, #0
LBB0_15:
	ldr	x8, [x20, #16]
	asr	x8, x8, #63
	add	w23, w8, #2
	sub	w24, w25, w23
Lloh21:
	adrp	x8, _STRIPE_LOG_TRAPPED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STRIPE_LOG_TRAPPED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
Lloh24:
	adrp	x8, _STRIPE_DELAYED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STRIPE_DELAYED@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	add	x0, x20, #36
	bl	_atomic_inc
	add	x22, x19, #16
	mov	x0, x22
	bl	_mutex_lock
	add	w8, w25, #1
Lloh27:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	sub	w9, w9, #9
	lsl	w25, w8, w9
	ldr	x8, [x19]
Lloh30:
	adrp	x9, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x25
	bl	_r5l_has_free_space
	cbnz	w0, LBB0_22
	b	LBB0_20
LBB0_17:
Lloh33:
	adrp	x8, _R5C_LOG_CRITICAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _R5C_LOG_CRITICAL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_test_bit
	cbz	x0, LBB0_21
; %bb.18:
	ldr	x8, [x20, #24]
Lloh36:
	adrp	x9, _MaxSector@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:
	mov	w25, #0
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_r5l_add_no_space_stripe
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x25
	bl	_r5l_wake_reclaim
	b	LBB0_25
LBB0_21:
	mov	x0, x19
	mov	x1, x25
	bl	_r5l_has_free_space
	cbz	w0, LBB0_26
LBB0_22:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	bl	_r5l_log_stripe
	cbz	w0, LBB0_24
; %bb.23:
	add	x21, x19, #20
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, x20, #32
	add	x1, x19, #24
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irq
LBB0_24:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_25:
	mov	w0, #0
	b	LBB0_4
LBB0_26:
	ldr	x8, [x20, #24]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.27:
	bl	_BUG
	b	LBB0_24
LBB0_28:
	mov	x0, x19
	mov	x1, x20
	bl	_r5l_add_no_space_stripe
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_R5_Wantwrite,4,2               ; @R5_Wantwrite
	.comm	_STRIPE_SYNCING,4,2             ; @STRIPE_SYNCING
	.comm	_STRIPE_LOG_TRAPPED,4,2         ; @STRIPE_LOG_TRAPPED
	.comm	_STRIPE_R5C_CACHING,4,2         ; @STRIPE_R5C_CACHING
	.comm	_R5_InJournal,4,2               ; @R5_InJournal
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_STRIPE_DELAYED,4,2             ; @STRIPE_DELAYED
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ; @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_R5C_LOG_CRITICAL,4,2           ; @R5C_LOG_CRITICAL
	.comm	_MaxSector,8,3                  ; @MaxSector
.subsections_via_symbols
