	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_set_sq_maxrate
_mlx5e_set_sq_maxrate:                  ## @mlx5e_set_sq_maxrate
	.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
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	(%rax), %r14
	movq	$0, -72(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -44(%rbp)
	movq	(%r12), %rax
	xorl	%ebx, %ebx
	cmpq	%r13, %rax
	je	LBB0_11
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx5_rl_remove_rate
LBB0_3:
	movq	$0, (%r12)
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:
	movq	%r13, -64(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mlx5_rl_add_rate
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_netdev_err
	jmp	LBB0_11
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movl	-44(%rbp), %eax
LBB0_7:
	movq	_MLX5_SQC_STATE_RDY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -80(%rbp)
	movq	%rcx, -88(%rbp)
	movl	%eax, -92(%rbp)
	movl	$1, -96(%rbp)
	movl	8(%r12), %esi
	leaq	-96(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mlx5e_modify_sq
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_netdev_err
	testq	%r13, %r13
	je	LBB0_11
## %bb.9:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx5_rl_remove_rate
	jmp	LBB0_11
LBB0_10:
	movq	%r13, (%r12)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed configuring rate %u: %d\n"

	.comm	_MLX5_SQC_STATE_RDY,8,3         ## @MLX5_SQC_STATE_RDY
	.no_dead_strip	_mlx5e_set_sq_maxrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_set_sq_maxrate
_mlx5e_set_sq_maxrate:                  ; @mlx5e_set_sq_maxrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	w23, #0
	ldr	x20, [x0]
	str	xzr, [sp, #56]
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	ldr	x8, [x22]
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.1:
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [sp, #16]
	add	x1, sp, #16
	mov	x0, x20
	bl	_mlx5_rl_remove_rate
LBB0_3:
	str	xzr, [x22]
	cbz	x19, LBB0_6
; %bb.4:
	str	x19, [sp, #16]
	add	x1, sp, #12
	add	x2, sp, #16
	mov	x0, x20
	bl	_mlx5_rl_add_rate
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x23
	bl	_netdev_err
	b	LBB0_12
LBB0_6:
	mov	w8, #0
	b	LBB0_8
LBB0_7:
	ldr	w8, [sp, #12]
LBB0_8:
Lloh2:
	adrp	x9, _MLX5_SQC_STATE_RDY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_SQC_STATE_RDY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	stp	x9, x9, [sp, #40]
	mov	w9, #1
	stp	w9, w8, [sp, #32]
	ldr	w1, [x22, #8]
	add	x2, sp, #32
	mov	x0, x20
	bl	_mlx5e_modify_sq
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	mov	x3, x23
	bl	_netdev_err
	cbz	x19, LBB0_12
; %bb.10:
	add	x1, sp, #16
	mov	x0, x20
	bl	_mlx5_rl_remove_rate
	b	LBB0_12
LBB0_11:
	str	x19, [x22]
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed configuring rate %u: %d\n"

	.comm	_MLX5_SQC_STATE_RDY,8,3         ; @MLX5_SQC_STATE_RDY
	.no_dead_strip	_mlx5e_set_sq_maxrate
.subsections_via_symbols
