	.file	"extr_rl.c_mlx5_rl_remove_rate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Rate %u, max_burst_sz %u typical_pkt_sz %u are not configured\n"
	.text
	.p2align 4
	.globl	mlx5_rl_remove_rate
	.type	mlx5_rl_remove_rate, @function
mlx5_rl_remove_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rsi], 0
	movaps	XMMWORD PTR [rsp], xmm0
	mov	QWORD PTR 16[rsp], 0
	jne	.L13
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rbp, rdi
	mov	rbx, rsi
	call	mutex_lock@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	find_rl_entry@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR 28[rax]
	test	eax, eax
	je	.L4
	sub	eax, 1
	mov	DWORD PTR 28[r12], eax
	je	.L15
.L6:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR 24[r12]
	mov	rdx, rsp
	mov	rdi, rbp
	call	mlx5_set_pp_rate_limit_cmd@PLT
	movdqa	xmm1, XMMWORD PTR [rsp]
	mov	rax, QWORD PTR 16[rsp]
	movups	XMMWORD PTR [r12], xmm1
	mov	QWORD PTR 16[r12], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR 12[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	r8d, DWORD PTR 8[rbx]
	call	mlx5_core_warn@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_rl_remove_rate, .-mlx5_rl_remove_rate
	.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_rl.c_mlx5_rl_remove_rate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Rate %u, max_burst_sz %u typical_pkt_sz %u are not "
	.ascii	"configured\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx5_rl_remove_rate
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_rl_remove_rate, %function
mlx5_rl_remove_rate:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, [r1]
	sub	sp, sp, #36
	cmp	r2, r3
	ldr	r2, .L16
	add	r5, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	str	r3, [sp, #12]
	str	r3, [r5, #4]
	str	r3, [r5, #8]
	str	r3, [r5, #12]
	bne	.L13
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r4, r1
	mov	r6, r0
	bl	mutex_lock
	mov	r1, r4
	mov	r0, r6
	bl	find_rl_entry
	subs	r7, r0, #0
	beq	.L4
	ldr	r3, [r7, #20]
	cmp	r3, #0
	beq	.L4
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r7, #20]
	beq	.L15
.L6:
	mov	r0, r6
	bl	mutex_unlock
	b	.L1
.L15:
	mov	r2, r5
	ldr	r1, [r7, #16]
	mov	r0, r6
	bl	mlx5_set_pp_rate_limit_cmd
	ldm	r5, {r0, r1, r2, r3}
	stm	r7, {r0, r1, r2, r3}
	b	.L6
.L4:
	ldmib	r4, {r2, r3}
	str	r2, [sp]
	mov	r0, r6
	ldr	r2, [r4]
	ldr	r1, .L16+4
	bl	mlx5_core_warn
	mov	r0, r6
	bl	mutex_unlock
	b	.L1
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.size	mlx5_rl_remove_rate, .-mlx5_rl_remove_rate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
