	.file	"extr_bgmac-platform.c_bgmac_nicpm_speed_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unsupported speed. Defaulting to 1000Mb\n"
	.text
	.p2align 4
	.type	bgmac_nicpm_speed_set, @function
bgmac_nicpm_speed_set:
.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
	call	netdev_priv@PLT
	mov	rsi, QWORD PTR 8[rax]
	test	rsi, rsi
	jne	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR NICPM_PADRING_CFG_INIT_VAL[rip]
	mov	rbx, rax
	add	rsi, QWORD PTR NICPM_PADRING_CFG[rip]
	call	writel@PLT
	mov	rax, QWORD PTR [rbx]
	mov	r12d, DWORD PTR NICPM_IOMUX_CTRL_INIT_VAL[rip]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	je	.L3
	cmp	eax, 130
	je	.L4
	cmp	eax, 128
	je	.L5
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_err@PLT
.L5:
	mov	ecx, DWORD PTR NICPM_IOMUX_CTRL_SPD_SHIFT[rip]
	mov	edi, DWORD PTR NICPM_IOMUX_CTRL_SPD_1000M[rip]
	sal	edi, cl
	or	edi, r12d
.L6:
	mov	rsi, QWORD PTR NICPM_IOMUX_CTRL[rip]
	add	rsi, QWORD PTR 8[rbx]
	call	writel@PLT
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	bgmac_adjust_link@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	ecx, DWORD PTR NICPM_IOMUX_CTRL_SPD_SHIFT[rip]
	mov	edi, DWORD PTR NICPM_IOMUX_CTRL_SPD_100M[rip]
	sal	edi, cl
	or	edi, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR NICPM_IOMUX_CTRL_SPD_SHIFT[rip]
	mov	edi, DWORD PTR NICPM_IOMUX_CTRL_SPD_10M[rip]
	sal	edi, cl
	or	edi, r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	bgmac_nicpm_speed_set, .-bgmac_nicpm_speed_set
	.comm	NICPM_PADRING_CFG_INIT_VAL,4,4
	.comm	NICPM_PADRING_CFG,8,8
	.comm	NICPM_IOMUX_CTRL_SPD_SHIFT,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_10M,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_100M,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_1000M,4,4
	.comm	NICPM_IOMUX_CTRL_INIT_VAL,4,4
	.comm	NICPM_IOMUX_CTRL,8,8
	.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_bgmac-platform.c_bgmac_nicpm_speed_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unsupported speed. Defaulting to 1000Mb\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bgmac_nicpm_speed_set, %function
bgmac_nicpm_speed_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, [r0, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r4, r0
	ldr	r1, .L12
	ldr	r2, .L12+4
	ldr	r1, [r1]
	ldr	r0, [r2]
	add	r1, r3, r1
	bl	writel
	ldr	r3, [r4]
	ldr	r2, .L12+8
	ldr	r3, [r3]
	ldr	r6, [r2]
	ldr	r3, [r3]
	cmp	r3, #129
	beq	.L3
	cmp	r3, #130
	beq	.L4
	cmp	r3, #128
	beq	.L5
	mov	r0, r5
	ldr	r1, .L12+12
	bl	netdev_err
.L5:
	ldr	r3, .L12+16
	ldr	r2, .L12+20
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r0, r6, r3, lsl r0
.L6:
	ldr	r3, .L12+24
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	writel
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	bgmac_adjust_link
.L3:
	ldr	r3, .L12+28
	ldr	r2, .L12+20
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r0, r6, r3, lsl r0
	b	.L6
.L4:
	ldr	r3, .L12+32
	ldr	r2, .L12+20
	ldr	r3, [r3]
	ldr	r0, [r2]
	orr	r0, r6, r3, lsl r0
	b	.L6
.L13:
	.align	2
.L12:
	.word	NICPM_PADRING_CFG
	.word	NICPM_PADRING_CFG_INIT_VAL
	.word	NICPM_IOMUX_CTRL_INIT_VAL
	.word	.LC0
	.word	NICPM_IOMUX_CTRL_SPD_1000M
	.word	NICPM_IOMUX_CTRL_SPD_SHIFT
	.word	NICPM_IOMUX_CTRL
	.word	NICPM_IOMUX_CTRL_SPD_100M
	.word	NICPM_IOMUX_CTRL_SPD_10M
	.size	bgmac_nicpm_speed_set, .-bgmac_nicpm_speed_set
	.comm	NICPM_PADRING_CFG_INIT_VAL,4,4
	.comm	NICPM_PADRING_CFG,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_SHIFT,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_10M,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_100M,4,4
	.comm	NICPM_IOMUX_CTRL_SPD_1000M,4,4
	.comm	NICPM_IOMUX_CTRL_INIT_VAL,4,4
	.comm	NICPM_IOMUX_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
