	.file	"extr_spectrum_qdisc.c_mlxsw_sp_tclass_congestion_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp_tclass_congestion_enable, @function
mlxsw_sp_tclass_congestion_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, edx
	push	r12
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MLXSW_REG_CWTPM_LEN[rip]
	mov	rdi, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	movsx	rax, DWORD PTR MLXSW_REG_CWTP_LEN[rip]
	mov	rsi, rsp
	mov	r14, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L7:
	mov	r15, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rbx]
	mov	edx, r12d
	mov	rdi, rsp
	mov	DWORD PTR -68[rbp], r9d
	mov	DWORD PTR -84[rbp], r8d
	mov	DWORD PTR -72[rbp], ecx
	mov	QWORD PTR -80[rbp], r15
	call	mlxsw_reg_cwtp_pack@PLT
	mov	ecx, DWORD PTR -72[rbp]
	mov	esi, DWORD PTR MLXSW_REG_CWTP_MIN_VALUE[rip]
	mov	edi, ecx
	call	roundup@PLT
	mov	esi, DWORD PTR MLXSW_REG_CWTP_MIN_VALUE[rip]
	mov	edi, r13d
	mov	r15d, eax
	call	roundup@PLT
	mov	r8d, DWORD PTR -84[rbp]
	mov	ecx, r15d
	mov	rdi, rsp
	mov	esi, DWORD PTR MLXSW_REG_CWTP_DEFAULT_PROFILE[rip]
	mov	edx, eax
	call	mlxsw_reg_cwtp_profile_pack@PLT
	mov	edi, DWORD PTR cwtp[rip]
	call	MLXSW_REG@PLT
	mov	r15, QWORD PTR -80[rbp]
	mov	rdx, rsp
	mov	esi, eax
	mov	edi, DWORD PTR [r15]
	call	mlxsw_reg_write@PLT
	test	eax, eax
	je	.L22
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L23
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR [rbx]
	mov	r9d, DWORD PTR -68[rbp]
	mov	edx, r12d
	mov	r8d, 1
	mov	ecx, DWORD PTR MLXSW_REG_CWTP_DEFAULT_PROFILE[rip]
	mov	rdi, r14
	call	mlxsw_reg_cwtpm_pack@PLT
	mov	edi, DWORD PTR cwtpm[rip]
	call	MLXSW_REG@PLT
	mov	edi, DWORD PTR [r15]
	mov	rdx, r14
	mov	esi, eax
	call	mlxsw_reg_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_tclass_congestion_enable, .-mlxsw_sp_tclass_congestion_enable
	.comm	cwtpm,4,4
	.comm	cwtp,4,4
	.comm	MLXSW_REG_CWTP_MIN_VALUE,4,4
	.comm	MLXSW_REG_CWTP_LEN,4,4
	.comm	MLXSW_REG_CWTP_DEFAULT_PROFILE,4,4
	.comm	MLXSW_REG_CWTPM_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_spectrum_qdisc.c_mlxsw_sp_tclass_congestion_enable.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_tclass_congestion_enable, %function
mlxsw_sp_tclass_congestion_enable:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	r4, r0
	mov	r5, r1
	mov	r7, r2
	ldr	r1, .L7
	ldr	r2, .L7+4
	ldr	r1, [r1]
	ldr	r2, [r2]
	add	r1, r1, #7
	bic	r1, r1, #7
	add	r2, r2, #7
	sub	sp, sp, r1
	str	r3, [fp, #-52]
	bic	r2, r2, #7
	ldr	r3, .L7+8
	add	r10, sp, #8
	sub	sp, sp, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r8, .L7+12
	ldr	r3, [r4, #4]
	add	r6, sp, #8
	mov	r2, r5
	ldr	r1, [r4]
	mov	r0, r6
	ldr	r9, .L7+16
	str	r3, [fp, #-48]
	bl	mlxsw_reg_cwtp_pack
	ldr	r1, [r8]
	mov	r0, r7
	ldr	r7, [r9]
	bl	roundup
	mov	r2, r0
	ldr	r3, [fp, #-52]
	ldr	r1, [r8]
	mov	r0, r3
	mov	r8, r2
	bl	roundup
	ldr	r2, [fp, #4]
	mov	r1, r7
	mov	r3, r0
	str	r2, [sp]
	mov	r0, r6
	mov	r2, r8
	bl	mlxsw_reg_cwtp_profile_pack
	ldr	r3, .L7+20
	ldr	r8, [fp, #-48]
	ldr	r0, [r3]
	ldr	r7, [r8]
	bl	MLXSW_REG
	mov	r2, r6
	mov	r1, r0
	mov	r0, r7
	bl	mlxsw_reg_write
	cmp	r0, #0
	bne	.L1
	mov	r0, #1
	ldr	r3, [fp, #8]
	mov	r2, r5
	str	r3, [sp, #4]
	ldr	r1, [r4]
	ldr	r3, [r9]
	str	r0, [sp]
	mov	r0, r10
	bl	mlxsw_reg_cwtpm_pack
	ldr	r3, .L7+24
	ldr	r4, [r8]
	ldr	r0, [r3]
	bl	MLXSW_REG
	mov	r2, r10
	mov	r1, r0
	mov	r0, r4
	bl	mlxsw_reg_write
.L1:
	ldr	r3, .L7+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	MLXSW_REG_CWTPM_LEN
	.word	MLXSW_REG_CWTP_LEN
	.word	.LC0
	.word	MLXSW_REG_CWTP_MIN_VALUE
	.word	MLXSW_REG_CWTP_DEFAULT_PROFILE
	.word	cwtp
	.word	cwtpm
	.size	mlxsw_sp_tclass_congestion_enable, .-mlxsw_sp_tclass_congestion_enable
	.comm	cwtpm,4,4
	.comm	cwtp,4,4
	.comm	MLXSW_REG_CWTP_MIN_VALUE,4,4
	.comm	MLXSW_REG_CWTP_LEN,4,4
	.comm	MLXSW_REG_CWTP_DEFAULT_PROFILE,4,4
	.comm	MLXSW_REG_CWTPM_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
