	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_parse_vlan_tag
_hns3_parse_vlan_tag:                   ## @hns3_parse_vlan_tag
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	cmpl	$32, (%rax)
	jne	LBB0_4
## %bb.1:
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	movl	%eax, (%r14)
	movq	_VLAN_VID_MASK@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %ecx
	movl	%eax, (%r14)
LBB0_3:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	jmp	LBB0_13
LBB0_4:
	movq	_HNS3_RXD_STRP_TAGP_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_STRP_TAGP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, %edi
	movl	%eax, %edx
	callq	_hnae3_get_field
	cmpl	$3, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	je	LBB0_9
## %bb.6:
	cmpl	$1, %ecx
	jne	LBB0_13
## %bb.7:
	movl	(%rbx), %ecx
	movq	_HNAE3_PORT_BASE_VLAN_DISABLE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_13
## %bb.8:
	movl	4(%r15), %edi
	jmp	LBB0_12
LBB0_11:
	movl	(%rbx), %eax
	movq	_HNAE3_PORT_BASE_VLAN_DISABLE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movl	(%r15,%rdx,4), %edi
	jmp	LBB0_12
LBB0_9:
	movl	(%rbx), %ecx
	movq	_HNAE3_PORT_BASE_VLAN_DISABLE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_13
## %bb.10:
	movl	(%r15), %edi
LBB0_12:
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_VID_MASK,4,2              ## @VLAN_VID_MASK
	.comm	_HNS3_RXD_STRP_TAGP_M,4,2       ## @HNS3_RXD_STRP_TAGP_M
	.comm	_HNS3_RXD_STRP_TAGP_S,4,2       ## @HNS3_RXD_STRP_TAGP_S
	.comm	_HNAE3_PORT_BASE_VLAN_DISABLE,4,2 ## @HNAE3_PORT_BASE_VLAN_DISABLE
	.no_dead_strip	_hns3_parse_vlan_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_parse_vlan_tag
_hns3_parse_vlan_tag:                   ; @hns3_parse_vlan_tag
	.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, x3
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #32
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	str	w0, [x19]
Lloh0:
	adrp	x8, _VLAN_VID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_VID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20]
	bl	_le16_to_cpu
	str	w0, [x19]
LBB0_3:
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_14
LBB0_4:
Lloh3:
	adrp	x8, _HNS3_RXD_STRP_TAGP_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS3_RXD_STRP_TAGP_M@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HNS3_RXD_STRP_TAGP_S@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNS3_RXD_STRP_TAGP_S@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x0, x2
	mov	x2, x8
	bl	_hnae3_get_field
	cmp	w0, #3
	b.eq	LBB0_9
; %bb.5:
	cmp	w0, #2
	b.eq	LBB0_10
; %bb.6:
	cmp	w0, #1
	b.ne	LBB0_13
; %bb.7:
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.8:
	ldr	w0, [x20, #4]
	b	LBB0_12
LBB0_9:
Lloh12:
	adrp	x8, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh14:
	ldr	w8, [x8]
	cmp	w9, w8
	cset	w8, eq
	ldr	w0, [x20, w8, uxtw #2]
	b	LBB0_12
LBB0_10:
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HNAE3_PORT_BASE_VLAN_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.11:
	ldr	w0, [x20]
LBB0_12:
	bl	_le16_to_cpu
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_VID_MASK,4,2              ; @VLAN_VID_MASK
	.comm	_HNS3_RXD_STRP_TAGP_M,4,2       ; @HNS3_RXD_STRP_TAGP_M
	.comm	_HNS3_RXD_STRP_TAGP_S,4,2       ; @HNS3_RXD_STRP_TAGP_S
	.comm	_HNAE3_PORT_BASE_VLAN_DISABLE,4,2 ; @HNAE3_PORT_BASE_VLAN_DISABLE
	.no_dead_strip	_hns3_parse_vlan_tag
.subsections_via_symbols
