	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_add_send_to_vport_rule ## -- Begin function mlx5_eswitch_add_send_to_vport_rule
	.p2align	4, 0x90
_mlx5_eswitch_add_send_to_vport_rule:   ## @mlx5_eswitch_add_send_to_vport_rule
	.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, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kvzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13), %esi
	movq	_misc_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %rbx
	movq	_fte_match_set_misc@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_source_sqn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	%r12d, %ecx
	callq	_MLX5_SET
	movl	(%r15), %edi
	movq	_source_port@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	8(%r14), %ecx
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13), %esi
	movq	_misc_parameters@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_ADDR_OF
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	_source_sqn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_MLX5_SET_TO_ONES
	movl	(%r15), %edi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_MLX5_SET_TO_ONES
	movq	_MLX5_MATCH_MISC_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_MLX5_FLOW_DESTINATION_TYPE_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -48(%rbp)
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	4(%r14), %edi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rsi
	movl	$1, %r8d
	callq	_mlx5_add_flow_rules
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_esw_warn
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_4:
	movq	%r13, %rdi
	callq	_kvfree
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fte_match_param,4,2            ## @fte_match_param
	.comm	_misc_parameters,4,2            ## @misc_parameters
	.comm	_fte_match_set_misc,4,2         ## @fte_match_set_misc
	.comm	_source_sqn,4,2                 ## @source_sqn
	.comm	_source_port,4,2                ## @source_port
	.comm	_MLX5_MATCH_MISC_PARAMETERS,4,2 ## @MLX5_MATCH_MISC_PARAMETERS
	.comm	_MLX5_FLOW_DESTINATION_TYPE_VPORT,4,2 ## @MLX5_FLOW_DESTINATION_TYPE_VPORT
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FDB: Failed to add send to vport rule err %ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_add_send_to_vport_rule ; -- Begin function mlx5_eswitch_add_send_to_vport_rule
	.p2align	2
_mlx5_eswitch_add_send_to_vport_rule:   ; @mlx5_eswitch_add_send_to_vport_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kvzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x24, _fte_match_param@GOTPAGE
Lloh4:
	ldr	x24, [x24, _fte_match_param@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x19, #8]
Lloh5:
	adrp	x25, _misc_parameters@GOTPAGE
Lloh6:
	ldr	x25, [x25, _misc_parameters@GOTPAGEOFF]
	ldr	w2, [x25]
	bl	_MLX5_ADDR_OF
	mov	x23, x0
Lloh7:
	adrp	x26, _fte_match_set_misc@GOTPAGE
Lloh8:
	ldr	x26, [x26, _fte_match_set_misc@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh9:
	adrp	x27, _source_sqn@GOTPAGE
Lloh10:
	ldr	x27, [x27, _source_sqn@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x1, x23
	mov	x3, x22
	bl	_MLX5_SET
	ldr	w0, [x26]
Lloh11:
	adrp	x28, _source_port@GOTPAGE
Lloh12:
	ldr	x28, [x28, _source_port@GOTPAGEOFF]
	ldr	w2, [x28]
	ldr	w3, [x20, #8]
	mov	x1, x23
	bl	_MLX5_SET
	ldr	w0, [x24]
	ldr	w1, [x19, #4]
	ldr	w2, [x25]
	bl	_MLX5_ADDR_OF
	mov	x22, x0
	ldr	w0, [x26]
	ldr	w2, [x27]
	mov	x1, x22
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x26]
	ldr	w2, [x28]
	mov	x1, x22
	bl	_MLX5_SET_TO_ONES
Lloh13:
	adrp	x8, _MLX5_MATCH_MISC_PARAMETERS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX5_MATCH_MISC_PARAMETERS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh16:
	adrp	x8, _MLX5_FLOW_DESTINATION_TYPE_VPORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX5_FLOW_DESTINATION_TYPE_VPORT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w21, w8, [sp]
Lloh19:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x20, #4]
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x19
	mov	w4, #1
	bl	_mlx5_add_flow_rules
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w20, [x20]
	mov	x0, x21
	bl	_PTR_ERR
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_esw_warn
	b	LBB0_4
LBB0_3:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x21, x0
LBB0_4:
	mov	x0, x19
	bl	_kvfree
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fte_match_param,4,2            ; @fte_match_param
	.comm	_misc_parameters,4,2            ; @misc_parameters
	.comm	_fte_match_set_misc,4,2         ; @fte_match_set_misc
	.comm	_source_sqn,4,2                 ; @source_sqn
	.comm	_source_port,4,2                ; @source_port
	.comm	_MLX5_MATCH_MISC_PARAMETERS,4,2 ; @MLX5_MATCH_MISC_PARAMETERS
	.comm	_MLX5_FLOW_DESTINATION_TYPE_VPORT,4,2 ; @MLX5_FLOW_DESTINATION_TYPE_VPORT
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FDB: Failed to add send to vport rule err %ld\n"

.subsections_via_symbols
