	.file	"extr_smc91c92_cs.c_smc_get_settings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smc_get_settings, @function
smc_get_settings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	netdev_priv@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rdi, QWORD PTR BANK_SELECT[rip]
	mov	rbx, rax
	call	inw@PLT
	lea	r14, 4[rbx]
	mov	rdi, r14
	mov	r13d, eax
	call	spin_lock_irq@PLT
	mov	edi, 3
	call	SMC_SELECT_BANK@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR CFG_MII_SELECT[rip], eax
	je	.L2
	mov	rsi, r12
	lea	rdi, 8[rbx]
	call	mii_ethtool_gset@PLT
	mov	r12d, eax
.L3:
	mov	edi, r13d
	call	SMC_SELECT_BANK@PLT
	mov	rdi, r14
	call	spin_unlock_irq@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	smc_netdev_get_ecmd@PLT
	mov	r12d, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	smc_get_settings, .-smc_get_settings
	.comm	CFG_MII_SELECT,4,4
	.comm	BANK_SELECT,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_smc91c92_cs.c_smc_get_settings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smc_get_settings, %function
smc_get_settings:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	bl	netdev_priv
	ldr	r2, .L6
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r4, r0
	add	r0, r2, r3
	bl	inw
	add	r8, r4, #4
	mov	r6, r0
	mov	r0, r8
	bl	spin_lock_irq
	mov	r0, #3
	bl	SMC_SELECT_BANK
	ldr	r3, .L6+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r1, r7
	tst	r2, r3
	beq	.L2
	add	r0, r4, #8
	bl	mii_ethtool_gset
	mov	r4, r0
.L3:
	mov	r0, r6
	bl	SMC_SELECT_BANK
	mov	r0, r8
	bl	spin_unlock_irq
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	smc_netdev_get_ecmd
	mov	r4, r0
	b	.L3
.L7:
	.align	2
.L6:
	.word	BANK_SELECT
	.word	CFG_MII_SELECT
	.size	smc_get_settings, .-smc_get_settings
	.comm	CFG_MII_SELECT,4,4
	.comm	BANK_SELECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
