	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_thread_groups
_alloc_thread_groups:                   ## @alloc_thread_groups
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %r13
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, (%rcx)
	testl	%esi, %esi
	je	LBB0_14
## %bb.1:
	movl	%esi, %ebx
	xorl	%eax, %eax
	callq	_num_possible_nodes
	movl	%eax, (%r13)
	movl	%ebx, %ecx
	shll	$4, %ecx
	leal	(%rcx,%rcx,2), %edi
	movq	_GFP_NOIO@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %esi
	callq	_kcalloc
	movq	%rax, %r14
	movl	(%r13), %edi
	movl	(%r12), %edx
	movl	$48, %esi
	callq	_kcalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	testq	%r14, %r14
	je	LBB0_15
## %bb.3:
	cmpl	$0, (%r13)
	jle	LBB0_17
## %bb.4:
	movq	%rax, %r12
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	_NR_STRIPE_HASH_LOCKS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	leaq	(%rbx,%rbx,2), %r13
	shlq	$4, %r13
	leaq	(%r12,%r13), %rdi
	addq	$44, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r12,%r13), %rdi
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	leaq	(%rax,%rax,2), %r14
	shlq	$4, %r14
	addq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12,%r13)
	movq	%r14, 24(%r12,%r13)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r12,%r13), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	(%r12,%r13), %rax
	addq	$24, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rbx
	shlq	$4, %rbx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 16(%r14,%rbx)
	leaq	(%r14,%rbx), %rdi
	addq	$8, %rdi
	movq	_raid5_do_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	cmpl	$0, (%r15)
	movq	%r15, %r13
	jle	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	addq	%rbx, %r14
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r14), %rdi
	addq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %r15
	jl	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	cmpq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	movq	%r13, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	jmp	LBB0_5
LBB0_14:
	movl	$0, (%r13)
	movq	$0, (%r15)
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
	movq	(%r15), %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_18:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_raid5_do_work,4,2              ## @raid5_do_work
	.comm	_NR_STRIPE_HASH_LOCKS,4,2       ## @NR_STRIPE_HASH_LOCKS
	.no_dead_strip	_alloc_thread_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_thread_groups
_alloc_thread_groups:                   ; @alloc_thread_groups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x4
	mov	x21, x2
	str	x0, [sp, #48]                   ; 8-byte Folded Spill
	str	w1, [x3]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x23, x1
	bl	_num_possible_nodes
	mov	x1, x0
	str	w0, [x21]
	add	w8, w23, w23, lsl #1
	lsl	w0, w8, #4
Lloh0:
	adrp	x19, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GFP_NOIO@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_kcalloc
	mov	x24, x0
	ldr	w0, [x21]
	ldr	w2, [x19]
	mov	w1, #48
	bl	_kcalloc
	str	x0, [x20]
	cmp	x0, #0
	ccmp	x24, #0, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x24
	bl	_kfree
	ldr	x0, [x20]
	bl	_kfree
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_3:
	mov	w0, #0
	str	wzr, [x21]
	str	xzr, [x20]
	b	LBB0_16
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.5:
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x19, #0
	sxtw	x8, w23
	stp	x8, x21, [sp, #32]              ; 16-byte Folded Spill
	mov	w26, #48
Lloh5:
	adrp	x27, _raid5_do_work@GOTPAGE
Lloh6:
	ldr	x27, [x27, _raid5_do_work@GOTPAGEOFF]
Lloh7:
	adrp	x28, _NR_STRIPE_HASH_LOCKS@GOTPAGE
Lloh8:
	ldr	x28, [x28, _NR_STRIPE_HASH_LOCKS@GOTPAGEOFF]
	mov	w22, w23
	stp	x24, x23, [sp, #8]              ; 16-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	madd	x25, x19, x26, x0
	add	x0, x25, #44
	bl	_INIT_LIST_HEAD
	add	x0, x25, #40
	bl	_INIT_LIST_HEAD
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	str	x8, [x25, #32]
	str	x19, [sp, #56]                  ; 8-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	mul	x8, x19, x8
	madd	x20, x8, x26, x24
	mov	x19, x25
	str	x20, [x19, #24]!
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	madd	x8, x23, x26, x20
	str	x25, [x8, #16]
	add	x0, x8, #8
	ldr	w1, [x27]
	bl	_INIT_WORK
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x21, #0
	mov	x24, #0
	madd	x20, x23, x26, x20
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20]
	add	x0, x8, x21
	bl	_INIT_LIST_HEAD
	add	x24, x24, #1
	ldrsw	x8, [x28]
	add	x21, x21, #4
	cmp	x24, x8
	b.lt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x23, #1
	cmp	x23, x22
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x20, [x19]
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x19, [sp, #56]                  ; 8-byte Folded Reload
	add	x19, x19, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8]
	cmp	x19, x8
	b.ge	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	x23, x8, [sp, #16]              ; 16-byte Folded Reload
	ldr	x0, [x8]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_6
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_raid5_do_work,4,2              ; @raid5_do_work
	.comm	_NR_STRIPE_HASH_LOCKS,4,2       ; @NR_STRIPE_HASH_LOCKS
	.no_dead_strip	_alloc_thread_groups
.subsections_via_symbols
