	.file	"extr_qlge_main.c_ql_validate_flash.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid flash signature.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Invalid flash checksum, csum = 0x%.04x.\n"
	.text
	.p2align 4
	.type	ql_validate_flash, @function
ql_validate_flash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	mov	rsi, rdx
	mov	edx, 4
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, 4[rdi]
	mov	rdi, rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	strncmp@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	test	r13d, r13d
	jle	.L1
	lea	eax, -1[r13]
	lea	r13, 8[rbp+rax*4]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR [rbx]
	add	rbx, 4
	call	le16_to_cpu@PLT
	add	r12d, eax
	cmp	r13, rbx
	jne	.L5
	test	r12d, r12d
	jne	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ifup[rip]
	mov	r8d, r12d
	mov	rdi, rbp
	lea	rcx, .LC1[rip]
	xor	eax, eax
	call	netif_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR ifup[rip]
	mov	rdi, rbp
	xor	eax, eax
	lea	rcx, .LC0[rip]
	call	netif_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ql_validate_flash, .-ql_validate_flash
	.comm	ifup,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_qlge_main.c_ql_validate_flash.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid flash signature.\012\000"
	.align	2
.LC1:
	.ascii	"Invalid flash checksum, csum = 0x%.04x.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_validate_flash, %function
ql_validate_flash:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r6, r0, #4
	mov	r8, r0
	mov	r7, r1
	mov	r0, r6
	mov	r1, r2
	sub	sp, sp, #8
	mov	r2, #4
	bl	strncmp
	subs	r5, r0, #0
	bne	.L2
	cmp	r7, #0
	movgt	r4, r5
	ble	.L1
.L3:
	ldr	r0, [r6], #4
	bl	le16_to_cpu
	add	r4, r4, #1
	cmp	r7, r4
	add	r5, r5, r0
	bne	.L3
	cmp	r5, #0
	bne	.L12
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13
	str	r5, [sp]
	ldr	r1, [r3]
	mov	r0, r8
	ldr	r3, .L13+4
	ldr	r2, [r8]
	bl	netif_err
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L13
	mov	r0, r8
	ldr	r1, [r2]
	ldr	r3, .L13+8
	ldr	r2, [r8]
	bl	netif_err
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	ifup
	.word	.LC1
	.word	.LC0
	.size	ql_validate_flash, .-ql_validate_flash
	.comm	ifup,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
