	.file	"extr_b44.c_b44_get_link_ksettings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b44_get_link_ksettings, @function
b44_get_link_ksettings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	call	netdev_priv@PLT
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR B44_FLAG_EXTERNAL_PHY[rip], edx
	jne	.L28
	mov	esi, DWORD PTR SUPPORTED_100baseT_Half[rip]
	mov	ecx, edx
	or	esi, DWORD PTR SUPPORTED_Autoneg[rip]
	or	esi, DWORD PTR SUPPORTED_100baseT_Full[rip]
	or	esi, DWORD PTR SUPPORTED_10baseT_Half[rip]
	or	esi, DWORD PTR SUPPORTED_10baseT_Full[rip]
	or	esi, DWORD PTR SUPPORTED_MII[rip]
	and	ecx, DWORD PTR B44_FLAG_ADV_10HALF[rip]
	cmovne	ecx, DWORD PTR ADVERTISED_10baseT_Half[rip]
	test	DWORD PTR B44_FLAG_ADV_10FULL[rip], edx
	je	.L5
	or	ecx, DWORD PTR ADVERTISED_10baseT_Full[rip]
.L5:
	test	DWORD PTR B44_FLAG_ADV_100HALF[rip], edx
	je	.L6
	or	ecx, DWORD PTR ADVERTISED_100baseT_Half[rip]
.L6:
	test	DWORD PTR B44_FLAG_ADV_100FULL[rip], edx
	je	.L7
	or	ecx, DWORD PTR ADVERTISED_100baseT_Full[rip]
