	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_check_rx_tagging
_qlcnic_check_rx_tagging:               ## @qlcnic_check_rx_tagging
	.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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	___vlan_get_tag
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	%rsi, %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	callq	_memmove
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_skb_pull
LBB0_2:
	movl	(%r14), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	%ecx, (%r15)
	jne	LBB0_5
## %bb.4:
	movl	$65535, (%r15)                  ## imm = 0xFFFF
	jmp	LBB0_7
LBB0_5:
	movq	_QLCNIC_TAGGING_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_QLCNIC_TAGGING_ENABLED,4,2     ## @QLCNIC_TAGGING_ENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qlcnic_check_rx_tagging
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_check_rx_tagging
_qlcnic_check_rx_tagging:               ; @qlcnic_check_rx_tagging
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	___vlan_get_tag
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbnz	w8, LBB0_3
	b	LBB0_6
LBB0_2:
	ldr	x1, [x21]
Lloh0:
	adrp	x22, _VLAN_HLEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VLAN_HLEN@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x8, x1
Lloh2:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	bl	_memmove
	ldr	x1, [x22]
	mov	x0, x21
	bl	_skb_pull
	ldr	w8, [x20]
	cbz	w8, LBB0_6
LBB0_3:
	ldr	w9, [x19]
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	mov	w8, #65535
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _QLCNIC_TAGGING_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLCNIC_TAGGING_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_QLCNIC_TAGGING_ENABLED,4,2     ; @QLCNIC_TAGGING_ENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qlcnic_check_rx_tagging
.subsections_via_symbols
