	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid_set_alloc
_raid_set_alloc:                        ## @raid_set_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	%edx, (%rsi)
	jae	LBB0_1
## %bb.3:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_mddev_init
	movl	%r15d, (%r13)
	movq	$0, 64(%r13)
	movq	%r14, 56(%r13)
	movq	%r12, 48(%r13)
	movl	$256, 4(%r13)                   ## imm = 0x100
	movl	%r15d, 16(%r13)
	movq	4(%r12), %xmm0                  ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, 32(%r13)
	movq	$0, 24(%r13)
	movq	_MaxSector@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movl	%r15d, %r14d
	shlq	$2, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_md_rdev_init
	addq	$4, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_6
## %bb.7:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
LBB0_2:
	movq	%rcx, (%r14)
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient number of devices"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dev,4,2                        ## @dev
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate raid context"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MaxSector,4,2                  ## @MaxSector
	.no_dead_strip	_raid_set_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid_set_alloc
_raid_set_alloc:                        ; @raid_set_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w8, [x1]
	cmp	w8, w2
	b.hs	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_struct_size
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	add	x0, x0, #16
	bl	_mddev_init
	mov	x23, #0
	mov	w8, #256
	stp	w20, w8, [x21]
	stp	x19, xzr, [x21, #56]
	str	x22, [x21, #48]
	str	w20, [x21, #16]
	ldur	d0, [x22, #4]
	add	x8, x21, #32
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
	str	xzr, [x21, #24]
Lloh6:
	adrp	x8, _MaxSector@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MaxSector@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21, #20]
	mov	w8, w20
	lsl	x19, x8, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x23
	bl	_md_rdev_init
	add	x23, x23, #4
	cmp	x19, x23
	b.ne	LBB0_3
; %bb.4:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	adrp	x9, l_.str@PAGE
Lloh12:
	add	x9, x9, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	adrp	x9, l_.str.1@PAGE
Lloh16:
	add	x9, x9, l_.str.1@PAGEOFF
LBB0_7:
	str	x9, [x19]
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient number of devices"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dev,4,2                        ; @dev
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate raid context"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MaxSector,4,2                  ; @MaxSector
	.no_dead_strip	_raid_set_alloc
.subsections_via_symbols
