	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raid5_release_stripe           ## -- Begin function raid5_release_stripe
	.p2align	4, 0x90
_raid5_release_stripe:                  ## @raid5_release_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_atomic_add_unless
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_STRIPE_ON_RELEASE_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_atomic_dec_and_lock_irqsave
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%rbx), %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_do_release_stripe
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_release_inactive_stripe_list
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addq	$8, %rbx
	leaq	16(%r14), %rsi
	movq	%rbx, %rdi
	callq	_llist_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_md_wakeup_thread               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STRIPE_ON_RELEASE_LIST,4,2     ## @STRIPE_ON_RELEASE_LIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_raid5_release_stripe           ; -- Begin function raid5_release_stripe
	.p2align	2
_raid5_release_stripe:                  ; @raid5_release_stripe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #16]
	add	x21, x0, #4
	mov	x0, x21
	mov	w1, #-1
	mov	w2, #1
	bl	_atomic_add_unless
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _STRIPE_ON_RELEASE_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRIPE_ON_RELEASE_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_and_set_bit
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_atomic_dec_and_lock_irqsave
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
	ldr	w21, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_do_release_stripe
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_release_inactive_stripe_list
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	add	x0, x20, #8
	add	x1, x19, #16
	bl	_llist_add
	cbz	w0, LBB0_5
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_md_wakeup_thread
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRIPE_ON_RELEASE_LIST,4,2     ; @STRIPE_ON_RELEASE_LIST
.subsections_via_symbols
