	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_log_stripe
_r5l_log_stripe:                        ## @r5l_log_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
	movl	%ecx, %ebx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r12
	movq	%rdi, %r13
	shll	$3, %edx
	leal	(%rdx,%rbx,4), %esi
	addl	$4, %esi
	callq	_r5l_get_meta
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rbx
	movq	_STRIPE_R5C_PREFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	52(%r12), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, (%rbx)
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.4:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	_R5_Wantwrite@GOTPCREL(%rip), %r14
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_R5LOG_PAYLOAD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_raid5_compute_blocknr
	movq	40(%r12), %rcx
	movl	-4(%rcx,%r15), %ecx
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_r5l_append_payload_meta
	movq	40(%r12), %rax
	movl	-8(%rax,%r15), %esi
	movq	%r13, %rdi
	callq	_r5l_append_payload_page
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$12, %r15
	cmpq	%rax, %rbx
	jge	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	40(%r12), %rsi
	addq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_R5_InJournal@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r12), %rsi
	addq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r12), %eax
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r12), %eax
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_R5_WantFUA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r12), %rsi
	addq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	_R5C_JOURNAL_MODE_WRITE_BACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax)
	jmp	LBB0_12
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$1, %eax
	je	LBB0_17
## %bb.15:
	cmpl	$2, %eax
	jne	LBB0_19
