	.file	"extr_reset.c_ath5k_hw_register_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ath5k_hw_register_timeout
	.type	ath5k_hw_register_timeout, @function
ath5k_hw_register_timeout:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	ebx, DWORD PTR AR5K_TUNE_REGISTER_TIMEOUT[rip]
	test	ebx, ebx
	jle	.L2
	mov	r14, rdi
	mov	r13d, esi
	mov	ebp, edx
	mov	r15d, ecx
	mov	r12d, r8d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	and	eax, ebp
.L4:
	cmp	r15d, eax
	je	.L8
	mov	edi, 15
	call	udelay@PLT
	sub	ebx, 1
	je	.L2
.L6:
	mov	esi, r13d
	mov	rdi, r14
	call	ath5k_hw_reg_read@PLT
	test	r12d, r12d
	je	.L12
	and	eax, ebp
	je	.L4
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EAGAIN[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	ath5k_hw_register_timeout, .-ath5k_hw_register_timeout
	.comm	EAGAIN,4,4
	.comm	AR5K_TUNE_REGISTER_TIMEOUT,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_reset.c_ath5k_hw_register_timeout.c"
	.text
	.align	2
	.global	ath5k_hw_register_timeout
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath5k_hw_register_timeout, %function
ath5k_hw_register_timeout:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L13
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [ip]
	ldr	r9, [sp, #32]
	cmp	r4, #0
	ble	.L2
	mov	r7, r0
	mov	r6, r1
	mov	r5, r2
	mov	r8, r3
	b	.L6
.L12:
	mov	r0, #15
	bl	udelay
	subs	r4, r4, #1
	beq	.L2
.L6:
	mov	r1, r6
	mov	r0, r7
	bl	ath5k_hw_reg_read
	cmp	r9, #0
	andeq	r0, r0, r5
	beq	.L4
	ands	r0, r0, r5
	bne	.L8
.L4:
	cmp	r8, r0
	bne	.L12
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	AR5K_TUNE_REGISTER_TIMEOUT
	.word	EAGAIN
	.size	ath5k_hw_register_timeout, .-ath5k_hw_register_timeout
	.comm	EAGAIN,4,4
	.comm	AR5K_TUNE_REGISTER_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
