	.file	"extr_bnad_ethtool.c_bnad_flash_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BNA: Can't locate firmware %s\n"
	.align 8
.LC1:
	.string	"BNA: Flash update failed with err: %d\n"
	.align 8
.LC2:
	.string	"BNA: Firmware image update to flash failed with: %d\n"
	.text
	.p2align 4
	.type	bnad_flash_device, @function
bnad_flash_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, 8[rsp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rbp, rax
	call	request_firmware@PLT
	test	eax, eax
	jne	.L8
	lea	r13, 20[rsp]
	mov	QWORD PTR 24[rsp], rbp
	lea	rbx, 16[rsp]
	mov	rdi, r13
	mov	DWORD PTR 16[rsp], 0
	call	init_completion@PLT
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rbp]
	xor	r9d, r9d
	mov	esi, DWORD PTR bnad_cb_completion[rip]
	lea	rdi, 8[rbp]
	mov	rcx, QWORD PTR 8[rax]
	push	rbx
	.cfi_def_cfa_offset 104
	push	rsi
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR BFA_FLASH_PART_FWIMG[rip]
	mov	r8d, DWORD PTR [rax]
	call	bfa_nw_flash_update_part@PLT
	mov	r12d, eax
	cmp	DWORD PTR BFA_STATUS_OK[rip], r12d
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	je	.L4
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	pr_warn@PLT
	mov	r12d, DWORD PTR EIO[rip]
	mov	rdi, rbp
	neg	r12d
	call	spin_unlock_irq@PLT
.L3:
	mov	rdi, QWORD PTR 8[rsp]
	call	release_firmware@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 56
	.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
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	rdi, r13
	call	wait_for_completion@PLT
	mov	esi, DWORD PTR 16[rsp]
	cmp	esi, DWORD PTR BFA_STATUS_OK[rip]
	je	.L3
	mov	r12d, DWORD PTR EIO[rip]
	lea	rdi, .LC2[rip]
	neg	r12d
	call	pr_warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC0[rip]
	mov	r12d, eax
	call	pr_err@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnad_flash_device, .-bnad_flash_device
	.comm	bnad_cb_completion,4,4
	.comm	EIO,4,4
	.comm	BFA_STATUS_OK,4,4
	.comm	BFA_FLASH_PART_FWIMG,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_bnad_ethtool.c_bnad_flash_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BNA: Can't locate firmware %s\012\000"
	.align	2
.LC1:
	.ascii	"BNA: Flash update failed with err: %d\012\000"
	.align	2
.LC2:
	.ascii	"BNA: Firmware image update to flash failed with: %d"
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnad_flash_device, %function
bnad_flash_device:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	sub	sp, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r5, r1
	bl	netdev_priv
	ldr	r1, [r5]
	ldr	r2, [r0, #12]
	mov	r6, r0
	add	r0, sp, #20
	bl	request_firmware
	subs	r4, r0, #0
	bne	.L8
	add	r0, sp, #28
	str	r4, [sp, #24]
	str	r6, [sp, #32]
	bl	init_completion
	mov	r0, r6
	bl	spin_lock_irq
	ldr	r3, .L10+4
	ldr	r1, [sp, #20]
	ldr	ip, [r3]
	ldr	r2, [r6, #4]
	ldr	r3, [r1, #4]
	stmib	sp, {r4, ip}
	add	r0, sp, #24
	str	r0, [sp, #12]
	ldr	r0, [r1]
	ldr	r1, .L10+8
	str	r0, [sp]
	ldr	r1, [r1]
	add	r0, r6, #8
	bl	bfa_nw_flash_update_part
	ldr	r5, .L10+12
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L4
	mov	r1, r0
	ldr	r0, .L10+16
	bl	pr_warn
	ldr	r3, .L10+20
	mov	r0, r6
	ldr	r4, [r3]
	rsb	r4, r4, #0
	bl	spin_unlock_irq
.L3:
	ldr	r0, [sp, #20]
	bl	release_firmware
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r6
	bl	spin_unlock_irq
	add	r0, sp, #28
	bl	wait_for_completion
	ldr	r3, [r5]
	ldr	r1, [sp, #24]
	cmp	r1, r3
	beq	.L3
	ldr	r3, .L10+20
	ldr	r0, .L10+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	bl	pr_warn
	b	.L3
.L8:
	ldr	r1, [r5]
	ldr	r0, .L10+28
	bl	pr_err
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	bnad_cb_completion
	.word	BFA_FLASH_PART_FWIMG
	.word	BFA_STATUS_OK
	.word	.LC1
	.word	EIO
	.word	.LC2
	.word	.LC0
	.size	bnad_flash_device, .-bnad_flash_device
	.comm	bnad_cb_completion,4,4
	.comm	EIO,4,4
	.comm	BFA_STATUS_OK,4,4
	.comm	BFA_FLASH_PART_FWIMG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
