	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_rl_remove_rate            ## -- Begin function mlx5_rl_remove_rate
	.p2align	4, 0x90
_mlx5_rl_remove_rate:                   ## @mlx5_rl_remove_rate
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	cmpq	$0, (%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_find_rl_entry
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	movl	28(%rax), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	decl	%eax
	movl	%eax, 28(%r15)
	jne	LBB0_6
## %bb.5:
	movl	24(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mlx5_set_pp_rate_limit_cmd
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, (%r15)
	movq	-32(%rbp), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %rdx
	movl	12(%rbx), %ecx
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5_core_warn
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rate %u, max_burst_sz %u typical_pkt_sz %u are not configured\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_rl_remove_rate            ; -- Begin function mlx5_rl_remove_rate
	.p2align	2
_mlx5_rl_remove_rate:                   ; @mlx5_rl_remove_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	x8, [x1]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	_find_rl_entry
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_5
; %bb.3:
	subs	w8, w8, #1
	str	w8, [x21, #28]
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [x21, #24]
	add	x2, sp, #8
	mov	x0, x19
	bl	_mlx5_set_pp_rate_limit_cmd
	ldr	x8, [sp, #24]
	ldur	q0, [sp, #8]
	str	q0, [x21]
	str	x8, [x21, #16]
	b	LBB0_6
LBB0_5:
	ldr	x2, [x20]
	ldp	w4, w3, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_warn
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rate %u, max_burst_sz %u typical_pkt_sz %u are not configured\n"

.subsections_via_symbols
