	.file	"extr_netxen_nic_init.c_netxen_check_flash_fw_compatibility.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to read flash fwversion\n"
	.align 8
.LC1:
	.string	"Flash fw[%d.%d.%d] is < min fw supported[4.0.505]. Please update firmware on flash\n"
	.text
	.p2align 4
	.globl	netxen_check_flash_fw_compatibility
	.type	netxen_check_flash_fw_compatibility, @function
netxen_check_flash_fw_compatibility:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	NX_IS_REVISION_P2@PLT
	test	rax, rax
	je	.L2
.L5:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR NX_FW_VERSION_OFFSET[rip]
	mov	rdx, rsp
	mov	rdi, rbx
	call	netxen_rom_fast_read@PLT
	test	rax, rax
	jne	.L10
	mov	rdi, QWORD PTR [rsp]
	call	NETXEN_DECODE_VERSION@PLT
	cmp	rax, QWORD PTR NETXEN_MIN_P3_FW_SUPP[rip]
	mov	QWORD PTR [rsp], rax
	mov	rdi, rax
	jge	.L5
	call	_build@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	ebp, eax
	call	_minor@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, eax
	call	_major@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, ebp
	mov	ecx, r12d
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_info@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	netxen_check_flash_fw_compatibility, .-netxen_check_flash_fw_compatibility
	.comm	NX_FW_VERSION_OFFSET,4,4
	.comm	NETXEN_MIN_P3_FW_SUPP,8,8
	.comm	EIO,4,4
	.comm	EINVAL,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_netxen_nic_init.c_netxen_check_flash_fw_compatibility.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to read flash fwversion\012\000"
	.align	2
.LC1:
	.ascii	"Flash fw[%d.%d.%d] is < min fw supported[4.0.505]. "
	.ascii	"Please update firmware on flash\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	netxen_check_flash_fw_compatibility
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_check_flash_fw_compatibility, %function
netxen_check_flash_fw_compatibility:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	NX_IS_REVISION_P2
	cmp	r0, #0
	beq	.L2
.L5:
	mov	r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L11+4
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #8
	bl	netxen_rom_fast_read
	cmp	r0, #0
	bne	.L10
	ldr	r0, [sp, #8]
	bl	NETXEN_DECODE_VERSION
	ldr	r2, .L11+8
	str	r0, [sp, #8]
	ldr	r2, [r2]
	cmp	r0, r2
	bge	.L5
	ldr	r6, [r4]
	bl	_major
	mov	r4, r0
	ldr	r0, [sp, #8]
	bl	_minor
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	_build
	mov	r3, r5
	str	r0, [sp]
	mov	r2, r4
	mov	r0, r6
	ldr	r1, .L11+12
	bl	dev_info
	ldr	r3, .L11+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L10:
	ldr	r0, [r4]
	ldr	r1, .L11+20
	bl	dev_err
	ldr	r3, .L11+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	NX_FW_VERSION_OFFSET
	.word	NETXEN_MIN_P3_FW_SUPP
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.word	EIO
	.size	netxen_check_flash_fw_compatibility, .-netxen_check_flash_fw_compatibility
	.comm	NX_FW_VERSION_OFFSET,4,4
	.comm	NETXEN_MIN_P3_FW_SUPP,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
