	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_insert_vlan_in_pkt
_be_insert_vlan_in_pkt:                 ## @be_insert_vlan_in_pkt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_skb_share_check
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_vlan_tx_tag_present
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_be_get_tx_vlan_tag
	movq	%rax, %r12
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	movq	%r15, %rdi
	callq	_qnq_async_evt_rcvd
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	testq	%r12, %r12
	cmoveq	%rax, %r12
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	movl	$1, (%r14)
	jmp	LBB0_9
LBB0_8:
	testq	%r12, %r12
	je	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	___vlan_put_tag
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	movq	$0, (%rbx)
LBB0_11:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	___vlan_put_tag
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%r14, %r14
	je	LBB0_15
## %bb.13:
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movl	$1, (%r14)
LBB0_15:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_be_insert_vlan_in_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_insert_vlan_in_pkt
_be_insert_vlan_in_pkt:                 ; @be_insert_vlan_in_pkt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
Lloh0:
	adrp	x9, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_skb_share_check
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.1:
	mov	x0, x19
	bl	_vlan_tx_tag_present
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_be_get_tx_vlan_tag
	mov	x22, x0
	b	LBB0_4
LBB0_3:
	mov	x22, #0
LBB0_4:
	mov	x0, x21
	bl	_qnq_async_evt_rcvd
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.6:
	cmp	x22, #0
	csel	x22, x8, x22, eq
	cbz	x20, LBB0_9
; %bb.7:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_9
LBB0_8:
	cbz	x22, LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	___vlan_put_tag
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.10:
	str	xzr, [x19]
LBB0_11:
	ldr	x1, [x21]
	cbz	x1, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	___vlan_put_tag
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x20, LBB0_15
; %bb.13:
	cbnz	x0, LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x20]
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_be_insert_vlan_in_pkt
.subsections_via_symbols
