	.file	"extr_bcma-hcd.c_bcma_wait_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcma_wait_bits, @function
bcma_wait_bits:
.LFB0:
	.cfi_startproc
	endbr64
	test	ecx, ecx
	jle	.L8
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 10
	add	ebx, 1
	call	udelay@PLT
	cmp	r12d, ebx
	je	.L12
.L4:
	mov	esi, r14d
	mov	rdi, r13
	call	bcma_read32@PLT
	and	eax, ebp
	cmp	eax, ebp
	jne	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L12:
	.cfi_restore_state
	mov	eax, 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	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	bcma_wait_bits, .-bcma_wait_bits
	.comm	ETIMEDOUT,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_bcma-hcd.c_bcma_wait_bits.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcma_wait_bits, %function
bcma_wait_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r3, #0
	ble	.L2
	mov	r6, r0
	mov	r7, r1
	mov	r8, r2
	mov	r4, #0
	b	.L4
.L9:
	mov	r0, #10
	bl	udelay
	cmp	r5, r4
	beq	.L2
.L4:
	mov	r1, r7
	mov	r0, r6
	bl	bcma_read32
	bics	r3, r8, r0
	add	r4, r4, #1
	bne	.L9
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L10
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	ETIMEDOUT
	.size	bcma_wait_bits, .-bcma_wait_bits
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
