	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_create_push_vlan ## -- Begin function mlx5dr_action_create_push_vlan
	.p2align	4, 0x90
_mlx5dr_action_create_push_vlan:        ## @mlx5dr_action_create_push_vlan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_ntohl
	movl	%eax, %ebx
	sarl	$16, %eax
	cltq
	movq	_SVLAN_ETHERTYPE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_CVLAN_ETHERTYPE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlx5dr_dbg
	jmp	LBB0_5
LBB0_3:
	movq	_DR_ACTION_TYP_PUSH_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dr_action_create_generic
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%ebx, (%rax)
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVLAN_ETHERTYPE,8,3            ## @SVLAN_ETHERTYPE
	.comm	_CVLAN_ETHERTYPE,8,3            ## @CVLAN_ETHERTYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid vlan ethertype\n"

	.comm	_DR_ACTION_TYP_PUSH_VLAN,4,2    ## @DR_ACTION_TYP_PUSH_VLAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_action_create_push_vlan ; -- Begin function mlx5dr_action_create_push_vlan
	.p2align	2
_mlx5dr_action_create_push_vlan:        ; @mlx5dr_action_create_push_vlan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	x0, x1
	bl	_ntohl
	mov	x19, x0
	sbfx	x8, x19, #16, #16
Lloh0:
	adrp	x9, _SVLAN_ETHERTYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SVLAN_ETHERTYPE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CVLAN_ETHERTYPE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CVLAN_ETHERTYPE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x8
	ccmp	x10, x8, #4, ne
	b.ne	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _DR_ACTION_TYP_PUSH_VLAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DR_ACTION_TYP_PUSH_VLAN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_dr_action_create_generic
	cbz	x0, LBB0_4
; %bb.2:
	str	w19, [x0]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx5dr_dbg
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SVLAN_ETHERTYPE,8,3            ; @SVLAN_ETHERTYPE
	.comm	_CVLAN_ETHERTYPE,8,3            ; @CVLAN_ETHERTYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid vlan ethertype\n"

	.comm	_DR_ACTION_TYP_PUSH_VLAN,4,2    ; @DR_ACTION_TYP_PUSH_VLAN
.subsections_via_symbols
