	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_set_tx_maxrate
_mlx5e_set_tx_maxrate:                  ## @mlx5e_set_tx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movq	16(%rax), %rax
	movq	24(%r13), %r12
	movslq	%ebx, %rbx
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mlx5_rl_is_supported
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	shll	$10, %r15d
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mlx5_rl_is_in_range
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_MLX5E_STATE_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_mlx5e_set_sq_maxrate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rax,%rcx,4)
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %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	"Rate limiting is not supported on this device\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"TX rate %u, is not in range\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_MLX5E_STATE_OPENED,4,2         ## @MLX5E_STATE_OPENED
	.no_dead_strip	_mlx5e_set_tx_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_tx_maxrate
_mlx5e_set_tx_maxrate:                  ; @mlx5e_set_tx_maxrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	ldp	x8, x24, [x0, #16]
	ldr	x23, [x8, w19, sxtw #3]
	mov	x0, x24
	bl	_mlx5_rl_is_supported
	cbz	w0, LBB0_7
; %bb.1:
	lsl	w22, w22, #10
	cbz	w22, LBB0_3
; %bb.2:
	mov	x0, x24
	mov	x1, x22
	bl	_mlx5_rl_is_in_range
	cbz	w0, LBB0_8
LBB0_3:
	add	x24, x21, #8
	mov	x0, x24
	bl	_mutex_lock
Lloh0:
	adrp	x8, _MLX5E_STATE_OPENED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_STATE_OPENED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #12
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_mlx5e_set_sq_maxrate
	mov	x20, x0
	cbnz	w0, LBB0_6
LBB0_5:
	mov	w20, #0
	sxtw	x8, w19
	ldr	x9, [x21]
	str	w22, [x9, x8, lsl #2]
LBB0_6:
	mov	x0, x24
	bl	_mutex_unlock
	b	LBB0_10
LBB0_7:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh9:
	adrp	x8, _ERANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rate limiting is not supported on this device\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"TX rate %u, is not in range\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_MLX5E_STATE_OPENED,4,2         ; @MLX5E_STATE_OPENED
	.no_dead_strip	_mlx5e_set_tx_maxrate
.subsections_via_symbols
