	.file	"extr_qla_nx.c_qla82xx_write_optrom_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qla82xx_write_optrom_data
	.type	qla82xx_write_optrom_data, @function
qla82xx_write_optrom_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	call	scsi_block_requests@PLT
	mov	ecx, ebp
	mov	edx, r13d
	mov	rsi, r12
	sar	ecx, 2
	mov	rdi, rbx
	call	qla82xx_write_flash_data@PLT
	mov	edi, DWORD PTR [rbx]
	mov	ebp, eax
	call	scsi_unblock_requests@PLT
	test	ebp, ebp
	mov	eax, DWORD PTR QLA_FUNCTION_FAILED[rip]
	cmove	eax, DWORD PTR QLA_SUCCESS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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	qla82xx_write_optrom_data, .-qla82xx_write_optrom_data
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,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_qla_nx.c_qla82xx_write_optrom_data.c"
	.text
	.align	2
	.global	qla82xx_write_optrom_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla82xx_write_optrom_data, %function
qla82xx_write_optrom_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [r0]
	bl	scsi_block_requests
	asr	r3, r7, #2
	mov	r1, r5
	mov	r2, r6
	mov	r0, r4
	bl	qla82xx_write_flash_data
	mov	r5, r0
	ldr	r0, [r4]
	bl	scsi_unblock_requests
	cmp	r5, #0
	ldrne	r3, .L6
	ldreq	r3, .L6+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	QLA_FUNCTION_FAILED
	.word	QLA_SUCCESS
	.size	qla82xx_write_optrom_data, .-qla82xx_write_optrom_data
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
