	.file	"extr_bcm63xx_enet.c_bcm_enet_set_link_ksettings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcm_enet_set_link_ksettings, @function
bcm_enet_set_link_ksettings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	netdev_priv@PLT
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	mov	edi, DWORD PTR 0[rbp]
	test	edi, edi
	jne	.L3
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR 24[r12], 0
	jne	.L5
	mov	rdx, QWORD PTR [r12]
	mov	rcx, QWORD PTR SPEED_100[rip]
	cmp	rdx, rcx
	je	.L6
	cmp	rdx, QWORD PTR SPEED_10[rip]
	je	.L6
.L5:
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rsi, QWORD PTR PORT_MII[rip]
	cmp	QWORD PTR 8[r12], rsi
	jne	.L5
	cmp	rdx, rcx
	mov	rcx, QWORD PTR DUPLEX_FULL[rip]
	mov	rdi, rbp
	sete	dl
	movzx	edx, dl
	mov	DWORD PTR [rax], edx
	xor	edx, edx
	cmp	QWORD PTR 16[r12], rcx
	sete	dl
	xor	r12d, r12d
	mov	DWORD PTR 4[rax], edx
	call	netif_running@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	bcm_enet_adjust_link@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	phy_ethtool_ksettings_set@PLT
	.cfi_endproc
.LFE0:
	.size	bcm_enet_set_link_ksettings, .-bcm_enet_set_link_ksettings
	.comm	SPEED_100,8,8
	.comm	SPEED_10,8,8
	.comm	PORT_MII,8,8
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	DUPLEX_FULL,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_bcm63xx_enet.c_bcm_enet_set_link_ksettings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm_enet_set_link_ksettings, %function
bcm_enet_set_link_ksettings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [r5]
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L13
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L5
	ldr	r2, .L13+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L6
	ldr	r1, .L13+8
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L6
.L5:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r1, .L13+16
	ldr	ip, [r4, #4]
	ldr	r1, [r1]
	cmp	ip, r1
	bne	.L5
	ldr	ip, .L13+20
	ldr	r1, [r4, #8]
	ldr	ip, [ip]
	sub	r3, r3, r2
	sub	r2, r1, ip
	clz	r3, r3
	clz	r2, r2
	lsr	r3, r3, #5
	lsr	r2, r2, #5
	str	r3, [r0]
	str	r2, [r0, #4]
	mov	r0, r5
	bl	netif_running
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r5
	bl	bcm_enet_adjust_link
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	b	phy_ethtool_ksettings_set
.L14:
	.align	2
.L13:
	.word	ENODEV
	.word	SPEED_100
	.word	SPEED_10
	.word	EINVAL
	.word	PORT_MII
	.word	DUPLEX_FULL
	.size	bcm_enet_set_link_ksettings, .-bcm_enet_set_link_ksettings
	.comm	SPEED_100,4,4
	.comm	SPEED_10,4,4
	.comm	PORT_MII,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	DUPLEX_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
