	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_tclass_congestion_enable
_mlxsw_sp_tclass_congestion_enable:     ## @mlxsw_sp_tclass_congestion_enable
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MLXSW_REG_CWTPM_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_REG_CWTP_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	8(%rbx), %r12
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edx
	callq	_mlxsw_reg_cwtp_pack
	movq	_MLXSW_REG_CWTP_DEFAULT_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MLXSW_REG_CWTP_MIN_VALUE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_roundup
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_roundup
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_mlxsw_reg_cwtp_profile_pack
	movl	(%r12), %ebx
	movq	_cwtp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_mlxsw_reg_write
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_MLXSW_REG_CWTP_DEFAULT_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_mlxsw_reg_cwtpm_pack
	movl	(%r12), %r14d
	movq	_cwtpm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_mlxsw_reg_write
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_CWTPM_LEN,4,2        ## @MLXSW_REG_CWTPM_LEN
	.comm	_MLXSW_REG_CWTP_LEN,4,2         ## @MLXSW_REG_CWTP_LEN
	.comm	_MLXSW_REG_CWTP_DEFAULT_PROFILE,4,2 ## @MLXSW_REG_CWTP_DEFAULT_PROFILE
	.comm	_MLXSW_REG_CWTP_MIN_VALUE,4,2   ## @MLXSW_REG_CWTP_MIN_VALUE
	.comm	_cwtp,4,2                       ## @cwtp
	.comm	_cwtpm,4,2                      ## @cwtpm
	.no_dead_strip	_mlxsw_sp_tclass_congestion_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_tclass_congestion_enable
_mlxsw_sp_tclass_congestion_enable:     ; @mlxsw_sp_tclass_congestion_enable
	.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
	sub	sp, sp, #16
	stur	w5, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MLXSW_REG_CWTPM_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_CWTPM_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _MLXSW_REG_CWTP_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLXSW_REG_CWTP_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	ldr	x28, [x0, #8]
	ldr	w1, [x0]
	mov	x0, x26
	mov	x2, x21
	bl	_mlxsw_reg_cwtp_pack
Lloh13:
	adrp	x8, _MLXSW_REG_CWTP_DEFAULT_PROFILE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLXSW_REG_CWTP_DEFAULT_PROFILE@GOTPAGEOFF]
Lloh15:
	ldr	w27, [x8]
Lloh16:
	adrp	x19, _MLXSW_REG_CWTP_MIN_VALUE@GOTPAGE
Lloh17:
	ldr	x19, [x19, _MLXSW_REG_CWTP_MIN_VALUE@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x25
	bl	_roundup
	mov	x25, x0
	ldr	w1, [x19]
	mov	x0, x24
	bl	_roundup
	mov	x3, x0
	mov	x0, x26
	mov	x1, x27
	mov	x2, x25
	mov	x4, x23
	bl	_mlxsw_reg_cwtp_profile_pack
	ldr	w23, [x28]
Lloh18:
	adrp	x8, _cwtp@GOTPAGE
Lloh19:
	ldr	x8, [x8, _cwtp@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x23
	mov	x2, x26
	bl	_mlxsw_reg_write
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh21:
	adrp	x8, _MLXSW_REG_CWTP_DEFAULT_PROFILE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLXSW_REG_CWTP_DEFAULT_PROFILE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x21
	mov	w4, #1
	ldur	w5, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_mlxsw_reg_cwtpm_pack
	ldr	w19, [x28]
Lloh24:
	adrp	x8, _cwtpm@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cwtpm@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mlxsw_reg_write
LBB0_2:
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #80
	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:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_CWTPM_LEN,4,2        ; @MLXSW_REG_CWTPM_LEN
	.comm	_MLXSW_REG_CWTP_LEN,4,2         ; @MLXSW_REG_CWTP_LEN
	.comm	_MLXSW_REG_CWTP_DEFAULT_PROFILE,4,2 ; @MLXSW_REG_CWTP_DEFAULT_PROFILE
	.comm	_MLXSW_REG_CWTP_MIN_VALUE,4,2   ; @MLXSW_REG_CWTP_MIN_VALUE
	.comm	_cwtp,4,2                       ; @cwtp
	.comm	_cwtpm,4,2                      ; @cwtpm
	.no_dead_strip	_mlxsw_sp_tclass_congestion_enable
.subsections_via_symbols
