	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_stripe
_alloc_stripe:                          ## @alloc_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
	movq	%rcx, %r12
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_kmem_cache_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	56(%rax), %rdi
	callq	_spin_lock_init
	leaq	52(%r14), %rdi
	callq	_spin_lock_init
	leaq	48(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	addq	$32, %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, 24(%r14)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.2:
	movl	%r13d, %r13d
	shlq	$4, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	leaq	(%r15,%r12), %rbx
	leaq	(%r15,%r12), %rdi
	addq	$12, %rdi
	leaq	(%r15,%r12), %rsi
	addq	$8, %rsi
	movl	$1, %edx
	callq	_bio_init
	leaq	(%r15,%r12), %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_bio_init
	addq	$16, %r12
	cmpq	%r12, %r13
	jne	LBB0_3
LBB0_4:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_raid5_has_ppl
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_alloc_page
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_free_stripe
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxSector,4,2                  ## @MaxSector
	.no_dead_strip	_alloc_stripe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_stripe
_alloc_stripe:                          ; @alloc_stripe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	bl	_kmem_cache_zalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x0, x19, #56
	bl	_spin_lock_init
	add	x0, x19, #52
	bl	_spin_lock_init
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	add	x0, x19, #44
	bl	_INIT_LIST_HEAD
	add	x0, x19, #40
	bl	_INIT_LIST_HEAD
	add	x0, x19, #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	mov	w1, #1
	bl	_atomic_set
	str	x22, [x19, #24]
Lloh0:
	adrp	x8, _MaxSector@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	w8, w23
	lsl	x25, x8, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x23, x8, x24
	add	x0, x23, #12
	add	x1, x23, #8
	mov	w2, #1
	bl	_bio_init
	add	x0, x23, #4
	mov	x1, x23
	mov	w2, #1
	bl	_bio_init
	add	x24, x24, #16
	cmp	x25, x24
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x22
	bl	_raid5_has_ppl
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_alloc_page
	str	w0, [x19]
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_free_stripe
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxSector,4,2                  ; @MaxSector
	.no_dead_strip	_alloc_stripe
.subsections_via_symbols
