	.file	"extr_ixgbe_common.c_ixgbe_calc_eeprom_checksum_generic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ixgbe_calc_eeprom_checksum_generic"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"EEPROM read failed\n"
	.text
	.p2align 4
	.globl	ixgbe_calc_eeprom_checksum_generic
	.type	ixgbe_calc_eeprom_checksum_generic, @function
ixgbe_calc_eeprom_checksum_generic:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	call	DEBUGFUNC@PLT
	cmp	QWORD PTR IXGBE_EEPROM_CHECKSUM[rip], 0
	jle	.L2
	xor	ebp, ebp
	lea	r13, 32[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	r12, QWORD PTR 32[rsp]
	add	rbp, 1
	cmp	QWORD PTR IXGBE_EEPROM_CHECKSUM[rip], rbp
	jle	.L2
.L5:
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, rbx
	call	[QWORD PTR [rbx]]
	test	rax, rax
	je	.L3
.L19:
	lea	rdi, .LC1[rip]
	call	DEBUGOUT@PLT
	mov	eax, DWORD PTR IXGBE_ERR_EEPROM[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, QWORD PTR IXGBE_PCIE_ANALOG_PTR[rip]
	cmp	rbp, QWORD PTR IXGBE_FW_PTR[rip]
	jge	.L6
	lea	rax, 16[rsp]
	lea	r14, 24[rsp]
	mov	QWORD PTR 8[rsp], rax
.L12:
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, rbx
	call	[QWORD PTR [rbx]]
	test	rax, rax
	jne	.L19
	mov	rsi, QWORD PTR 24[rsp]
	cmp	rsi, 65535
	je	.L8
	test	rsi, rsi
	je	.L8
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, rbx
	call	[QWORD PTR [rbx]]
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR 16[rsp]
	cmp	rax, 65535
	je	.L8
	test	rax, rax
	je	.L8
	mov	rcx, QWORD PTR 24[rsp]
	lea	r15, 1[rcx]
	jle	.L8
	lea	r13, 32[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 16[rsp]
	add	r15, 1
	add	rax, QWORD PTR 24[rsp]
	add	r12, QWORD PTR 32[rsp]
	cmp	rax, r15
	jl	.L8
.L11:
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, rbx
	call	[QWORD PTR [rbx]]
	test	rax, rax
	je	.L10
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbp, 1
	cmp	QWORD PTR IXGBE_FW_PTR[rip], rbp
	jg	.L12
.L6:
	mov	eax, DWORD PTR IXGBE_EEPROM_SUM[rip]
	sub	eax, r12d
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ixgbe_calc_eeprom_checksum_generic, .-ixgbe_calc_eeprom_checksum_generic
	.comm	IXGBE_PCIE_ANALOG_PTR,8,8
	.comm	IXGBE_FW_PTR,8,8
	.comm	IXGBE_ERR_EEPROM,4,4
	.comm	IXGBE_EEPROM_SUM,8,8
	.comm	IXGBE_EEPROM_CHECKSUM,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_ixgbe_common.c_ixgbe_calc_eeprom_checksum_generic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ixgbe_calc_eeprom_checksum_generic\000"
	.align	2
.LC1:
	.ascii	"EEPROM read failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ixgbe_calc_eeprom_checksum_generic
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_calc_eeprom_checksum_generic, %function
ixgbe_calc_eeprom_checksum_generic:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, #0
	ldr	r3, .L23
	ldr	r7, .L23+4
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r0, .L23+8
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	str	r5, [sp]
	str	r5, [sp, #4]
	str	r5, [sp, #8]
	bl	DEBUGFUNC
	ldr	r3, [r7]
	cmp	r3, r5
	ble	.L2
	mov	r6, r5
	b	.L5
.L3:
	ldr	r2, [r7]
	ldr	r3, [sp, #8]
	add	r6, r6, #1
	cmp	r2, r6
	add	r5, r5, r3
	ble	.L2
.L5:
	mov	r1, r6
	mov	r0, r4
	ldr	r3, [r4]
	add	r2, sp, #8
	blx	r3
	cmp	r0, #0
	beq	.L3
.L19:
	ldr	r0, .L23+12
	bl	DEBUGOUT
	ldr	r3, .L23+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r3, .L23+20
	ldr	r9, .L23+24
	ldr	r7, [r3]
	ldr	r3, [r9]
	cmp	r7, r3
	bge	.L6
	ldr	r8, .L23+28
.L12:
	mov	r1, r7
	mov	r0, r4
	ldr	r3, [r4]
	add	r2, sp, #4
	blx	r3
	cmp	r0, #0
	bne	.L19
	ldr	r1, [sp, #4]
	cmp	r1, #0
	cmpne	r1, r8
	beq	.L8
	mov	r2, sp
	mov	r0, r4
	ldr	r3, [r4]
	blx	r3
	cmp	r0, #0
	bne	.L19
	ldr	r3, [sp]
	cmp	r3, #0
	cmpne	r3, r8
	bne	.L22
.L8:
	ldr	r3, [r9]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L12
.L6:
	ldr	r3, .L23+32
	ldr	r0, [r3]
	sub	r0, r0, r5
	b	.L1
.L22:
	ldr	r6, [sp, #4]
	cmp	r3, #0
	add	r6, r6, #1
	bgt	.L11
	b	.L8
.L10:
	ldm	sp, {r2, r3}
	add	r6, r6, #1
	add	r3, r3, r2
	ldr	r2, [sp, #8]
	cmp	r3, r6
	add	r5, r5, r2
	blt	.L8
.L11:
	mov	r1, r6
	mov	r0, r4
	ldr	r3, [r4]
	add	r2, sp, #8
	blx	r3
	cmp	r0, #0
	beq	.L10
	b	.L19
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	IXGBE_EEPROM_CHECKSUM
	.word	.LC0
	.word	.LC1
	.word	IXGBE_ERR_EEPROM
	.word	IXGBE_PCIE_ANALOG_PTR
	.word	IXGBE_FW_PTR
	.word	65535
	.word	IXGBE_EEPROM_SUM
	.size	ixgbe_calc_eeprom_checksum_generic, .-ixgbe_calc_eeprom_checksum_generic
	.comm	IXGBE_PCIE_ANALOG_PTR,4,4
	.comm	IXGBE_FW_PTR,4,4
	.comm	IXGBE_ERR_EEPROM,4,4
	.comm	IXGBE_EEPROM_SUM,4,4
	.comm	IXGBE_EEPROM_CHECKSUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
