	.file	"extr_82571.c_e1000_init_nvm_params_82571.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_init_nvm_params_82571, @function
e1000_init_nvm_params_82571:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR EECD[rip]
	call	er32@PLT
	mov	edx, DWORD PTR 12[rbx]
	movabs	rsi, 4294967304
	mov	QWORD PTR 4[rbx], rsi
	cmp	edx, 128
	je	.L2
	cmp	edx, 129
	jne	.L3
	movabs	rcx, 68719476768
	mov	QWORD PTR 16[rbx], rcx
.L4:
	mov	esi, DWORD PTR [rbx]
	lea	edx, -130[rsi]
	cmp	edx, 2
	ja	.L6
	mov	edx, eax
	xor	edx, 98304
	and	edx, 98304
	je	.L12
.L6:
	mov	ecx, DWORD PTR E1000_EECD_SIZE_EX_SHIFT[rip]
	and	eax, DWORD PTR E1000_EECD_SIZE_EX_MASK[rip]
	mov	edi, 14
	mov	edx, DWORD PTR e1000_nvm_eeprom_spi[rip]
	sar	eax, cl
	add	eax, DWORD PTR NVM_WORD_SIZE_BASE_SHIFT[rip]
	cmp	eax, 14
	mov	DWORD PTR 36[rbx], edx
	cmovle	edi, eax
	call	BIT@PLT
	mov	DWORD PTR 24[rbx], eax
.L7:
	mov	eax, DWORD PTR [rbx]
	sub	eax, 130
	cmp	eax, 1
	ja	.L8
	mov	eax, DWORD PTR e1000_get_hw_semaphore_82574[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR e1000_put_hw_semaphore_82574[rip]
	mov	DWORD PTR 28[rbx], eax
.L8:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movabs	rcx, 34359738376
	mov	QWORD PTR 16[rbx], rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR E1000_EECD_ADDR_BITS[rip]
	and	edx, eax
	cmp	edx, 1
	sbb	ecx, ecx
	and	ecx, -24
	add	ecx, 32
	cmp	edx, 1
	sbb	edx, edx
	mov	DWORD PTR 16[rbx], ecx
	and	edx, -8
	add	edx, 16
	mov	DWORD PTR 20[rbx], edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR e1000_nvm_flash_hw[rip]
	mov	esi, DWORD PTR E1000_EECD_AUPDEN[rip]
	mov	DWORD PTR 24[rbx], 2048
	mov	edi, DWORD PTR EECD[rip]
	mov	DWORD PTR 36[rbx], edx
	not	esi
	and	esi, eax
	call	ew32@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	e1000_init_nvm_params_82571, .-e1000_init_nvm_params_82571
	.comm	e1000_put_hw_semaphore_82574,4,4
	.comm	e1000_nvm_flash_hw,4,4
	.comm	e1000_nvm_eeprom_spi,4,4
	.comm	e1000_get_hw_semaphore_82574,4,4
	.comm	NVM_WORD_SIZE_BASE_SHIFT,4,4
	.comm	EECD,4,4
	.comm	E1000_EECD_SIZE_EX_SHIFT,4,4
	.comm	E1000_EECD_SIZE_EX_MASK,4,4
	.comm	E1000_EECD_AUPDEN,4,4
	.comm	E1000_EECD_ADDR_BITS,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_82571.c_e1000_init_nvm_params_82571.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_init_nvm_params_82571, %function
e1000_init_nvm_params_82571:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L13
	ldr	r0, [r5]
	bl	er32
	mov	ip, #1
	mov	r3, #8
	ldr	r2, [r4, #12]
	mov	r1, r0
	cmp	r2, #128
	stmib	r4, {r3, ip}
	beq	.L2
	cmp	r2, #129
	bne	.L3
	mov	r2, #32
	mov	r3, #16
	str	r2, [r4, #16]
	str	r3, [r4, #20]
.L4:
	ldr	r3, [r4]
	sub	r3, r3, #130
	cmp	r3, #2
	bhi	.L6
	eor	r3, r1, #98304
	tst	r3, #98304
	beq	.L12
.L6:
	ldr	r0, .L13+4
	ldr	r3, .L13+8
	ldr	r2, .L13+12
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r3, .L13+16
	and	r1, r1, ip
	add	r0, r0, r1, asr r2
	ldr	r3, [r3]
	cmp	r0, #14
	movge	r0, #14
	str	r3, [r4, #36]
	bl	BIT
	str	r0, [r4, #24]
.L7:
	ldr	r3, [r4]
	sub	r3, r3, #130
	cmp	r3, #1
	bhi	.L8
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #32]
	str	r3, [r4, #28]
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	str	r3, [r4, #16]
	str	r3, [r4, #20]
	b	.L4
.L3:
	ldr	r2, .L13+28
	ldr	r2, [r2]
	tst	r0, r2
	moveq	r2, r3
	movne	r3, #32
	movne	r2, #16
	str	r3, [r4, #16]
	str	r2, [r4, #20]
	b	.L4
.L12:
	mov	r3, #2048
	ldr	r0, .L13+32
	ldr	r2, .L13+36
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r0, [r5]
	str	ip, [r4, #36]
	bic	r1, r1, r2
	str	r3, [r4, #24]
	bl	ew32
	b	.L7
.L14:
	.align	2
.L13:
	.word	EECD
	.word	E1000_EECD_SIZE_EX_MASK
	.word	NVM_WORD_SIZE_BASE_SHIFT
	.word	E1000_EECD_SIZE_EX_SHIFT
	.word	e1000_nvm_eeprom_spi
	.word	e1000_get_hw_semaphore_82574
	.word	e1000_put_hw_semaphore_82574
	.word	E1000_EECD_ADDR_BITS
	.word	e1000_nvm_flash_hw
	.word	E1000_EECD_AUPDEN
	.size	e1000_init_nvm_params_82571, .-e1000_init_nvm_params_82571
	.comm	e1000_put_hw_semaphore_82574,4,4
	.comm	e1000_nvm_flash_hw,4,4
	.comm	e1000_nvm_eeprom_spi,4,4
	.comm	e1000_get_hw_semaphore_82574,4,4
	.comm	NVM_WORD_SIZE_BASE_SHIFT,4,4
	.comm	EECD,4,4
	.comm	E1000_EECD_SIZE_EX_SHIFT,4,4
	.comm	E1000_EECD_SIZE_EX_MASK,4,4
	.comm	E1000_EECD_AUPDEN,4,4
	.comm	E1000_EECD_ADDR_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
