	.file	"extr_bnad_ethtool.c_bnad_get_link_ksettings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnad_get_link_ksettings, @function
bnad_get_link_ksettings:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR AUTONEG_DISABLE[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	r12d, DWORD PTR SUPPORTED_10000baseT_Full[rip]
	mov	ebp, DWORD PTR ADVERTISED_10000baseT_Full[rip]
	or	r12d, DWORD PTR SUPPORTED_FIBRE[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	DWORD PTR 28[rsi], eax
	mov	eax, DWORD PTR PORT_FIBRE[rip]
	mov	QWORD PTR 16[rsi], 0
	or	ebp, DWORD PTR ADVERTISED_FIBRE[rip]
	mov	DWORD PTR 24[rsi], eax
	call	netif_carrier_ok@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR SPEED_10000[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR DUPLEX_FULL[rip]
	mov	DWORD PTR 8[rbx], eax
.L3:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, r12d
	call	ethtool_convert_legacy_u32_to_link_mode@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, ebp
	call	ethtool_convert_legacy_u32_to_link_mode@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR SPEED_UNKNOWN[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR DUPLEX_UNKNOWN[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	bnad_get_link_ksettings, .-bnad_get_link_ksettings
	.comm	SUPPORTED_FIBRE,4,4
	.comm	SUPPORTED_10000baseT_Full,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	SPEED_10000,4,4
	.comm	PORT_FIBRE,4,4
	.comm	DUPLEX_UNKNOWN,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	AUTONEG_DISABLE,4,4
	.comm	ADVERTISED_FIBRE,4,4
	.comm	ADVERTISED_10000baseT_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_bnad_ethtool.c_bnad_get_link_ksettings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnad_get_link_ksettings, %function
bnad_get_link_ksettings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r2, #0
	ldr	r1, .L6
	ldr	r3, .L6+4
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	lr, .L6+8
	str	ip, [r4, #24]
	str	r3, [r4, #20]
	ldr	ip, .L6+12
	ldr	r1, .L6+16
	ldr	r3, .L6+20
	ldr	r6, [lr]
	ldr	r5, [ip]
	ldr	r3, [r3]
	ldr	r1, [r1]
	str	r2, [r4, #16]
	orr	r5, r5, r3
	orr	r6, r6, r1
	bl	netif_carrier_ok
	cmp	r0, #0
	ldrne	r2, .L6+24
	ldrne	r3, .L6+28
	ldreq	r2, .L6+32
	ldreq	r3, .L6+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r6
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	ldr	r0, [r4, #4]
	bl	ethtool_convert_legacy_u32_to_link_mode
	mov	r1, r5
	ldr	r0, [r4]
	bl	ethtool_convert_legacy_u32_to_link_mode
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	AUTONEG_DISABLE
	.word	PORT_FIBRE
	.word	SUPPORTED_10000baseT_Full
	.word	ADVERTISED_10000baseT_Full
	.word	SUPPORTED_FIBRE
	.word	ADVERTISED_FIBRE
	.word	SPEED_10000
	.word	DUPLEX_FULL
	.word	SPEED_UNKNOWN
	.word	DUPLEX_UNKNOWN
	.size	bnad_get_link_ksettings, .-bnad_get_link_ksettings
	.comm	SUPPORTED_FIBRE,4,4
	.comm	SUPPORTED_10000baseT_Full,4,4
	.comm	SPEED_UNKNOWN,4,4
	.comm	SPEED_10000,4,4
	.comm	PORT_FIBRE,4,4
	.comm	DUPLEX_UNKNOWN,4,4
	.comm	DUPLEX_FULL,4,4
	.comm	AUTONEG_DISABLE,4,4
	.comm	ADVERTISED_FIBRE,4,4
	.comm	ADVERTISED_10000baseT_Full,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
