	.file	"extr_ar9003_paprd.c_ar9003_paprd_is_done.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"AGC2_PWR = 0x%x training done = 0x%x\n"
	.text
	.p2align 4
	.globl	ar9003_paprd_is_done
	.type	ar9003_paprd_is_done, @function
ar9003_paprd_is_done:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_TRAINER_STAT1[rip]
	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
	call	REG_READ_FIELD@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	AR_SREV_9485@PLT
	cmp	ebx, 1
	jne	.L5
	test	rax, rax
	je	.L2
.L5:
.L4:
	endbr64
	test	ebx, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	setne	al
	pop	r12
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR[rip]
	mov	esi, DWORD PTR AR_PHY_PAPRD_TRAINER_STAT1[rip]
	mov	rdi, rbp
	call	REG_READ_FIELD@PLT
	mov	r12d, DWORD PTR CALIBRATE[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	ath9k_hw_common@PLT
	mov	ecx, ebx
	mov	esi, r12d
	mov	r8d, 1
	mov	edi, eax
	lea	rdx, .LC0[rip]
	call	ath_dbg@PLT
	cmp	DWORD PTR PAPRD_IDEAL_AGC2_PWR_RANGE[rip], ebx
	pop	rbx
	.cfi_def_cfa_offset 24
	setl	al
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	movzx	eax, al
	ret
	.cfi_endproc
.LFE0:
	.size	ar9003_paprd_is_done, .-ar9003_paprd_is_done
	.comm	PAPRD_IDEAL_AGC2_PWR_RANGE,4,4
	.comm	CALIBRATE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR,4,4
	.comm	AR_PHY_PAPRD_TRAINER_STAT1,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_ar9003_paprd.c_ar9003_paprd_is_done.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AGC2_PWR = 0x%x training done = 0x%x\012\000"
	.text
	.align	2
	.global	ar9003_paprd_is_done
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar9003_paprd_is_done, %function
ar9003_paprd_is_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L6
	ldr	r6, .L6+4
	ldr	r2, [r3]
	ldr	r1, [r6]
	sub	sp, sp, #8
	mov	r5, r0
	bl	REG_READ_FIELD
	mov	r4, r0
	mov	r0, r5
	bl	AR_SREV_9485
	cmp	r4, #1
	cmpeq	r0, #0
	beq	.L2
.L3:
	subs	r0, r4, #0
	movne	r0, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L6+8
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r5
	bl	REG_READ_FIELD
	mov	r4, r0
	mov	r0, r5
	bl	ath9k_hw_common
	mov	r1, #1
	mov	r5, r4
	ldr	r2, .L6+12
	str	r1, [sp]
	mov	r3, r4
	ldr	r1, [r2]
	ldr	r2, .L6+16
	bl	ath_dbg
	ldr	r3, .L6+20
	ldr	r4, [r3]
	cmp	r4, r5
	movge	r0, #0
	movlt	r0, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE
	.word	AR_PHY_PAPRD_TRAINER_STAT1
	.word	AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR
	.word	CALIBRATE
	.word	.LC0
	.word	PAPRD_IDEAL_AGC2_PWR_RANGE
	.size	ar9003_paprd_is_done, .-ar9003_paprd_is_done
	.comm	PAPRD_IDEAL_AGC2_PWR_RANGE,4,4
	.comm	CALIBRATE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_TRAIN_DONE,4,4
	.comm	AR_PHY_PAPRD_TRAINER_STAT1_PAPRD_AGC2_PWR,4,4
	.comm	AR_PHY_PAPRD_TRAINER_STAT1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
