	.file	"extr_qlge_main.c_ql_wait_reg_rdy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"register 0x%.08x access error, value = 0x%.08x!.\n"
	.align 8
.LC1:
	.string	"Timed out waiting for reg %x to come ready.\n"
	.text
	.p2align 4
	.globl	ql_wait_reg_rdy
	.type	ql_wait_reg_rdy, @function
ql_wait_reg_rdy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, DWORD PTR UDELAY_COUNT[rip]
	test	ebx, ebx
	je	.L2
	mov	r14d, edx
	mov	ebp, ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	test	eax, r14d
	jne	.L1
	mov	edi, DWORD PTR UDELAY_DELAY[rip]
	call	udelay@PLT
	sub	ebx, 1
	je	.L2
.L5:
	mov	esi, r13d
	mov	rdi, r12
	call	ql_read32@PLT
	mov	r8d, eax
	and	r8d, ebp
	je	.L3
	mov	edx, DWORD PTR [r12]
	mov	esi, DWORD PTR probe[rip]
	mov	r9d, eax
	mov	r8d, r13d
	lea	rcx, .LC0[rip]
	mov	rdi, r12
	xor	eax, eax
	call	netif_alert@PLT
	mov	r8d, DWORD PTR EIO[rip]
	neg	r8d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR [r12]
	mov	esi, DWORD PTR probe[rip]
	mov	r8d, r13d
	mov	rdi, r12
	lea	rcx, .LC1[rip]
	xor	eax, eax
	call	netif_alert@PLT
	mov	r8d, DWORD PTR ETIMEDOUT[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r8d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	ql_wait_reg_rdy, .-ql_wait_reg_rdy
	.comm	probe,4,4
	.comm	UDELAY_DELAY,4,4
	.comm	UDELAY_COUNT,4,4
	.comm	ETIMEDOUT,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_qlge_main.c_ql_wait_reg_rdy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"register 0x%.08x access error, value = 0x%.08x!.\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Timed out waiting for reg %x to come ready.\012\000"
	.text
	.align	2
	.global	ql_wait_reg_rdy
	.syntax unified
	.arm
	.fpu softvfp
	.type	ql_wait_reg_rdy, %function
ql_wait_reg_rdy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	ip, .L12
	mov	r6, r0
	ldr	r4, [ip]
	mov	r7, r1
	cmp	r4, #0
	sub	sp, sp, #12
	beq	.L2
	mov	r8, r2
	mov	r5, r3
	ldr	r9, .L12+4
	b	.L5
.L3:
	tst	r0, r8
	bne	.L1
	ldr	r0, [r9]
	bl	udelay
	subs	r4, r4, #1
	beq	.L2
.L5:
	mov	r1, r7
	mov	r0, r6
	bl	ql_read32
	ands	r3, r0, r5
	beq	.L3
	ldr	r3, .L12+8
	str	r0, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r3, .L12+12
	ldr	r2, [r6]
	bl	netif_alert
	ldr	r3, .L12+16
	ldr	r3, [r3]
	rsb	r3, r3, #0
.L1:
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r3, .L12+8
	str	r7, [sp]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r3, .L12+20
	ldr	r2, [r6]
	bl	netif_alert
	ldr	r3, .L12+24
	ldr	r3, [r3]
	rsb	r3, r3, #0
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	.align	2
.L12:
	.word	UDELAY_COUNT
	.word	UDELAY_DELAY
	.word	probe
	.word	.LC0
	.word	EIO
	.word	.LC1
	.word	ETIMEDOUT
	.size	ql_wait_reg_rdy, .-ql_wait_reg_rdy
	.comm	probe,4,4
	.comm	UDELAY_DELAY,4,4
	.comm	UDELAY_COUNT,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
