	.file	"extr_arswitch_8316.c_ar8316_hw_global_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar8316_hw_global_setup, @function
ar8316_hw_global_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	ARSWITCH_LOCK@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR AR8X16_MAGIC[rip]
	mov	esi, 56
	call	arswitch_writereg@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR AR8X16_REG_CPU_PORT[rip]
	mov	edx, DWORD PTR AR8X16_CPU_PORT_EN[rip]
	or	edx, DWORD PTR AR8X16_CPU_MIRROR_DIS[rip]
	call	arswitch_writereg@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR AR8X16_REG_TAG_PRIO[rip]
	mov	edx, 64080
	call	arswitch_writereg@PLT
	mov	edx, DWORD PTR AR8X16_FLOOD_MASK_BCAST_TO_CPU[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR AR8X16_REG_FLOOD_MASK[rip]
	or	edx, 4128831
	call	arswitch_writereg@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR AR8316_GLOBAL_CTRL_MTU_MASK[rip]
	mov	ecx, 9028
	mov	esi, DWORD PTR AR8X16_REG_GLOBAL_CTRL[rip]
	call	arswitch_modifyreg@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR AR8X16_SERVICE_TAG_MASK[rip]
	xor	ecx, ecx
	mov	esi, DWORD PTR AR8X16_REG_SERVICE_TAG[rip]
	call	arswitch_modifyreg@PLT
	mov	rdi, rbp
	call	ARSWITCH_UNLOCK@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar8316_hw_global_setup, .-ar8316_hw_global_setup
	.comm	AR8X16_SERVICE_TAG_MASK,4,4
	.comm	AR8X16_REG_TAG_PRIO,4,4
	.comm	AR8X16_REG_SERVICE_TAG,4,4
	.comm	AR8X16_REG_GLOBAL_CTRL,4,4
	.comm	AR8X16_REG_FLOOD_MASK,4,4
	.comm	AR8X16_REG_CPU_PORT,4,4
	.comm	AR8X16_MAGIC,4,4
	.comm	AR8X16_FLOOD_MASK_BCAST_TO_CPU,4,4
	.comm	AR8X16_CPU_PORT_EN,4,4
	.comm	AR8X16_CPU_MIRROR_DIS,4,4
	.comm	AR8316_GLOBAL_CTRL_MTU_MASK,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_arswitch_8316.c_ar8316_hw_global_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8316_hw_global_setup, %function
ar8316_hw_global_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	ARSWITCH_LOCK
	ldr	r3, .L4
	mov	r1, #56
	ldr	r2, [r3]
	ldr	r0, [r4]
	bl	arswitch_writereg
	ldr	r2, .L4+4
	ldr	r3, .L4+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+12
	orr	r2, r1, r2
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	arswitch_writereg
	ldr	r3, .L4+16
	ldr	r0, [r4]
	ldr	r1, [r3]
	ldr	r2, .L4+20
	bl	arswitch_writereg
	ldr	r2, .L4+24
	ldr	r3, .L4+28
	ldr	r2, [r2]
	ldr	r1, [r3]
	orr	r2, r2, #4128768
	ldr	r0, [r4]
	orr	r2, r2, #63
	bl	arswitch_writereg
	ldr	r3, .L4+32
	ldr	r2, .L4+36
	ldr	r1, [r3]
	ldr	r0, [r4]
	ldr	r2, [r2]
	ldr	r3, .L4+40
	bl	arswitch_modifyreg
	ldr	r3, .L4+44
	ldr	r2, .L4+48
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #0
	ldr	r0, [r4]
	bl	arswitch_modifyreg
	mov	r0, r4
	bl	ARSWITCH_UNLOCK
	mov	r0, #0
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	AR8X16_MAGIC
	.word	AR8X16_CPU_PORT_EN
	.word	AR8X16_CPU_MIRROR_DIS
	.word	AR8X16_REG_CPU_PORT
	.word	AR8X16_REG_TAG_PRIO
	.word	64080
	.word	AR8X16_FLOOD_MASK_BCAST_TO_CPU
	.word	AR8X16_REG_FLOOD_MASK
	.word	AR8X16_REG_GLOBAL_CTRL
	.word	AR8316_GLOBAL_CTRL_MTU_MASK
	.word	9028
	.word	AR8X16_REG_SERVICE_TAG
	.word	AR8X16_SERVICE_TAG_MASK
	.size	ar8316_hw_global_setup, .-ar8316_hw_global_setup
	.comm	AR8X16_SERVICE_TAG_MASK,4,4
	.comm	AR8X16_REG_TAG_PRIO,4,4
	.comm	AR8X16_REG_SERVICE_TAG,4,4
	.comm	AR8X16_REG_GLOBAL_CTRL,4,4
	.comm	AR8X16_REG_FLOOD_MASK,4,4
	.comm	AR8X16_REG_CPU_PORT,4,4
	.comm	AR8X16_MAGIC,4,4
	.comm	AR8X16_FLOOD_MASK_BCAST_TO_CPU,4,4
	.comm	AR8X16_CPU_PORT_EN,4,4
	.comm	AR8X16_CPU_MIRROR_DIS,4,4
	.comm	AR8316_GLOBAL_CTRL_MTU_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
