	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_del_vlan_action   ## -- Begin function mlx5_eswitch_del_vlan_action
	.p2align	4, 0x90
_mlx5_eswitch_del_vlan_action:          ## @mlx5_eswitch_del_vlan_action
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movl	$1, %esi
	callq	_mlx5_eswitch_vlan_actions_supported
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	cmpl	$0, 16(%r15)
	je	LBB0_14
## %bb.2:
	movl	(%r15), %r13d
	movq	_MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	testl	%r13d, %eax
	setne	%r12b
	movq	_MLX5_FLOW_CONTEXT_ACTION_VLAN_POP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movl	(%rax), %eax
	andl	%r13d, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	setne	%r14b
	movq	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_esw_vlan_action_get_vport
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%r13d, %ecx
	jne	LBB0_7
## %bb.3:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_MLX5_VPORT_UPLINK@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.6:
	decq	16(%rax)
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_7:
	testl	%r13d, %ecx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.8:
	decq	16(%rax)
	jne	LBB0_10
## %bb.9:
	movq	$0, 8(%rax)
	movl	(%rax), %esi
	movq	_SET_VLAN_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___mlx5_eswitch_set_vport_vlan
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_10:
	xorl	%r12d, %r12d
	decq	8(%r14)
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_esw_set_global_vlan_pop
	movl	%eax, %r12d
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH
	.comm	_MLX5_FLOW_CONTEXT_ACTION_VLAN_POP,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_VLAN_POP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,4,2 ## @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
	.comm	_MLX5_VPORT_UPLINK,8,3          ## @MLX5_VPORT_UPLINK
	.comm	_SET_VLAN_STRIP,4,2             ## @SET_VLAN_STRIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_eswitch_del_vlan_action   ; -- Begin function mlx5_eswitch_del_vlan_action
	.p2align	2
_mlx5_eswitch_del_vlan_action:          ; @mlx5_eswitch_del_vlan_action
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	mov	w1, #1
	bl	_mlx5_eswitch_vlan_actions_supported
	cbz	x0, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_12
LBB0_2:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w23, w9, w8
	cset	w21, ne
Lloh3:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_VLAN_POP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_VLAN_POP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w24, w9, w8
	cset	w22, ne
Lloh6:
	adrp	x9, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_FLOW_CONTEXT_ACTION_FWD_DEST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w25, w9, w8
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_esw_vlan_action_get_vport
	cmp	w23, #0
	ccmp	w24, #0, #0, eq
	ccmp	w25, #0, #4, eq
	b.ne	LBB0_8
; %bb.4:
	cbz	w23, LBB0_6
; %bb.5:
	ldr	x8, [x0, #16]
	subs	x8, x8, #1
	str	x8, [x0, #16]
	b.eq	LBB0_13
LBB0_6:
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_esw_set_global_vlan_pop
	mov	x20, x0
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _MLX5_VPORT_UPLINK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX5_VPORT_UPLINK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	w20, #0
	ldr	x8, [x0, #16]
	sub	x8, x8, #1
	str	x8, [x0, #16]
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	str	xzr, [x0, #8]
	ldr	w1, [x0]
Lloh12:
	adrp	x8, _SET_VLAN_STRIP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SET_VLAN_STRIP@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	___mlx5_eswitch_set_vport_vlan
	mov	x20, x0
	cbnz	w0, LBB0_11
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH
	.comm	_MLX5_FLOW_CONTEXT_ACTION_VLAN_POP,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_VLAN_POP
	.comm	_MLX5_FLOW_CONTEXT_ACTION_FWD_DEST,4,2 ; @MLX5_FLOW_CONTEXT_ACTION_FWD_DEST
	.comm	_MLX5_VPORT_UPLINK,8,3          ; @MLX5_VPORT_UPLINK
	.comm	_SET_VLAN_STRIP,4,2             ; @SET_VLAN_STRIP
.subsections_via_symbols
