	.file	"extr_qla_nx.c_qla82xx_read_status_reg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error waiting for rom done.\n"
	.text
	.p2align 4
	.type	qla82xx_read_status_reg, @function
qla82xx_read_status_reg:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR [rdi]
	mov	rbx, rsi
	call	pci_get_drvdata@PLT
	mov	edx, DWORD PTR M25P_INSTR_RDSR[rip]
	mov	esi, DWORD PTR QLA82XX_ROMUSB_ROM_INSTR_OPCODE[rip]
	mov	rdi, rbp
	mov	r12, rax
	call	qla82xx_wr_32@PLT
	mov	rdi, rbp
	call	qla82xx_wait_rom_busy@PLT
	mov	rdi, rbp
	call	qla82xx_wait_rom_done@PLT
	test	rax, rax
	jne	.L6
	mov	esi, DWORD PTR QLA82XX_ROMUSB_ROM_RDATA[rip]
	mov	rdi, rbp
	call	qla82xx_rd_32@PLT
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR ql_log_warn[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 45068
	mov	rsi, r12
	call	ql_log@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	qla82xx_read_status_reg, .-qla82xx_read_status_reg
	.comm	ql_log_warn,4,4
	.comm	QLA82XX_ROMUSB_ROM_RDATA,4,4
	.comm	QLA82XX_ROMUSB_ROM_INSTR_OPCODE,4,4
	.comm	M25P_INSTR_RDSR,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_read_status_reg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error waiting for rom done.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla82xx_read_status_reg, %function
qla82xx_read_status_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r7, r1
	bl	pci_get_drvdata
	ldr	ip, .L7
	ldr	r2, .L7+4
	ldr	r1, [ip]
	ldr	r2, [r2]
	mov	r6, r0
	mov	r0, r4
	bl	qla82xx_wr_32
	mov	r0, r4
	bl	qla82xx_wait_rom_busy
	mov	r0, r4
	bl	qla82xx_wait_rom_done
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, .L7+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	qla82xx_rd_32
	str	r0, [r7]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+12
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r2, .L7+16
	ldr	r3, .L7+20
	bl	ql_log
	mvn	r5, #0
	b	.L1
.L8:
	.align	2
.L7:
	.word	QLA82XX_ROMUSB_ROM_INSTR_OPCODE
	.word	M25P_INSTR_RDSR
	.word	QLA82XX_ROMUSB_ROM_RDATA
	.word	ql_log_warn
	.word	45068
	.word	.LC0
	.size	qla82xx_read_status_reg, .-qla82xx_read_status_reg
	.comm	ql_log_warn,4,4
	.comm	QLA82XX_ROMUSB_ROM_RDATA,4,4
	.comm	QLA82XX_ROMUSB_ROM_INSTR_OPCODE,4,4
	.comm	M25P_INSTR_RDSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
