	.file	"extr_qlcnic_83xx_init.c_qlcnic_83xx_copy_fw_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MS memory write failed\n"
	.text
	.p2align 4
	.type	qlcnic_83xx_copy_fw_file, @function
qlcnic_83xx_copy_fw_file:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	r14, QWORD PTR [rax]
	mov	rbp, QWORD PTR [r14]
	mov	edi, DWORD PTR 0[rbp]
	call	vzalloc@PLT
	test	rax, rax
	je	.L27
	mov	r12, rax
	movsx	rax, DWORD PTR 0[rbp]
	xor	ebx, ebx
	mov	r15, QWORD PTR 8[rbp]
	shr	rax, 3
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR [r15]
	add	r15, 4
	call	__le32_to_cpu@PLT
	mov	QWORD PTR [r12+rbx*8], rax
	movsx	rax, DWORD PTR 0[rbp]
	add	rbx, 1
	shr	rax, 3
	cmp	rax, rbx
	ja	.L7
.L8:
	mov	rdi, QWORD PTR 8[r13]
	mov	esi, DWORD PTR QLCNIC_FW_IMAGE_ADDR[rip]
	call	QLCRDX@PLT
	mov	ebx, DWORD PTR 0[rbp]
	mov	rdx, r12
	mov	rdi, r13
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	and	ebx, -16
	movsx	rbx, ebx
	mov	rcx, rbx
	shr	rcx, 4
	call	qlcnic_ms_mem_write128@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r15d, eax
	jne	.L25
	mov	r15d, DWORD PTR 0[rbp]
	and	r15d, 15
	jne	.L28
.L9:
	mov	rdi, rbp
	call	release_firmware@PLT
	mov	QWORD PTR [r14], 0
	mov	rdi, r12
	call	vfree@PLT
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L28:
	.cfi_restore_state
	add	rsi, rbx
	lea	edi, -1[r15]
	lea	rcx, [r12+rbx*8]
	xor	eax, eax
	lea	r8, 16[rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR [r8+rax*8], rdx
	mov	rdx, rax
	add	rax, 1
	cmp	rdx, rdi
	jne	.L10
	mov	edx, 15
	movsx	rcx, r15d
	sub	edx, r15d
	lea	rax, [r8+rcx*8]
	add	rdx, rcx
	lea	rdx, 24[rsp+rdx*8]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rax, rdx
	jne	.L11
	mov	ecx, 1
	mov	rdx, r8
	mov	rdi, r13
	call	qlcnic_ms_mem_write128@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L9
.L25:
	mov	rdi, QWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	release_firmware@PLT
	mov	r15d, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR [r14], 0
	neg	r15d
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qlcnic_83xx_copy_fw_file, .-qlcnic_83xx_copy_fw_file
	.comm	QLCNIC_FW_IMAGE_ADDR,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_qlcnic_83xx_init.c_qlcnic_83xx_copy_fw_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MS memory write failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_83xx_copy_fw_file, %function
qlcnic_83xx_copy_fw_file:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [r3]
	ldr	r2, .L29
	ldr	r6, [r10]
	sub	sp, sp, #72
	mov	r9, r0
	ldr	r0, [r6]
	ldr	r2, [r2]
	str	r2, [sp, #68]
	mov	r2,#0
	bl	vzalloc
	subs	r8, r0, #0
	beq	.L26
	ldm	r6, {r3, r7}
	lsrs	r3, r3, #2
	addne	r7, r7, #4
	movne	r5, #0
	subne	r7, r7, r8
	subne	r4, r8, #4
	beq	.L8
.L7:
	ldr	r0, [r7, r4]
	bl	__le32_to_cpu
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r5, r3, lsr #2
	str	r0, [r4, #4]!
	bcc	.L7
.L8:
	ldr	r3, .L29+4
	ldr	r0, [r9, #4]
	ldr	r1, [r3]
	bl	QLCRDX
	ldr	r4, [r6]
	mov	r1, r0
	mov	r7, r0
	mov	r2, r8
	mov	r0, r9
	lsr	r3, r4, #4
	bl	qlcnic_ms_mem_write128
	subs	r5, r0, #0
	bne	.L24
	ldr	r3, [r6]
	ands	r5, r3, #15
	bne	.L27
.L9:
	mov	r0, r6
	bl	release_firmware
	mov	r3, #0
	mov	r0, r8
	str	r3, [r10]
	bl	vfree
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	mov	r2, sp
	bic	r3, r4, #15
	orr	lr, r5, r3
	add	r1, r7, r3
	add	lr, r8, lr, lsl #2
	add	r3, r8, r3, lsl #2
.L10:
	ldr	ip, [r3], #4
	cmp	r3, lr
	str	ip, [r2, #4]!
	bne	.L10
	mov	r0, #0
	add	r3, sp, #4
	add	r3, r3, r5, lsl #2
	add	r2, sp, #68
.L11:
	str	r0, [r3], #4
	cmp	r2, r3
	bne	.L11
	mov	r3, #1
	mov	r0, r9
	add	r2, sp, #4
	bl	qlcnic_ms_mem_write128
	subs	r5, r0, #0
	beq	.L9
.L24:
	ldr	r0, [r9]
	ldr	r1, .L29+8
	bl	dev_err
	b	.L9
.L26:
	mov	r0, r6
	bl	release_firmware
	ldr	r3, .L29+12
	str	r8, [r10]
	ldr	r3, [r3]
	rsb	r5, r3, #0
	b	.L1
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	QLCNIC_FW_IMAGE_ADDR
	.word	.LC0
	.word	ENOMEM
	.size	qlcnic_83xx_copy_fw_file, .-qlcnic_83xx_copy_fw_file
	.comm	QLCNIC_FW_IMAGE_ADDR,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
