	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_up_vl15                    ## -- Begin function set_up_vl15
	.p2align	4, 0x90
_set_up_vl15:                           ## @set_up_vl15
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SEND_CM_GLOBAL_CREDIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_read_csr
	movq	_SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK@GOTPCREL(%rip), %rcx
	movq	_SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_write_csr
	movq	_SEND_CM_CREDIT_VL15@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEND_CM_GLOBAL_CREDIT,4,2      ## @SEND_CM_GLOBAL_CREDIT
	.comm	_SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK,4,2 ## @SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK
	.comm	_SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK,4,2 ## @SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK
	.comm	_SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT,4,2 ## @SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT
	.comm	_SEND_CM_CREDIT_VL15,4,2        ## @SEND_CM_CREDIT_VL15
	.comm	_SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT,4,2 ## @SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_up_vl15                    ; -- Begin function set_up_vl15
	.p2align	2
_set_up_vl15:                           ; @set_up_vl15
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _SEND_CM_GLOBAL_CREDIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SEND_CM_GLOBAL_CREDIT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_read_csr
Lloh2:
	adrp	x8, _SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh8:
	adrp	x9, _SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w2, w8, w9
	ldr	w1, [x21]
	mov	x0, x20
	bl	_write_csr
Lloh11:
	adrp	x8, _SEND_CM_CREDIT_VL15@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEND_CM_CREDIT_VL15@GOTPAGEOFF]
Lloh13:
	adrp	x9, _SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
	lsl	w2, w19, w8
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_write_csr
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SEND_CM_GLOBAL_CREDIT,4,2      ; @SEND_CM_GLOBAL_CREDIT
	.comm	_SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK,4,2 ; @SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SMASK
	.comm	_SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK,4,2 ; @SEND_CM_GLOBAL_CREDIT_SHARED_LIMIT_SMASK
	.comm	_SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT,4,2 ; @SEND_CM_GLOBAL_CREDIT_TOTAL_CREDIT_LIMIT_SHIFT
	.comm	_SEND_CM_CREDIT_VL15,4,2        ; @SEND_CM_CREDIT_VL15
	.comm	_SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT,4,2 ; @SEND_CM_CREDIT_VL15_DEDICATED_LIMIT_VL_SHIFT
.subsections_via_symbols