.L7:
	mov	r13d, DWORD PTR ADVERTISED_Pause[rip]
	or	r13d, DWORD PTR ADVERTISED_Asym_Pause[rip]
	mov	QWORD PTR 32[rbp], 0
	or	r13d, ecx
	test	DWORD PTR B44_FLAG_100_BASE_T[rip], edx
	mov	rcx, QWORD PTR SPEED_100[rip]
	cmove	rcx, QWORD PTR SPEED_10[rip]
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR B44_FLAG_FULL_DUPLEX[rip], edx
	mov	QWORD PTR 16[rbp], rcx
	mov	ecx, DWORD PTR DUPLEX_FULL[rip]
	cmove	ecx, DWORD PTR DUPLEX_HALF[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR AUTONEG_ENABLE[rip]
	mov	DWORD PTR 0[rbp], ecx
	test	DWORD PTR B44_FLAG_FORCE_LINK[rip], edx
	je	.L12
	mov	rdx, QWORD PTR AUTONEG_DISABLE[rip]
	mov	QWORD PTR 8[rbp], rdx
	cmp	rdx, rax
	je	.L13
.L14:
	mov	edi, DWORD PTR 44[rbp]
	call	ethtool_convert_legacy_u32_to_link_mode@PLT
	mov	edi, DWORD PTR 40[rbp]
	mov	esi, r13d
	call	ethtool_convert_legacy_u32_to_link_mode@PLT
	mov	rdi, r12
	call	netif_running@PLT
	test	eax, eax
	jne	.L3
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 0[rbp], 255
.L3:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], rax
.L13:
	or	r13d, DWORD PTR ADVERTISED_Autoneg[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, DWORD PTR [r12]
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	call	phy_ethtool_ksettings_get@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	b44_get_link_ksettings, .-b44_get_link_ksettings
	.comm	SUPPORTED_MII,4,4
	.comm	SUPPORTED_Autoneg,4,4
	.comm	SUPPORTED_10baseT_Half,4,4
	.comm	SUPPORTED_10baseT_Full,4,4
	.comm	SUPPORTED_100baseT_Half,4,4
	.comm	SUPPORTED_100baseT_Full,4,4
	.comm	SPEED_100,8,8
	.comm	SPEED_10,8,8
	.comm	DUPLEX_HALF,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	B44_FLAG_FULL_DUPLEX,4,4
	.comm	B44_FLAG_FORCE_LINK,4,4
	.comm	B44_FLAG_EXTERNAL_PHY,4,4
	.comm	B44_FLAG_ADV_10HALF,4,4
	.comm	B44_FLAG_ADV_10FULL,4,4
	.comm	B44_FLAG_ADV_100HALF,4,4
	.comm	B44_FLAG_ADV_100FULL,4,4
	.comm	B44_FLAG_100_BASE_T,4,4
	.comm	AUTONEG_ENABLE,8,8
	.comm	AUTONEG_DISABLE,8,8
	.comm	ADVERTISED_Pause,4,4
	.comm	ADVERTISED_Autoneg,4,4
	.comm	ADVERTISED_Asym_Pause,4,4
	.comm	ADVERTISED_10baseT_Half,4,4
	.comm	ADVERTISED_10baseT_Full,4,4
	.comm	ADVERTISED_100baseT_Half,4,4
	.comm	ADVERTISED_100baseT_Full,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_b44.c_b44_get_link_ksettings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b44_get_link_ksettings, %function
b44_get_link_ksettings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	bl	netdev_priv
	ldr	r2, .L30
	ldr	r3, [r0]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L29
	ldr	r1, .L30+4
	ldr	r2, .L30+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	ip, .L30+12
	orr	r1, r1, r2
	ldr	ip, [ip]
	ldr	r2, .L30+16
	orr	r1, r1, ip
	ldr	ip, [r2]
	ldr	lr, .L30+20
	orr	r1, r1, ip
	ldr	ip, .L30+24
	ldr	lr, [lr]
	ldr	r2, .L30+28
	ldr	ip, [ip]
	ldr	r2, [r2]
	orr	r1, r1, lr
	orr	r1, r1, ip
	ldr	ip, .L30+32
	ands	r2, r3, r2
	ldrne	r2, .L30+36
	ldr	ip, [ip]
	ldrne	r2, [r2]
	tst	r3, ip
	ldrne	ip, .L30+40
	ldr	r6, .L30+44
	ldrne	ip, [ip]
	ldr	lr, .L30+48
	orrne	r2, r2, ip
	ldr	ip, .L30+52
	ldr	r6, [r6]
	ldr	ip, [ip]
	ldr	lr, [lr]
	tst	r3, ip
	ldrne	ip, .L30+56
	ldrne	ip, [ip]
	orrne	r2, r2, ip
	ldr	ip, .L30+60
	ldr	ip, [ip]
	tst	r3, ip
	ldrne	ip, .L30+64
	ldrne	ip, [ip]
	orrne	r2, r2, ip
	ldr	ip, .L30+68
	tst	r3, lr
	ldr	ip, [ip]
	ldr	lr, .L30+72
	orr	ip, ip, r6
	orr	r6, ip, r2
	ldrne	r2, .L30+76
	ldreq	r2, .L30+80
	ldr	ip, [r2]
	ldr	r2, .L30+84
	str	ip, [r4, #8]
	ldr	r2, [r2]
	ldr	ip, [r0, #4]
	tst	r3, r2
	ldrne	r2, .L30+88
	ldreq	r2, .L30+92
	ldr	r0, [lr]
	ldr	r7, [r2]
	mov	r2, #0
	tst	r3, r0
	ldr	r3, .L30+96
	str	ip, [r4, #12]
	ldr	r3, [r3]
	str	r7, [r4]
	str	r2, [r4, #16]
	beq	.L12
	ldr	r2, .L30+100
	ldr	r2, [r2]
	cmp	r2, r3
	str	r2, [r4, #4]
	beq	.L13
.L14:
	ldr	r0, [r4, #24]
	bl	ethtool_convert_legacy_u32_to_link_mode
	mov	r1, r6
	ldr	r0, [r4, #20]
	bl	ethtool_convert_legacy_u32_to_link_mode
	mov	r0, r5
	bl	netif_running
	cmp	r0, #0
	moveq	r3, #255
	streq	r0, [r4, #8]
	streq	r3, [r4]
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	str	r3, [r4, #4]
.L13:
	ldr	r3, .L30+104
	ldr	r3, [r3]
	orr	r6, r6, r3
	b	.L14
.L29:
	ldr	r0, [r5]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r1, r4
	ldr	r0, [r5]
	bl	phy_ethtool_ksettings_get
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L31:
	.align	2
.L30:
	.word	B44_FLAG_EXTERNAL_PHY
	.word	SUPPORTED_100baseT_Half
	.word	SUPPORTED_Autoneg
	.word	SUPPORTED_100baseT_Full
	.word	SUPPORTED_10baseT_Half
	.word	SUPPORTED_10baseT_Full
	.word	SUPPORTED_MII
	.word	B44_FLAG_ADV_10HALF
	.word	B44_FLAG_ADV_10FULL
	.word	ADVERTISED_10baseT_Half
	.word	ADVERTISED_10baseT_Full
	.word	ADVERTISED_Asym_Pause
	.word	B44_FLAG_100_BASE_T
	.word	B44_FLAG_ADV_100HALF
	.word	ADVERTISED_100baseT_Half
	.word	B44_FLAG_ADV_100FULL
	.word	ADVERTISED_100baseT_Full
	.word	ADVERTISED_Pause
	.word	B44_FLAG_FORCE_LINK
	.word	SPEED_100
	.word	SPEED_10
	.word	B44_FLAG_FULL_DUPLEX
	.word	DUPLEX_FULL
	.word	DUPLEX_HALF
	.word	AUTONEG_ENABLE
	.word	AUTONEG_DISABLE
	.word	ADVERTISED_Autoneg
	.size	b44_get_link_ksettings, .-b44_get_link_ksettings
	.comm	SUPPORTED_MII,4,4
	.comm	SUPPORTED_Autoneg,4,4
	.comm	SUPPORTED_10baseT_Half,4,4
	.comm	SUPPORTED_10baseT_Full,4,4
	.comm	SUPPORTED_100baseT_Half,4,4
	.comm	SUPPORTED_100baseT_Full,4,4
	.comm	SPEED_100,4,4
	.comm	SPEED_10,4,4
	.comm	DUPLEX_HALF,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	B44_FLAG_FULL_DUPLEX,4,4
	.comm	B44_FLAG_FORCE_LINK,4,4
	.comm	B44_FLAG_EXTERNAL_PHY,4,4
	.comm	B44_FLAG_ADV_10HALF,4,4
	.comm	B44_FLAG_ADV_10FULL,4,4
	.comm	B44_FLAG_ADV_100HALF,4,4
	.comm	B44_FLAG_ADV_100FULL,4,4
	.comm	B44_FLAG_100_BASE_T,4,4
	.comm	AUTONEG_ENABLE,4,4
	.comm	AUTONEG_DISABLE,4,4
	.comm	ADVERTISED_Pause,4,4
	.comm	ADVERTISED_Autoneg,4,4
	.comm	ADVERTISED_Asym_Pause,4,4
	.comm	ADVERTISED_10baseT_Half,4,4
	.comm	ADVERTISED_10baseT_Full,4,4
	.comm	ADVERTISED_100baseT_Half,4,4
	.comm	ADVERTISED_100baseT_Full,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
