	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_pervl_scs                 ## -- Begin function init_pervl_scs
	.p2align	4, 0x90
_init_pervl_scs:                        ## @init_pervl_scs
	.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, %r15
	movq	40(%rdi), %rbx
	movq	_SC_VL15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	16(%rdi), %ecx
	callq	_sc_alloc
	movq	(%r15), %rcx
	movq	%rax, 240(%rcx)
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rax, %rdi
	callq	_hfi1_init_ctxt
	movq	_OPA_MTU_2048@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_enum_to_mtu
	movq	(%r15), %rcx
	movl	%eax, 248(%rcx)
	movl	16(%r15), %ecx
	movl	32(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc_node
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_27
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rcx
	movq	240(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	_num_vls@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_SC_KERNEL@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	16(%r15), %ecx
	movq	%r15, %rdi
	callq	_sc_alloc
	movq	(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx,%r13,8)
	incq	%r13
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rdi
	callq	_hfi1_init_ctxt
	movq	_hfi1_max_mtu@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
LBB0_6:
	movq	_INIT_SC_PER_VL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.7:
	movslq	%eax, %rbx
	movq	_SC_KERNEL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	16(%r15), %ecx
	movq	%r15, %rdi
	callq	_sc_alloc
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx,8)
	movq	8(%r15), %rax
	movq	8(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	callq	_hfi1_init_ctxt
	movslq	(%r13), %rax
	movslq	(%r12), %rcx
	imulq	%rax, %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_8
LBB0_10:
	movq	(%r15), %rax
	movq	240(%rax), %rdi
	callq	_sc_enable
	movq	(%r15), %rax
	movq	240(%rax), %rax
	movl	(%rax), %ebx
	movq	_CHECK_VL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_SC
	movl	$255, %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_write_kctxt_csr
	movq	(%r15), %rax
	movq	240(%rax), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_dd_dev_info
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r13), %rdi
	callq	_sc_enable
	movq	(%r15), %rax
	movq	(%rax,%r13), %rax
	movl	(%rax), %ebx
	movq	_CHECK_VL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SC
	movl	$32768, %ecx                    ## imm = 0x8000
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_write_kctxt_csr
	incq	%r14
	movslq	(%r12), %rdx
	addq	$16, %r13
	cmpq	%rdx, %r14
	jl	LBB0_12
## %bb.13:
	movq	_INIT_SC_PER_VL@GOTPCREL(%rip), %r13
	movq	_CHECK_VL@GOTPCREL(%rip), %r14
LBB0_14:
	movl	(%r13), %eax
	imull	%edx, %eax
	cmpl	%eax, %edx
	jge	LBB0_15
## %bb.16:
	movslq	%edx, %rbx
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	leaq	1(%rbx), %r14
	movq	8(%rax,%rbx,8), %rdi
	callq	_sc_enable
	movq	8(%r15), %rax
	movq	8(%rax,%rbx,8), %rax
	movl	(%rax), %ebx
	movl	(%r12), %edi
	callq	_SC
	movl	$32768, %ecx                    ## imm = 0x8000
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_write_kctxt_csr
	movslq	(%r13), %rax
	movq	_num_vls@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	imulq	%rdx, %rax
	movq	%r14, %rbx
	cmpq	%rax, %r14
	jl	LBB0_17
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	_num_vls@GOTPCREL(%rip), %r12
	jmp	LBB0_19
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_19:
	movq	(%rax), %rsi
	decq	%rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_pio_map_init
	testq	%rax, %rax
	je	LBB0_29
LBB0_20:
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.21:
	movq	(%r15), %rcx
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx), %rdi
	callq	_sc_free
	movq	(%r15), %rcx
	movq	$0, (%rcx,%rbx)
	incq	%r14
	movslq	(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_22
LBB0_23:
	movq	_INIT_SC_PER_VL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	imull	%eax, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_26
## %bb.24:
	movslq	%eax, %rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	8(%rax,%rbx,8), %rdi
	incq	%rbx
	callq	_sc_free
	movslq	(%r14), %rax
	movslq	(%r12), %rcx
	imulq	%rax, %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_25
LBB0_26:
	movq	8(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_27:
	movq	(%r15), %rax
	movq	240(%rax), %rdi
	callq	_sc_free
LBB0_28:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_VL15,4,2                    ## @SC_VL15
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OPA_MTU_2048,4,2               ## @OPA_MTU_2048
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_num_vls,4,2                    ## @num_vls
	.comm	_SC_KERNEL,4,2                  ## @SC_KERNEL
	.comm	_hfi1_max_mtu,4,2               ## @hfi1_max_mtu
	.comm	_INIT_SC_PER_VL,4,2             ## @INIT_SC_PER_VL
	.comm	_CHECK_VL,4,2                   ## @CHECK_VL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using send context %u(%u) for VL15\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_pervl_scs                 ; -- Begin function init_pervl_scs
	.p2align	2
_init_pervl_scs:                        ; @init_pervl_scs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, _SC_VL15@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SC_VL15@GOTPAGEOFF]
	ldr	x23, [x0, #40]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w3, [x0, #16]
	bl	_sc_alloc
	ldr	x8, [x19]
	str	x0, [x8, #240]
	cbz	x0, LBB0_29
; %bb.1:
	bl	_hfi1_init_ctxt
Lloh3:
	adrp	x8, _OPA_MTU_2048@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPA_MTU_2048@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_enum_to_mtu
	ldr	x8, [x19]
	str	w0, [x8, #248]
	ldr	w0, [x19, #32]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	w1, #8
	bl	_kcalloc_node
	str	x0, [x19, #8]
	cbz	x0, LBB0_28
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8, #240]
	str	x8, [x0]
Lloh9:
	adrp	x21, _num_vls@GOTPAGE
Lloh10:
	ldr	x21, [x21, _num_vls@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh11:
	adrp	x22, _INIT_SC_PER_VL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _INIT_SC_PER_VL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x20, #0
	mov	x26, #0
Lloh13:
	adrp	x24, _SC_KERNEL@GOTPAGE
Lloh14:
	ldr	x24, [x24, _SC_KERNEL@GOTPAGEOFF]
Lloh15:
	adrp	x25, _hfi1_max_mtu@GOTPAGE
Lloh16:
	ldr	x25, [x25, _hfi1_max_mtu@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	x0, x19
	bl	_sc_alloc
	ldr	x8, [x19]
	str	x0, [x8, x20]
	cbz	x0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	add	x27, x26, #1
	add	x8, x8, x26, lsl #3
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
	bl	_hfi1_init_ctxt
	ldr	w8, [x25]
	ldr	x9, [x19]
	add	x9, x9, x20
	str	w8, [x9, #8]
	ldrsw	x8, [x21]
	add	x20, x20, #16
	mov	x26, x27
	cmp	x27, x8
	b.lt	LBB0_4
; %bb.6:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_7:
	ldr	w9, [x22]
	mul	w9, w8, w9
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.8:
	sxtw	x8, w8
	add	x20, x8, #1
Lloh17:
	adrp	x24, _SC_KERNEL@GOTPAGE
Lloh18:
	ldr	x24, [x24, _SC_KERNEL@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	x0, x19
	bl	_sc_alloc
	ldr	x8, [x19, #8]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x9]
	cbz	x0, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_hfi1_init_ctxt
	ldrsw	x8, [x22]
	ldrsw	x9, [x21]
	mul	x8, x9, x8
	add	x9, x20, #1
	cmp	x20, x8
	mov	x20, x9
	b.lt	LBB0_9
LBB0_11:
	ldr	x8, [x19]
	ldr	x0, [x8, #240]
	bl	_sc_enable
	ldr	x8, [x19]
	ldr	x8, [x8, #240]
	ldr	w20, [x8]
Lloh19:
	adrp	x24, _CHECK_VL@GOTPAGE
Lloh20:
	ldr	x24, [x24, _CHECK_VL@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_SC
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #255
	bl	_write_kctxt_csr
	ldr	x8, [x19]
	ldr	x8, [x8, #240]
	ldr	w2, [x8, #4]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dd_dev_info
	ldr	w2, [x21]
	cmp	w2, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x25, #0
	mov	x26, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x25]
	bl	_sc_enable
	ldr	x8, [x19]
	ldr	x8, [x8, x25]
	ldr	w20, [x8]
	ldr	w0, [x24]
	bl	_SC
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #32768
	bl	_write_kctxt_csr
	add	x26, x26, #1
	ldrsw	x2, [x21]
	add	x25, x25, #16
	cmp	x26, x2
	b.lt	LBB0_13
; %bb.14:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_15:
	ldr	w8, [x22]
	mul	w8, w2, w8
	cmp	w2, w8
	b.ge	LBB0_19
; %bb.16:
	sxtw	x8, w2
	add	x25, x8, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x20, x25, #3
	ldr	x0, [x8, x20]
	bl	_sc_enable
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x20]
	ldr	w20, [x8]
	ldr	w0, [x24]
	bl	_SC
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #32768
	bl	_write_kctxt_csr
	ldrsw	x8, [x22]
	ldrsw	x2, [x21]
	mul	x8, x2, x8
	add	x9, x25, #1
	cmp	x25, x8
	mov	x25, x9
	b.lt	LBB0_17
; %bb.18:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_19:
	ldr	x8, [x23]
	sub	x1, x8, #1
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, #0
	bl	_pio_map_init
	cbz	x0, LBB0_30
LBB0_20:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.21:
	mov	x20, #0
	mov	x23, #0
	ldr	x8, [x19]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, x20]
	bl	_sc_free
	ldr	x8, [x19]
	str	xzr, [x8, x20]
	add	x23, x23, #1
	ldrsw	x9, [x21]
	add	x20, x20, #16
	cmp	x23, x9
	b.lt	LBB0_22
; %bb.23:
	mov	x8, x9
LBB0_24:
	ldr	w9, [x22]
	mul	w9, w8, w9
	cmp	w8, w9
	b.ge	LBB0_27
; %bb.25:
	sxtw	x8, w8
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x20, x8, #1
	add	x8, x9, x8, lsl #3
	ldr	x0, [x8, #8]
	bl	_sc_free
	ldrsw	x8, [x22]
	ldrsw	x9, [x21]
	mul	x9, x9, x8
	mov	x8, x20
	cmp	x20, x9
	b.lt	LBB0_26
LBB0_27:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_28:
	ldr	x8, [x19]
	ldr	x0, [x8, #240]
	bl	_sc_free
LBB0_29:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_VL15,4,2                    ; @SC_VL15
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OPA_MTU_2048,4,2               ; @OPA_MTU_2048
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_num_vls,4,2                    ; @num_vls
	.comm	_SC_KERNEL,4,2                  ; @SC_KERNEL
	.comm	_hfi1_max_mtu,4,2               ; @hfi1_max_mtu
	.comm	_INIT_SC_PER_VL,4,2             ; @INIT_SC_PER_VL
	.comm	_CHECK_VL,4,2                   ; @CHECK_VL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using send context %u(%u) for VL15\n"

.subsections_via_symbols
