	.file	"extr_arswitch.c_ar8xxx_hw_get_switch_macaddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar8xxx_hw_get_switch_macaddr, @function
ar8xxx_hw_get_switch_macaddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	edi, DWORD PTR [rdi]
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR0[rip]
	call	arswitch_readreg@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR1[rip]
	mov	r12d, eax
	call	arswitch_readreg@PLT
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR0_BYTE5[rip]
	mov	edi, r12d
	mov	ebp, eax
	call	MS@PLT
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR0_BYTE4[rip]
	mov	edi, r12d
	mov	BYTE PTR 5[rbx], al
	call	MS@PLT
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR1_BYTE3[rip]
	mov	edi, ebp
	mov	BYTE PTR 4[rbx], al
	call	MS@PLT
	mov	edi, ebp
	mov	BYTE PTR 3[rbx], al
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR1_BYTE2[rip]
	call	MS@PLT
	mov	edi, ebp
	mov	BYTE PTR 2[rbx], al
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR1_BYTE1[rip]
	call	MS@PLT
	mov	edi, ebp
	mov	BYTE PTR 1[rbx], al
	mov	esi, DWORD PTR AR8X16_REG_SW_MAC_ADDR1_BYTE0[rip]
	call	MS@PLT
	mov	BYTE PTR [rbx], al
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar8xxx_hw_get_switch_macaddr, .-ar8xxx_hw_get_switch_macaddr
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE3,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE2,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE1,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE0,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR0_BYTE5,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR0_BYTE4,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR0,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.c_ar8xxx_hw_get_switch_macaddr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8xxx_hw_get_switch_macaddr, %function
ar8xxx_hw_get_switch_macaddr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, [r0]
	bl	arswitch_readreg
	ldr	r3, .L4+4
	mov	r6, r0
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	arswitch_readreg
	ldr	r3, .L4+8
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r6
	bl	MS
	ldr	r3, .L4+12
	strb	r0, [r4, #5]
	ldr	r1, [r3]
	mov	r0, r6
	bl	MS
	ldr	r3, .L4+16
	strb	r0, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L4+20
	strb	r0, [r4, #3]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L4+24
	strb	r0, [r4, #2]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	ldr	r3, .L4+28
	strb	r0, [r4, #1]
	ldr	r1, [r3]
	mov	r0, r5
	bl	MS
	mov	r3, r0
	mov	r0, #0
	strb	r3, [r4]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	AR8X16_REG_SW_MAC_ADDR0
	.word	AR8X16_REG_SW_MAC_ADDR1
	.word	AR8X16_REG_SW_MAC_ADDR0_BYTE5
	.word	AR8X16_REG_SW_MAC_ADDR0_BYTE4
	.word	AR8X16_REG_SW_MAC_ADDR1_BYTE3
	.word	AR8X16_REG_SW_MAC_ADDR1_BYTE2
	.word	AR8X16_REG_SW_MAC_ADDR1_BYTE1
	.word	AR8X16_REG_SW_MAC_ADDR1_BYTE0
	.size	ar8xxx_hw_get_switch_macaddr, .-ar8xxx_hw_get_switch_macaddr
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE3,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE2,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE1,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1_BYTE0,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR1,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR0_BYTE5,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR0_BYTE4,4,4
	.comm	AR8X16_REG_SW_MAC_ADDR0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