## %bb.16:
	movq	_R5LOG_PAYLOAD_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%r12), %edx
	movq	40(%r12), %rax
	movslq	4(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %ecx
	movslq	8(%r12), %rdi
	leaq	(%rdi,%rdi,2), %rdi
	movl	4(%rax,%rdi,4), %r8d
	movq	%r13, %rdi
	movl	$1, %r9d
	callq	_r5l_append_payload_meta
	movq	40(%r12), %rax
	movslq	4(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	callq	_r5l_append_payload_page
	movq	40(%r12), %rax
	movslq	8(%r12), %rcx
	jmp	LBB0_18
LBB0_17:
	movq	_R5LOG_PAYLOAD_PARITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%r12), %edx
	movq	40(%r12), %rax
	movslq	4(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %ecx
	movq	%r13, %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_r5l_append_payload_meta
	movq	40(%r12), %rax
	movslq	4(%r12), %rcx
LBB0_18:
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r13, %rdi
	callq	_r5l_append_payload_page
	jmp	LBB0_20
LBB0_19:
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_BUG_ON
LBB0_20:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	32(%r12), %rdi
	leaq	16(%r14), %rsi
	callq	_list_add_tail
	leaq	12(%r14), %rdi
	callq	_atomic_inc
	movq	%r14, 24(%r12)
	movq	(%r13), %rax
	movq	_R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.21:
	movl	16(%r12), %eax
	movq	_MaxSector@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.22:
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movl	8(%r14), %eax
	movl	%eax, 16(%r12)
	leaq	12(%r13), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	leaq	16(%r13), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_atomic_inc
LBB0_23:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRIPE_R5C_PREFLUSH,4,2        ## @STRIPE_R5C_PREFLUSH
	.comm	_R5_Wantwrite,4,2               ## @R5_Wantwrite
	.comm	_R5_InJournal,4,2               ## @R5_InJournal
	.comm	_R5_WantFUA,4,2                 ## @R5_WantFUA
	.comm	_R5C_JOURNAL_MODE_WRITE_BACK,8,3 ## @R5C_JOURNAL_MODE_WRITE_BACK
	.comm	_R5LOG_PAYLOAD_DATA,4,2         ## @R5LOG_PAYLOAD_DATA
	.comm	_R5LOG_PAYLOAD_PARITY,4,2       ## @R5LOG_PAYLOAD_PARITY
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ## @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_MaxSector,4,2                  ## @MaxSector
	.no_dead_strip	_r5l_log_stripe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_log_stripe
_r5l_log_stripe:                        ; @r5l_log_stripe
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x3
	mov	x20, x1
	mov	x19, x0
	lsl	w8, w3, #2
	add	w8, w8, w2, lsl #3
	add	w1, w8, #4
	bl	_r5l_get_meta
	cbnz	w0, LBB0_24
; %bb.1:
	ldr	x24, [x19, #24]
Lloh0:
	adrp	x8, _STRIPE_R5C_PREFLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRIPE_R5C_PREFLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #52
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x24]
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.4:
	mov	x25, #0
	mov	x22, #0
Lloh3:
	adrp	x26, _R5_Wantwrite@GOTPAGE
Lloh4:
	ldr	x26, [x26, _R5_Wantwrite@GOTPAGEOFF]
Lloh5:
	adrp	x27, _R5_InJournal@GOTPAGE
Lloh6:
	ldr	x27, [x27, _R5_InJournal@GOTPAGEOFF]
Lloh7:
	adrp	x28, _R5LOG_PAYLOAD_DATA@GOTPAGE
Lloh8:
	ldr	x28, [x28, _R5LOG_PAYLOAD_DATA@GOTPAGEOFF]
	movi.2s	v8, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w23, [x28]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_raid5_compute_blocknr
	mov	x2, x0
	ldr	x8, [x20, #40]
	add	x8, x8, x25
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	x1, x23
	mov	w4, #0
	mov	w5, #0
	bl	_r5l_append_payload_meta
	ldr	x8, [x20, #40]
	ldr	w1, [x8, x25]
	mov	x0, x19
	bl	_r5l_append_payload_page
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x25, x25, #12
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20, #40]
	add	x8, x8, x25
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x27]
	ldr	x8, [x20, #40]
	add	x8, x8, x25
	add	x1, x8, #8
	bl	_test_bit
	cbnz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #4]
	cmp	x22, x8
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20, #8]
	cmp	x22, x8
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _R5_WantFUA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R5_WantFUA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x20, #40]
	add	x8, x8, x25
	add	x1, x8, #8
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _R5C_JOURNAL_MODE_WRITE_BACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _R5C_JOURNAL_MODE_WRITE_BACK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	str	d8, [x24]
	b	LBB0_5
LBB0_14:
	cmp	w21, #1
	b.eq	LBB0_17
; %bb.15:
	cmp	w21, #2
	b.ne	LBB0_19
; %bb.16:
Lloh15:
	adrp	x8, _R5LOG_PAYLOAD_PARITY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R5LOG_PAYLOAD_PARITY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x20, #48]
	ldr	x8, [x20, #40]
	mov	w21, #12
	ldpsw	x9, x10, [x20, #4]
	madd	x9, x9, x21, x8
	ldr	w3, [x9, #4]
	madd	x8, x10, x21, x8
	ldr	w4, [x8, #4]
	mov	x0, x19
	mov	w5, #1
	bl	_r5l_append_payload_meta
	ldr	x8, [x20, #40]
	ldrsw	x9, [x20, #4]
	mul	x9, x9, x21
	ldr	w1, [x8, x9]
	mov	x0, x19
	bl	_r5l_append_payload_page
	ldr	x8, [x20, #40]
	ldrsw	x9, [x20, #8]
	b	LBB0_18
LBB0_17:
Lloh18:
	adrp	x8, _R5LOG_PAYLOAD_PARITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R5LOG_PAYLOAD_PARITY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x20, #48]
	ldr	x8, [x20, #40]
	ldrsw	x9, [x20, #4]
	mov	w21, #12
	madd	x8, x9, x21, x8
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #0
	bl	_r5l_append_payload_meta
	ldr	x8, [x20, #40]
	ldrsw	x9, [x20, #4]
LBB0_18:
	mul	x9, x9, x21
	ldr	w1, [x8, x9]
	mov	x0, x19
	bl	_r5l_append_payload_page
	b	LBB0_20
LBB0_19:
	cmp	w21, #0
	cset	w0, ne
	bl	_BUG_ON
LBB0_20:
	add	x0, x20, #32
	add	x1, x24, #16
	bl	_list_add_tail
	add	x0, x24, #12
	bl	_atomic_inc
	str	x24, [x20, #24]
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _R5C_JOURNAL_MODE_WRITE_THROUGH@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.21:
	ldr	w8, [x20, #16]
Lloh24:
	adrp	x9, _MaxSector@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MaxSector@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.22:
	add	x21, x20, #12
	mov	x0, x21
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x24, #8]
	str	w8, [x20, #16]
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irq
	add	x1, x19, #16
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irq
	add	x0, x19, #8
	bl	_atomic_inc
LBB0_23:
	mov	w0, #0
LBB0_24:
	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STRIPE_R5C_PREFLUSH,4,2        ; @STRIPE_R5C_PREFLUSH
	.comm	_R5_Wantwrite,4,2               ; @R5_Wantwrite
	.comm	_R5_InJournal,4,2               ; @R5_InJournal
	.comm	_R5_WantFUA,4,2                 ; @R5_WantFUA
	.comm	_R5C_JOURNAL_MODE_WRITE_BACK,8,3 ; @R5C_JOURNAL_MODE_WRITE_BACK
	.comm	_R5LOG_PAYLOAD_DATA,4,2         ; @R5LOG_PAYLOAD_DATA
	.comm	_R5LOG_PAYLOAD_PARITY,4,2       ; @R5LOG_PAYLOAD_PARITY
	.comm	_R5C_JOURNAL_MODE_WRITE_THROUGH,8,3 ; @R5C_JOURNAL_MODE_WRITE_THROUGH
	.comm	_MaxSector,4,2                  ; @MaxSector
	.no_dead_strip	_r5l_log_stripe
.subsections_via_symbols
