	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vl_weights
_set_vl_weights:                        ## @set_vl_weights
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	%r14d, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%r14,8), %r15d
	movq	_LowPriority0_0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_VirtualLane@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_SYM_RMASK
	andl	%eax, %r15d
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_SYM_LSB
	movl	%eax, %ecx
	shll	%cl, %r15d
	movl	4(%rbx,%r14,8), %ebx
	movl	(%r12), %edi
	movq	_Weight@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_SYM_RMASK
	andl	%eax, %ebx
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_SYM_LSB
	movl	%eax, %ecx
	shll	%cl, %ebx
	orl	%r15d, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_qib_write_kreg_port
	incq	%r14
	cmpl	$16, %r14d
	jne	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	_SendCtrl_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_IBVLArbiterEn@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_SYM_MASK
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_SYM_MASK
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_krp_sendctrl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_qib_write_kreg_port
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_qib_write_kreg
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LowPriority0_0,4,2             ## @LowPriority0_0
	.comm	_VirtualLane,4,2                ## @VirtualLane
	.comm	_Weight,4,2                     ## @Weight
	.comm	_SendCtrl_0,4,2                 ## @SendCtrl_0
	.comm	_IBVLArbiterEn,4,2              ## @IBVLArbiterEn
	.comm	_krp_sendctrl,4,2               ## @krp_sendctrl
	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.no_dead_strip	_set_vl_weights
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_vl_weights
_set_vl_weights:                        ; @set_vl_weights
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x22, #0
Lloh0:
	adrp	x23, _LowPriority0_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LowPriority0_0@GOTPAGEOFF]
Lloh2:
	adrp	x24, _VirtualLane@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VirtualLane@GOTPAGEOFF]
Lloh4:
	adrp	x25, _Weight@GOTPAGE
Lloh5:
	ldr	x25, [x25, _Weight@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x20, x22
	ldr	w27, [x26]
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_SYM_RMASK
	and	w27, w0, w27
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_SYM_LSB
	lsl	w27, w27, w0
	ldr	w26, [x26, #4]
	ldr	w0, [x23]
	ldr	w1, [x25]
	bl	_SYM_RMASK
	and	w26, w0, w26
	ldr	w0, [x23]
	ldr	w1, [x25]
	bl	_SYM_LSB
	lsl	w8, w26, w0
	orr	w2, w8, w27
	mov	x0, x19
	mov	x1, x21
	bl	_qib_write_kreg_port
	add	w21, w21, #1
	add	x22, x22, #8
	cmp	w22, #128
	b.ne	LBB0_1
; %bb.2:
	ldr	w20, [x19]
Lloh6:
	adrp	x21, _SendCtrl_0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SendCtrl_0@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x22, _IBVLArbiterEn@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IBVLArbiterEn@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_SYM_MASK
	tst	w0, w20
	b.eq	LBB0_4
; %bb.3:
	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
LBB0_4:
	ldr	x20, [x19, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_SYM_MASK
	ldr	w8, [x19]
	orr	w2, w8, w0
	str	w2, [x19]
Lloh10:
	adrp	x8, _krp_sendctrl@GOTPAGE
Lloh11:
	ldr	x8, [x8, _krp_sendctrl@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg_port
Lloh13:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_qib_write_kreg
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LowPriority0_0,4,2             ; @LowPriority0_0
	.comm	_VirtualLane,4,2                ; @VirtualLane
	.comm	_Weight,4,2                     ; @Weight
	.comm	_SendCtrl_0,4,2                 ; @SendCtrl_0
	.comm	_IBVLArbiterEn,4,2              ; @IBVLArbiterEn
	.comm	_krp_sendctrl,4,2               ; @krp_sendctrl
	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.no_dead_strip	_set_vl_weights
.subsections_via_symbols
