	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_alloc_ctxt_rcv_groups     ## -- Begin function hfi1_alloc_ctxt_rcv_groups
	.p2align	4, 0x90
_hfi1_alloc_ctxt_rcv_groups:            ## @hfi1_alloc_ctxt_rcv_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r13
	movl	(%rdi), %eax
	movl	24(%rdi), %ecx
	cltd
	idivl	(%r13)
	movl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$8, %esi
	callq	_kcalloc_node
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.3:
	movl	4(%rbx), %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rsi
	movl	(%r13), %ecx
	movl	%ecx, (%rax)
	movl	%r14d, 4(%rax)
	movq	%rax, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_tid_group_add_tail
	cmpl	$1, %r15d
	je	LBB0_7
## %bb.4:
	movl	%r15d, %ebx
	decq	%rbx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	%eax, %r14d
	movq	16(%r15), %rcx
	leaq	(%rcx,%r13), %rdi
	movl	%eax, (%rcx,%r13)
	movl	%r14d, 4(%rcx,%r13)
	movq	%r12, %rsi
	callq	_tid_group_add_tail
	addq	$8, %r13
	decq	%rbx
	jne	LBB0_5
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_alloc_ctxt_rcv_groups     ; -- Begin function hfi1_alloc_ctxt_rcv_groups
	.p2align	2
_hfi1_alloc_ctxt_rcv_groups:            ; @hfi1_alloc_ctxt_rcv_groups
	.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	x22, [x0, #32]
	ldr	w8, [x0]
	ldr	w9, [x22]
	sdiv	w21, w8, w9
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w3, [x0, #24]
	mov	x0, x21
	mov	w1, #8
	bl	_kcalloc_node
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	w23, [x19, #4]
	add	x20, x19, #8
	ldr	w8, [x22]
	stp	w8, w23, [x0]
	mov	x1, x20
	bl	_tid_group_add_tail
	cmp	w21, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x24, #0
	sub	x21, x21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w23, w8, w23
	ldr	x9, [x19, #16]
	add	x0, x9, x24
	stp	w8, w23, [x0, #8]!
	mov	x1, x20
	bl	_tid_group_add_tail
	add	x24, x24, #8
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
