	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_tc_add_fdb_flow
_mlx5e_tc_add_fdb_flow:                 ## @mlx5e_tc_add_fdb_flow
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_mlx5_eswitch_get_chain_range
	movq	%rax, %r13
	movq	8(%r12), %rbx
	movq	48(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mlx5_eswitch_get_prio_range
	movl	%eax, %r14d
	movq	$0, -88(%rbp)
	movl	$1, -44(%rbp)
	movq	%r15, %rdi
	callq	_mlx5_eswitch_prios_supported
	movq	%rbx, %rsi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpl	$1, (%rsi)
	jne	LBB0_2
LBB0_4:
	cmpq	%r13, 8(%rsi)
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	cmpl	%r14d, (%rsi)
	jle	LBB0_7
## %bb.30:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	_MLX5_MAX_FLOW_FWD_VPORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:
	movq	40(%rsi), %rcx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-88(%rbp), %rdi
	callq	_netdev_priv
	movq	8(%rax), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rsi
	movq	40(%r15), %rcx
	movl	%edx, 16(%rcx,%r13)
	movq	(%rax), %rax
	movq	%rax, 8(%rcx,%r13)
	movq	_MLX5_MAX_FLOW_FWD_VPORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movslq	%eax, %rdx
	addq	$24, %r13
	cmpq	%rdx, %r14
	jge	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MLX5_ESW_DEST_ENCAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx,%r13)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %ebx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12), %edi
	callq	_dev_net
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	___dev_get_by_index
	leaq	-44(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	movl	%r14d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	leaq	-88(%rbp), %r9
	callq	_mlx5e_attach_encap
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	jmp	LBB0_29
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_NL_SET_ERR_MSG
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rsi, %rbx
	callq	_mlx5_eswitch_add_vlan_action
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.15:
	movl	16(%rbx), %eax
	movq	_MLX5_FLOW_CONTEXT_ACTION_MOD_HDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%rbx, %rcx
	je	LBB0_18
## %bb.16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%rcx, %r15
	callq	_mlx5e_attach_mod_hdr
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	callq	_kfree
	testl	%r12d, %r12d
	jne	LBB0_29
## %bb.17:
	movl	16(%r15), %eax
	movq	%r15, %rcx
LBB0_18:
	movq	_MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_23
## %bb.19:
	movl	32(%rcx), %edi
	movl	$1, %esi
	movq	%rcx, %rbx
	callq	_mlx5_fc_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	%r15, %rdi
	jmp	LBB0_21
LBB0_22:
	movq	%r15, 24(%rbx)
	movq	%rbx, %rcx
LBB0_23:
	cmpl	$0, -44(%rbp)
	je	LBB0_24
## %bb.25:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx5e_tc_offload_fdb_rules
	jmp	LBB0_26
LBB0_24:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$8, %rdx
	leaq	-152(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx5e_tc_offload_to_slow_path
LBB0_26:
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	(%r14), %rax
	movq	(%rax), %rdi
LBB0_21:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_29
LBB0_28:
	movq	_OFFLOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_flow_flag_set
	xorl	%r12d, %r12d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"E-switch priorities unsupported, upgrade FW"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Requested chain is out of supported range"

L_.str.2:                               ## @.str.2
	.asciz	"Requested priority is out of supported range"

	.comm	_MLX5_MAX_FLOW_FWD_VPORTS,4,2   ## @MLX5_MAX_FLOW_FWD_VPORTS
	.comm	_MLX5_ESW_DEST_ENCAP,4,2        ## @MLX5_ESW_DEST_ENCAP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_MOD_HDR,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_MOD_HDR
	.comm	_MLX5_FLOW_CONTEXT_ACTION_COUNT,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_COUNT
	.comm	_OFFLOADED,4,2                  ## @OFFLOADED
	.no_dead_strip	_mlx5e_tc_add_fdb_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_tc_add_fdb_flow
_mlx5e_tc_add_fdb_flow:                 ; @mlx5e_tc_add_fdb_flow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_mlx5_eswitch_get_chain_range
	mov	x25, x0
	ldr	x21, [x19, #8]
	ldr	x22, [x21, #48]
	mov	x0, x20
	bl	_mlx5_eswitch_get_prio_range
	mov	x26, x0
	str	xzr, [sp, #72]
	mov	w8, #1
	str	w8, [sp, #68]
	mov	x0, x20
	bl	_mlx5_eswitch_prios_supported
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_13
LBB0_2:
	ldr	x8, [x21, #8]
	cmp	x8, x25
	b.le	LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, w26
	b.le	LBB0_6
; %bb.5:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_6:
Lloh4:
	adrp	x8, _MLX5_MAX_FLOW_FWD_VPORTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLX5_MAX_FLOW_FWD_VPORTS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x28, #0
	mov	x25, #0
	ldr	x9, [x21, #40]
Lloh7:
	adrp	x27, _MLX5_ESW_DEST_ENCAP@GOTPAGE
Lloh8:
	ldr	x27, [x27, _MLX5_ESW_DEST_ENCAP@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #72]
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	ldr	x9, [x21, #40]
	add	x10, x9, x28
	str	w8, [x10, #16]
	ldr	x8, [x0]
	str	x8, [x10, #8]
Lloh9:
	adrp	x8, _MLX5_MAX_FLOW_FWD_VPORTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX5_MAX_FLOW_FWD_VPORTS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, #1
	add	x28, x28, #24
	cmp	x25, w8, sxtw
	b.ge	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x28]
	ldr	w11, [x27]
	tst	w11, w10
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22]
	ldr	w26, [x8, x25, lsl #2]
	ldr	w0, [x23, #16]
	bl	_dev_net
	mov	x1, x26
	bl	___dev_get_by_index
	mov	x2, x0
	add	x5, sp, #72
	add	x6, sp, #68
	mov	x0, x23
	mov	x1, x19
	mov	x3, x25
	mov	x4, x24
	bl	_mlx5e_attach_encap
	cbz	w0, LBB0_8
; %bb.12:
	mov	x26, x0
	b	LBB0_15
LBB0_13:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x24
	bl	_NL_SET_ERR_MSG
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_15:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_16:
	mov	x0, x20
	mov	x1, x21
	bl	_mlx5_eswitch_add_vlan_action
	mov	x26, x0
	cbnz	w0, LBB0_15
; %bb.17:
	ldr	w8, [x21, #16]
Lloh17:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_MOD_HDR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_MOD_HDR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_mlx5e_attach_mod_hdr
	mov	x26, x0
	ldr	w0, [x22, #12]
	bl	_kfree
	cbnz	w26, LBB0_15
; %bb.19:
	ldr	w8, [x21, #16]
LBB0_20:
Lloh20:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_COUNT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
	ldr	w0, [x21, #32]
	mov	w1, #1
	bl	_mlx5_fc_create
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.22:
	mov	x0, x23
	b	LBB0_29
LBB0_23:
	str	x23, [x21, #24]
LBB0_24:
	ldr	w8, [sp, #68]
	cbz	w8, LBB0_26
; %bb.25:
	add	x2, x22, #8
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_mlx5e_tc_offload_fdb_rules
	b	LBB0_27
LBB0_26:
	add	x2, x22, #8
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_mlx5e_tc_offload_to_slow_path
LBB0_27:
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.28:
	ldr	x8, [x19]
	ldr	x0, [x8]
LBB0_29:
	bl	_PTR_ERR
	mov	x26, x0
	b	LBB0_15
LBB0_30:
Lloh23:
	adrp	x8, _OFFLOADED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OFFLOADED@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_flow_flag_set
	mov	w26, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"E-switch priorities unsupported, upgrade FW"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Requested chain is out of supported range"

l_.str.2:                               ; @.str.2
	.asciz	"Requested priority is out of supported range"

	.comm	_MLX5_MAX_FLOW_FWD_VPORTS,4,2   ; @MLX5_MAX_FLOW_FWD_VPORTS
	.comm	_MLX5_ESW_DEST_ENCAP,4,2        ; @MLX5_ESW_DEST_ENCAP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_MOD_HDR,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_MOD_HDR
	.comm	_MLX5_FLOW_CONTEXT_ACTION_COUNT,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_COUNT
	.comm	_OFFLOADED,4,2                  ; @OFFLOADED
	.no_dead_strip	_mlx5e_tc_add_fdb_flow
.subsections_via_symbols
