	.file	"extr_qla_nx.c_qla82xx_flash_wait_write_finish.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Timeout reached waiting for write finish.\n"
	.text
	.p2align 4
	.type	qla82xx_flash_wait_write_finish, @function
qla82xx_flash_wait_write_finish:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 50000
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	call	pci_get_drvdata@PLT
	mov	esi, DWORD PTR QLA82XX_ROMUSB_ROM_ABYTE_CNT[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	r14, rax
	call	qla82xx_wr_32@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	and	r15d, 1
	je	.L1
.L4:
	mov	rsi, r13
	mov	rdi, rbp
	call	qla82xx_read_status_reg@PLT
	mov	edi, 10
	mov	r15d, DWORD PTR 4[rsp]
	mov	r12d, eax
	call	udelay@PLT
	xor	eax, eax
	call	cond_resched@PLT
	sub	rbx, 1
	je	.L13
	test	r12d, r12d
	je	.L14
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR ql_log_warn[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 45069
	mov	rsi, r14
	mov	r12d, -1
	call	ql_log@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qla82xx_flash_wait_write_finish, .-qla82xx_flash_wait_write_finish
	.comm	ql_log_warn,4,4
	.comm	QLA82XX_ROMUSB_ROM_ABYTE_CNT,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_flash_wait_write_finish.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Timeout reached waiting for write finish.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla82xx_flash_wait_write_finish, %function
qla82xx_flash_wait_write_finish:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L11
	sub	sp, sp, #8
	mov	r7, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pci_get_drvdata
	ldr	r2, .L11+4
	mov	r8, r0
	ldr	r1, [r2]
	mov	r0, r7
	mov	r2, #0
	bl	qla82xx_wr_32
	ldr	r6, .L11+8
.L4:
	mov	r1, sp
	mov	r0, r7
	bl	qla82xx_read_status_reg
	mov	r4, r0
	mov	r0, #10
	ldr	r5, [sp]
	bl	udelay
	bl	cond_resched
	subs	r6, r6, #1
	beq	.L9
	cmp	r4, #0
	movne	r5, #0
	andeq	r5, r5, #1
	cmp	r5, #0
	bne	.L4
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L11+12
	mov	r1, r8
	ldr	r0, [r3]
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	bl	ql_log
	mvn	r4, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	QLA82XX_ROMUSB_ROM_ABYTE_CNT
	.word	50000
	.word	ql_log_warn
	.word	45069
	.word	.LC0
	.size	qla82xx_flash_wait_write_finish, .-qla82xx_flash_wait_write_finish
	.comm	ql_log_warn,4,4
	.comm	QLA82XX_ROMUSB_ROM_ABYTE_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
