	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mlx5_init_rl_table
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_2:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_3:
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
LCPI0_4:
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
LCPI0_5:
	.long	13                              ## 0xd
	.long	13                              ## 0xd
	.long	13                              ## 0xd
	.long	13                              ## 0xd
LCPI0_6:
	.quad	16                              ## 0x10
	.quad	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx5_init_rl_table
	.p2align	4, 0x90
_mlx5_init_rl_table:                    ## @mlx5_init_rl_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_mutex_init
	movq	_qos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_GEN
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_packet_pacing@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_QOS
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_packet_pacing_rate_table_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_QOS
	decl	%eax
	movl	%eax, (%rbx)
	movq	_packet_pacing_max_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_QOS
	movl	%eax, 4(%rbx)
	movq	_packet_pacing_min_rate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MLX5_CAP_QOS
	movl	%eax, 8(%rbx)
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.4:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.5:
	cmpl	$8, %edx
	jae	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_2:
	movl	$0, (%rbx)
	jmp	LBB0_17
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_7:
	movl	%edx, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:
	movq	%r8, %rsi
	andq	$-2, %rsi
	movaps	LCPI0_1(%rip), %xmm1            ## xmm1 = [2,3]
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%edi, %edi
	pcmpeqd	%xmm8, %xmm8
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [5,5,5,5]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [9,9,9,9]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [13,13,13,13]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [16,16]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movaps	%xmm0, %xmm7
	shufps	$136, %xmm1, %xmm7              ## xmm7 = xmm7[0,2],xmm1[0,2]
	movaps	%xmm7, %xmm2
	psubd	%xmm8, %xmm2
	movaps	%xmm7, %xmm3
	paddd	%xmm9, %xmm3
	movdqu	%xmm2, (%rax,%rdi,4)
	movdqu	%xmm3, 16(%rax,%rdi,4)
	movaps	%xmm7, %xmm2
	paddd	%xmm4, %xmm2
	paddd	%xmm5, %xmm7
	movdqu	%xmm2, 32(%rax,%rdi,4)
	movdqu	%xmm7, 48(%rax,%rdi,4)
	addq	$16, %rdi
	paddq	%xmm6, %xmm0
	paddq	%xmm6, %xmm1
	addq	$-2, %rsi
	jne	LBB0_10
## %bb.11:
	shufps	$136, %xmm1, %xmm0              ## xmm0 = xmm0[0,2],xmm1[0,2]
	testb	$1, %r8b
	je	LBB0_14
LBB0_13:
	pcmpeqd	%xmm1, %xmm1
	movaps	%xmm0, %xmm2
	psubd	%xmm1, %xmm2
	paddd	LCPI0_3(%rip), %xmm0
	movdqu	%xmm2, (%rax,%rdi,4)
	movdqu	%xmm0, 16(%rax,%rdi,4)
LBB0_14:
	cmpq	%rdx, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %rsi
	movl	%esi, (%rax,%rcx,4)
	movq	%rsi, %rcx
	cmpq	%rsi, %rdx
	jne	LBB0_15
LBB0_16:
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	sarl	$10, %ecx
	sarl	$10, %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mlx5_core_info
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_qos,4,2                        ## @qos
	.comm	_packet_pacing,4,2              ## @packet_pacing
	.comm	_packet_pacing_rate_table_size,4,2 ## @packet_pacing_rate_table_size
	.comm	_packet_pacing_max_rate,4,2     ## @packet_pacing_max_rate
	.comm	_packet_pacing_min_rate,4,2     ## @packet_pacing_min_rate
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rate limit: %u rates are supported, range: %uMbps to %uMbps\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mlx5_init_rl_table
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx5_init_rl_table
	.p2align	2
_mlx5_init_rl_table:                    ; @mlx5_init_rl_table
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #24
	bl	_mutex_init
Lloh0:
	adrp	x8, _qos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qos@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_GEN
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _packet_pacing@GOTPAGE
Lloh4:
	ldr	x8, [x8, _packet_pacing@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_QOS
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _packet_pacing_rate_table_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _packet_pacing_rate_table_size@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_QOS
	sub	w8, w0, #1
	str	w8, [x19]
Lloh9:
	adrp	x8, _packet_pacing_max_rate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _packet_pacing_max_rate@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_QOS
	str	w0, [x19, #4]
Lloh12:
	adrp	x8, _packet_pacing_min_rate@GOTPAGE
Lloh13:
	ldr	x8, [x8, _packet_pacing_min_rate@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_MLX5_CAP_QOS
	str	w0, [x19, #8]
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.4:
	cmp	w2, #16
	b.hs	LBB0_8
; %bb.5:
	mov	x8, #0
	b	LBB0_11
LBB0_6:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_13
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_8:
	and	x8, x2, #0xfffffff0
Lloh21:
	adrp	x9, lCPI0_0@PAGE
Lloh22:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
Lloh23:
	adrp	x9, lCPI0_1@PAGE
Lloh24:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	add	x9, x0, #32
	movi.4s	v2, #1
	movi.4s	v3, #5
	movi.4s	v4, #9
	movi.4s	v5, #13
	mov	w10, #16
	dup.2d	v6, x10
	mov	x10, x8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	uzp1.4s	v7, v1, v0
	add.4s	v16, v7, v2
	add.4s	v17, v7, v3
	add.4s	v18, v7, v4
	add.4s	v7, v7, v5
	stp	q16, q17, [x9, #-32]
	stp	q18, q7, [x9], #64
	add.2d	v0, v0, v6
	add.2d	v1, v1, v6
	subs	x10, x10, #16
	b.ne	LBB0_9
; %bb.10:
	cmp	x8, x2
	b.eq	LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x9, x8, #1
	str	w9, [x0, x8, lsl #2]
	mov	x8, x9
	cmp	x2, x9
	b.ne	LBB0_11
LBB0_12:
	ldp	w9, w8, [x19, #4]
	asr	w3, w8, #10
	asr	w4, w9, #10
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_mlx5_core_info
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpAdrp	Lloh21, Lloh23
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_qos,4,2                        ; @qos
	.comm	_packet_pacing,4,2              ; @packet_pacing
	.comm	_packet_pacing_rate_table_size,4,2 ; @packet_pacing_rate_table_size
	.comm	_packet_pacing_max_rate,4,2     ; @packet_pacing_max_rate
	.comm	_packet_pacing_min_rate,4,2     ; @packet_pacing_min_rate
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rate limit: %u rates are supported, range: %uMbps to %uMbps\n"

.subsections_via_symbols
