	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raid5_get_active_stripe        ## -- Begin function raid5_get_active_stripe
	.p2align	4, 0x90
_raid5_get_active_stripe:               ## @raid5_get_active_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_stripe_hash_locks_hash
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_pr_debug
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movslq	%r15d, %r13
	leaq	(,%r13,4), %rax
	movq	16(%r12), %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	%rax, %rdi
	callq	_spin_lock_irq
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	44(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	40(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_R5_INACTIVE_BLOCKED@GOTPCREL(%rip), %r15
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%bl, %esi
	movq	16(%r12), %rax
	movq	%r13, %rbx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	(%rax,%r13,4), %edx
	movl	%r14d, %edi
	callq	_wait_event_lock_irq
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	movl	64(%r12), %edi
	cmpq	$0, (%r12)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %esi
	movq	16(%r12), %rax
	movl	(%rax,%r13,4), %edx
	callq	_wait_event_lock_irq
	movq	56(%r12), %rdx
	subq	-104(%rbp), %rdx                ## 8-byte Folded Reload
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	___find_stripe
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_get_free_stripe
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_R5_DID_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_R5_ALLOC_MORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_r5c_check_stripe_cache_usage
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movl	52(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_r5l_wake_reclaim
	movq	%r14, %r13
	movl	48(%r12), %r14d
	movq	32(%r12), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	movl	8(%r12), %ecx
	leal	(%rcx,%rcx,2), %edx
	leal	(%rcx,%rcx,2), %ecx
	addl	$3, %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movb	$1, %bl
	cmpl	%ecx, %eax
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testl	%eax, %eax
	sete	%bl
	jmp	LBB0_12
LBB0_13:
	movq	%rax, %r14
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_atomic_inc_not_zero
	testl	%eax, %eax
	jne	LBB0_26
## %bb.14:
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	jne	LBB0_25
## %bb.15:
	movq	_STRIPE_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r14), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_inc
LBB0_17:
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	_STRIPE_EXPANDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_20
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_4:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_r5c_check_stripe_cache_usage
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_init_stripe
	movq	%r13, %rdi
	callq	_atomic_inc
	jmp	LBB0_26
LBB0_18:
	xorl	%edi, %edi
LBB0_20:
	callq	_BUG_ON
	movq	32(%r12), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	callq	_list_empty
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_list_del_init
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	leaq	28(%r12), %rdi
	callq	_atomic_inc
LBB0_23:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	decl	(%rax)
	movq	$0, 8(%r13)
LBB0_25:
	movq	%r13, %rdi
	callq	_atomic_inc
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	16(%r12), %rdi
	callq	_spin_unlock_irq
	movq	%r13, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_stripe, sector %llu\n"

	.comm	_R5_INACTIVE_BLOCKED,4,2        ## @R5_INACTIVE_BLOCKED
	.comm	_R5_DID_ALLOC,4,2               ## @R5_DID_ALLOC
	.comm	_R5_ALLOC_MORE,4,2              ## @R5_ALLOC_MORE
	.comm	_STRIPE_HANDLE,4,2              ## @STRIPE_HANDLE
	.comm	_STRIPE_EXPANDING,4,2           ## @STRIPE_EXPANDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raid5_get_active_stripe        ; -- Begin function raid5_get_active_stripe
	.p2align	2
_raid5_get_active_stripe:               ; @raid5_get_active_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
	mov	x24, x4
	mov	x25, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x0, x1
	bl	_stripe_hash_locks_hash
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_debug
	ldr	x8, [x19, #16]
	sxtw	x20, w21
	add	x0, x8, w21, sxtw #2
	bl	_spin_lock_irq
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	sxtw	x28, w22
	add	x27, x19, #44
	add	x21, x19, #40
Lloh2:
	adrp	x22, _R5_INACTIVE_BLOCKED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _R5_INACTIVE_BLOCKED@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	mov	x1, x27
	bl	_test_bit
	cmp	w0, #0
	cset	w1, eq
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x26
	bl	_wait_event_lock_irq
	ldr	w0, [x22]
	mov	x1, x27
	bl	_clear_bit
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, #0
	ldr	w0, [x19, #64]
	ldr	x8, [x19]
	ccmp	x8, #0, #4, eq
	cset	w1, eq
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x20, lsl #2]
	bl	_wait_event_lock_irq
	ldr	x8, [x19, #56]
	sub	x2, x8, x28
	mov	x0, x19
	mov	x1, x23
	bl	___find_stripe
	cbnz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	mov	x1, x27
	bl	_test_bit
	cbnz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_get_free_stripe
	cbnz	x0, LBB0_25
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh4:
	adrp	x8, _R5_DID_ALLOC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R5_DID_ALLOC@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_test_bit
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh7:
	adrp	x8, _R5_ALLOC_MORE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _R5_ALLOC_MORE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x27
	bl	_set_bit
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w25, LBB0_24
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_r5c_check_stripe_cache_usage
	ldr	w0, [x22]
	mov	x1, x27
	bl	_set_bit
	ldr	w0, [x19, #52]
	mov	w1, #0
	bl	_r5l_wake_reclaim
	ldr	w26, [x19, #48]
	ldr	x8, [x19, #32]
	add	x0, x8, x20, lsl #2
	bl	_list_empty
	mov	w1, #0
	cbnz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_atomic_read
	ldr	w8, [x19, #8]
	add	w8, w8, w8, lsl #1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w0, w8, asr #2
	b.ge	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #1
	b	LBB0_2
LBB0_12:
	mov	x26, x0
	bl	_atomic_inc_not_zero
	cbnz	w0, LBB0_26
; %bb.13:
	add	x22, x19, #24
	mov	x0, x22
	bl	_spin_lock
	mov	x0, x26
	bl	_atomic_read
	cbnz	w0, LBB0_23
; %bb.14:
Lloh10:
	adrp	x8, _STRIPE_HANDLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STRIPE_HANDLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x23, x26, #20
	mov	x1, x23
	bl	_test_bit
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_atomic_inc
LBB0_16:
	add	x21, x26, #16
	mov	x0, x21
	bl	_list_empty
	cbz	x0, LBB0_18
; %bb.17:
Lloh13:
	adrp	x8, _STRIPE_EXPANDING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STRIPE_EXPANDING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
LBB0_18:
	bl	_BUG_ON
	ldr	x8, [x19, #32]
	lsl	x24, x20, #2
	add	x0, x8, x24
	bl	_list_empty
	mov	x23, x0
	mov	x0, x21
	bl	_list_del_init
	ldr	x8, [x19, #32]
	add	x0, x8, x24
	bl	_list_empty
	cbz	x0, LBB0_21
; %bb.19:
	cbnz	x23, LBB0_21
; %bb.20:
	add	x0, x19, #28
	bl	_atomic_inc
LBB0_21:
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	str	xzr, [x26, #8]
LBB0_23:
	mov	x0, x26
	bl	_atomic_inc
	mov	x0, x22
	bl	_spin_unlock
	b	LBB0_26
LBB0_24:
	mov	x26, #0
	b	LBB0_26
LBB0_25:
	mov	x26, x0
	mov	x0, x19
	bl	_r5c_check_stripe_cache_usage
	mov	x0, x26
	mov	x1, x23
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_init_stripe
	mov	x0, x26
	bl	_atomic_inc
LBB0_26:
	ldr	x8, [x19, #16]
	add	x0, x8, x20, lsl #2
	bl	_spin_unlock_irq
	mov	x0, x26
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_stripe, sector %llu\n"

	.comm	_R5_INACTIVE_BLOCKED,4,2        ; @R5_INACTIVE_BLOCKED
	.comm	_R5_DID_ALLOC,4,2               ; @R5_DID_ALLOC
	.comm	_R5_ALLOC_MORE,4,2              ; @R5_ALLOC_MORE
	.comm	_STRIPE_HANDLE,4,2              ; @STRIPE_HANDLE
	.comm	_STRIPE_EXPANDING,4,2           ; @STRIPE_EXPANDING
.subsections_via_symbols
