	.file	"extr_smsc911x.c_smsc911x_ethtool_get_eeprom.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smsc911x_ethtool_get_eeprom, @function
smsc911x_ethtool_get_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rcx, rsp
	mov	rbx, rax
	movsx	rax, DWORD PTR SMSC911X_EEPROM_SIZE[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	mov	rdi, rbx
	mov	r13, rsp
	call	smsc911x_eeprom_enable_access@PLT
	mov	esi, DWORD PTR SMSC911X_EEPROM_SIZE[rip]
	mov	edi, DWORD PTR [r14]
	call	min@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L5
	xor	r15d, r15d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	add	r15d, 1
	cmp	r12d, r15d
	je	.L5
.L8:
	mov	rdx, r13
	mov	esi, r15d
	mov	rdi, rbx
	call	smsc911x_eeprom_read_location@PLT
	test	eax, eax
	jns	.L6
	mov	DWORD PTR [r14], 0
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR -72[rbp]
	mov	edx, r12d
	lea	rsi, 0[r13+rax*4]
	call	memcpy@PLT
	mov	DWORD PTR [r14], r12d
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smsc911x_ethtool_get_eeprom, .-smsc911x_ethtool_get_eeprom
	.comm	SMSC911X_EEPROM_SIZE,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_smsc911x.c_smsc911x_ethtool_get_eeprom.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsc911x_ethtool_get_eeprom, %function
smsc911x_ethtool_get_eeprom:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r3, .L11
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	netdev_priv
	ldr	r4, .L11+4
	mov	r6, r0
	ldr	r3, [r4]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	smsc911x_eeprom_enable_access
	ldr	r1, [r4]
	ldr	r0, [r7]
	bl	min
	subs	r5, r0, #0
	mov	r9, sp
	ble	.L2
	mov	r4, #0
	b	.L5
.L3:
	add	r4, r4, #1
	cmp	r5, r4
	beq	.L2
.L5:
	mov	r2, r9
	mov	r1, r4
	mov	r0, r6
	bl	smsc911x_eeprom_read_location
	cmp	r0, #0
	bge	.L3
	mov	r3, #0
	str	r3, [r7]
	b	.L1
.L2:
	ldr	r1, [r7, #4]
	mov	r0, r8
	mov	r2, r5
	add	r1, r9, r1, lsl #2
	bl	memcpy
	mov	r0, #0
	str	r5, [r7]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	SMSC911X_EEPROM_SIZE
	.size	smsc911x_ethtool_get_eeprom, .-smsc911x_ethtool_get_eeprom
	.comm	SMSC911X_EEPROM_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
