	.file	"extr_e1000_hw.c_e1000_update_eeprom_checksum.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"e1000_update_eeprom_checksum"
.LC1:
	.string	"EEPROM Read Error\n"
.LC2:
	.string	"EEPROM Write Error\n"
	.text
	.p2align 4
	.globl	e1000_update_eeprom_checksum
	.type	e1000_update_eeprom_checksum, @function
e1000_update_eeprom_checksum:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], 0
	call	e_dbg@PLT
	mov	rsi, QWORD PTR EEPROM_CHECKSUM_REG[rip]
	test	rsi, rsi
	jle	.L2
	xor	ebx, ebx
	lea	r12, 16[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR EEPROM_CHECKSUM_REG[rip]
	mov	rax, QWORD PTR 16[rsp]
	add	rbx, 1
	add	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rsp], rax
	cmp	rsi, rbx
	jle	.L6
.L5:
	mov	rcx, r12
	mov	edx, 1
	mov	rsi, rbx
	mov	rdi, rbp
	call	e1000_read_eeprom@PLT
	test	rax, rax
	jns	.L3
	lea	rdi, .LC1[rip]
	call	e_dbg@PLT
	mov	eax, DWORD PTR E1000_ERR_EEPROM[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR EEPROM_SUM[rip]
	lea	rcx, 8[rsp]
	mov	rdi, rbp
	sub	rdx, rax
	mov	QWORD PTR 8[rsp], rdx
	mov	edx, 1
	call	e1000_write_eeprom@PLT
	mov	r8, rax
	mov	eax, DWORD PTR E1000_SUCCESS[rip]
	test	r8, r8
	jns	.L1
	lea	rdi, .LC2[rip]
	call	e_dbg@PLT
	mov	eax, DWORD PTR E1000_ERR_EEPROM[rip]
	neg	eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_update_eeprom_checksum, .-e1000_update_eeprom_checksum
	.comm	EEPROM_SUM,8,8
	.comm	EEPROM_CHECKSUM_REG,8,8
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_ERR_EEPROM,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_e1000_hw.c_e1000_update_eeprom_checksum.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"e1000_update_eeprom_checksum\000"
	.align	2
.LC1:
	.ascii	"EEPROM Read Error\012\000"
	.align	2
.LC2:
	.ascii	"EEPROM Write Error\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	e1000_update_eeprom_checksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_update_eeprom_checksum, %function
e1000_update_eeprom_checksum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	ldr	r3, .L14
	ldr	r6, .L14+4
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r0, .L14+8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	str	r4, [sp, #4]
	bl	e_dbg
	ldr	r1, [r6]
	cmp	r1, r4
	bgt	.L5
	b	.L2
.L3:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	ldr	r1, [r6]
	add	r4, r4, #1
	add	r3, r3, r2
	cmp	r1, r4
	str	r3, [sp, #4]
	ble	.L6
.L5:
	mov	r2, #1
	mov	r1, r4
	mov	r0, r5
	add	r3, sp, #8
	bl	e1000_read_eeprom
	cmp	r0, #0
	bge	.L3
	ldr	r0, .L14+12
	bl	e_dbg
	ldr	r3, .L14+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [sp, #4]
.L6:
	ldr	r2, .L14+20
	mov	r0, r5
	ldr	ip, [r2]
	mov	r2, #1
	sub	ip, ip, r3
	add	r3, sp, #4
	str	ip, [sp, #4]
	bl	e1000_write_eeprom
	cmp	r0, #0
	ldrge	r3, .L14+24
	ldrge	r0, [r3]
	bge	.L1
.L13:
	ldr	r0, .L14+28
	bl	e_dbg
	ldr	r3, .L14+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	EEPROM_CHECKSUM_REG
	.word	.LC0
	.word	.LC1
	.word	E1000_ERR_EEPROM
	.word	EEPROM_SUM
	.word	E1000_SUCCESS
	.word	.LC2
	.size	e1000_update_eeprom_checksum, .-e1000_update_eeprom_checksum
	.comm	EEPROM_SUM,4,4
	.comm	EEPROM_CHECKSUM_REG,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_ERR_EEPROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
