	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esw_vport_egress_prio_tag_config
_esw_vport_egress_prio_tag_config:      ## @esw_vport_egress_prio_tag_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	movl	(%rdi), %edi
	movq	_prio_tag_required@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_esw_vport_cleanup_egress_rules
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_esw_vport_enable_egress_acl
	movl	(%r13), %edi
	movl	16(%r14), %ecx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	movl	%ebx, %r15d
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movl	%ecx, %edx
	callq	_esw_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	movq	_outer_headers@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %edx
	callq	_MLX5_SET_TO_ONES
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	movl	4(%rbx), %edx
	callq	_MLX5_SET_TO_ONES
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	movl	(%rbx), %edx
	callq	_MLX5_SET_TO_ONES
	movq	_fte_match_param@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	movl	(%rbx), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_MLX5_SET
	movq	_MLX5_MATCH_OUTER_HEADERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_MLX5_FLOW_CONTEXT_ACTION_VLAN_POP@GOTPCREL(%rip), %rax
	movq	_MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)
	movl	8(%r14), %edi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mlx5_add_flow_rules
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	16(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	callq	_esw_warn
	movq	$0, (%r14)
LBB0_7:
	movq	%r12, %rdi
	callq	_kvfree
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_esw_vport_cleanup_egress_rules
	movl	%ebx, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_prio_tag_required,4,2          ## @prio_tag_required
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable egress acl (%d) on vport[%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"vport[%d] configure prio tag egress rules\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fte_match_param,4,2            ## @fte_match_param
	.comm	_outer_headers,8,2              ## @outer_headers
	.comm	_MLX5_MATCH_OUTER_HEADERS,4,2   ## @MLX5_MATCH_OUTER_HEADERS
	.comm	_MLX5_FLOW_CONTEXT_ACTION_VLAN_POP,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_VLAN_POP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_ALLOW,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_ALLOW
L_.str.2:                               ## @.str.2
	.asciz	"vport[%d] configure egress pop prio tag vlan rule failed, err(%d)\n"

	.no_dead_strip	_esw_vport_egress_prio_tag_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esw_vport_egress_prio_tag_config
_esw_vport_egress_prio_tag_config:      ; @esw_vport_egress_prio_tag_config
	.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	x19, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _prio_tag_required@GOTPAGE
Lloh1:
	ldr	x8, [x8, _prio_tag_required@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_cleanup_egress_rules
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_enable_egress_acl
	mov	x22, x0
	ldr	w0, [x20]
	ldr	w3, [x19, #16]
	cbz	w22, LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_mlx5_core_warn
	b	LBB0_11
LBB0_3:
	mov	w22, #0
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x3
	bl	_esw_debug
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kvzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x21, x0
Lloh10:
	adrp	x22, _fte_match_param@GOTPAGE
Lloh11:
	ldr	x22, [x22, _fte_match_param@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x21, #8]
Lloh12:
	adrp	x23, _outer_headers@GOTPAGE
Lloh13:
	ldr	x23, [x23, _outer_headers@GOTPAGEOFF]
	ldr	w2, [x23, #4]
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	ldr	w2, [x23, #4]
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x22]
	ldr	w1, [x21, #8]
	ldr	w2, [x23]
	bl	_MLX5_SET_TO_ONES
	ldr	w0, [x22]
	ldr	w1, [x21, #4]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_MLX5_SET
Lloh14:
	adrp	x8, _MLX5_MATCH_OUTER_HEADERS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX5_MATCH_OUTER_HEADERS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh17:
	adrp	x8, _MLX5_FLOW_CONTEXT_ACTION_VLAN_POP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX5_FLOW_CONTEXT_ACTION_VLAN_POP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_ALLOW@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x19, #8]
	add	x2, sp, #8
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	bl	_mlx5_add_flow_rules
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x22, x0
	ldr	w0, [x20]
	ldr	w2, [x19, #16]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x22
	bl	_esw_warn
	str	xzr, [x19]
	b	LBB0_9
LBB0_7:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w22, LBB0_10
	b	LBB0_11
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x21
	bl	_kvfree
	cbz	w22, LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_esw_vport_cleanup_egress_rules
LBB0_11:
	mov	x0, x22
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_prio_tag_required,4,2          ; @prio_tag_required
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable egress acl (%d) on vport[%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"vport[%d] configure prio tag egress rules\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fte_match_param,4,2            ; @fte_match_param
	.comm	_outer_headers,8,2              ; @outer_headers
	.comm	_MLX5_MATCH_OUTER_HEADERS,4,2   ; @MLX5_MATCH_OUTER_HEADERS
	.comm	_MLX5_FLOW_CONTEXT_ACTION_VLAN_POP,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_VLAN_POP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_ALLOW,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_ALLOW
l_.str.2:                               ; @.str.2
	.asciz	"vport[%d] configure egress pop prio tag vlan rule failed, err(%d)\n"

	.no_dead_strip	_esw_vport_egress_prio_tag_config
.subsections_via_symbols
