	.file	"extr_if_sge.c_sge_setvlan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sge_setvlan, @function
sge_setvlan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	SGE_LOCK_ASSERT@PLT
	mov	rbx, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR IFCAP_VLAN_HWTAGGING[rip], eax
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR RxMacControl[rip]
	mov	rdi, rbp
	call	CSR_READ_2@PLT
	mov	edx, eax
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR IFCAP_VLAN_HWTAGGING[rip], eax
	je	.L3
	or	edx, DWORD PTR RXMAC_STRIP_VLAN[rip]
.L4:
	mov	esi, DWORD PTR RxMacControl[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	CSR_WRITE_2@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR RXMAC_STRIP_VLAN[rip]
	not	eax
	and	edx, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sge_setvlan, .-sge_setvlan
	.comm	RxMacControl,4,4
	.comm	RXMAC_STRIP_VLAN,4,4
	.comm	IFCAP_VLAN_HWTAGGING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_if_sge.c_sge_setvlan.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sge_setvlan, %function
sge_setvlan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, .L7
	bl	SGE_LOCK_ASSERT
	ldr	r6, [r4]
	ldr	r3, [r5]
	ldr	r2, [r6]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r7, .L7+4
	mov	r0, r4
	ldr	r1, [r7]
	bl	CSR_READ_2
	ldr	r2, [r6, #4]
	ldr	r3, [r5]
	ldr	r1, [r7]
	tst	r2, r3
	ldr	r3, .L7+8
	ldr	r2, [r3]
	orrne	r2, r0, r2
	biceq	r2, r0, r2
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	CSR_WRITE_2
.L8:
	.align	2
.L7:
	.word	IFCAP_VLAN_HWTAGGING
	.word	RxMacControl
	.word	RXMAC_STRIP_VLAN
	.size	sge_setvlan, .-sge_setvlan
	.comm	RxMacControl,4,4
	.comm	RXMAC_STRIP_VLAN,4,4
	.comm	IFCAP_VLAN_HWTAGGING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
