	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5i_create_flow_steering
_mlx5i_create_flow_steering:            ## @mlx5i_create_flow_steering
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movl	40(%rdi), %edi
	movq	_MLX5_FLOW_NAMESPACE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mlx5_get_flow_namespace
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_mlx5e_arfs_create_tables
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	movq	_NETIF_F_NTUPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	16(%r14), %rcx
	andl	%eax, (%rcx)
LBB0_4:
	leaq	-32(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx5e_set_ttc_basic_params
	movq	%rbx, %rdi
	callq	_mlx5e_set_inner_ttc_ft_params
	movq	_MLX5E_NUM_INDIR_TIRS@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_7
## %bb.5:
	movq	32(%r14), %rax
	movq	-32(%rbp), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_6
LBB0_7:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_mlx5e_create_inner_ttc_table
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_9:
	leaq	-32(%rbp), %rdi
	callq	_mlx5e_set_ttc_ft_params
	cmpl	$0, (%rbx)
	jle	LBB0_12
## %bb.10:
	movq	24(%r14), %rax
	movq	-32(%rbp), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_11
LBB0_12:
	leaq	4(%r14), %rdx
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx5e_create_ttc_table
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_mlx5e_destroy_inner_ttc_table
LBB0_15:
	movq	%r14, %rdi
	callq	_mlx5e_arfs_destroy_tables
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_FLOW_NAMESPACE_KERNEL,4,2 ## @MLX5_FLOW_NAMESPACE_KERNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create arfs tables, err=%d\n"

	.comm	_NETIF_F_NTUPLE,4,2             ## @NETIF_F_NTUPLE
	.comm	_MLX5E_NUM_INDIR_TIRS,4,2       ## @MLX5E_NUM_INDIR_TIRS
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create inner ttc table, err=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create ttc table, err=%d\n"

	.no_dead_strip	_mlx5i_create_flow_steering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5i_create_flow_steering
_mlx5i_create_flow_steering:            ; @mlx5i_create_flow_steering
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0, #40]
Lloh0:
	adrp	x8, _MLX5_FLOW_NAMESPACE_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_FLOW_NAMESPACE_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mlx5_get_flow_namespace
	str	w0, [x19, #8]
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_mlx5e_arfs_create_tables
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh5:
	adrp	x8, _NETIF_F_NTUPLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETIF_F_NTUPLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlx5e_set_ttc_basic_params
	add	x0, sp, #8
	bl	_mlx5e_set_inner_ttc_ft_params
Lloh8:
	adrp	x21, _MLX5E_NUM_INDIR_TIRS@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MLX5E_NUM_INDIR_TIRS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
	ldr	x9, [x19, #32]
	ldr	x10, [sp, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_5
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x19
	bl	_mlx5e_create_inner_ttc_table
	cbz	w0, LBB0_9
; %bb.7:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
	b	LBB0_14
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_9:
	add	x0, sp, #8
	bl	_mlx5e_set_ttc_ft_params
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x8, #0
	ldr	x9, [x19, #24]
	ldr	x10, [sp, #8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x8, #2
	ldr	w12, [x9, x11]
	str	w12, [x10, x11]
	add	x8, x8, #1
	ldrsw	x11, [x21]
	cmp	x8, x11
	b.lt	LBB0_11
LBB0_12:
	add	x2, x19, #4
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlx5e_create_ttc_table
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.13:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
	mov	x0, x19
	mov	x1, x19
	bl	_mlx5e_destroy_inner_ttc_table
LBB0_14:
	mov	x0, x19
	bl	_mlx5e_arfs_destroy_tables
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_FLOW_NAMESPACE_KERNEL,4,2 ; @MLX5_FLOW_NAMESPACE_KERNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create arfs tables, err=%d\n"

	.comm	_NETIF_F_NTUPLE,4,2             ; @NETIF_F_NTUPLE
	.comm	_MLX5E_NUM_INDIR_TIRS,4,2       ; @MLX5E_NUM_INDIR_TIRS
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create inner ttc table, err=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create ttc table, err=%d\n"

	.no_dead_strip	_mlx5i_create_flow_steering
.subsections_via_symbols
