	.file	"extr_r819xU_phy.c_rtl8192_phy_QueryRFReg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtl8192_phy_QueryRFReg
	.type	rtl8192_phy_QueryRFReg, @function
rtl8192_phy_QueryRFReg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	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
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	ieee80211_priv@PLT
	mov	esi, r13d
	mov	rdi, r12
	mov	rbx, rax
	call	rtl8192_phy_CheckIsLegalRFPath@PLT
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR RF_OP_By_FW[rip]
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, r12
	cmp	QWORD PTR [rbx], rax
	je	.L10
	call	rtl8192_phy_RFSerialRead@PLT
	mov	ebx, eax
.L4:
	bsf	ecx, ebp
	mov	eax, -1
	cmove	ecx, eax
	mov	eax, ebx
	and	eax, ebp
	sar	eax, cl
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	call	phy_FwRFSerialRead@PLT
	mov	edi, 200
	mov	ebx, eax
	call	udelay@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rtl8192_phy_QueryRFReg, .-rtl8192_phy_QueryRFReg
	.comm	RF_OP_By_FW,8,8
	.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_r819xU_phy.c_rtl8192_phy_QueryRFReg.c"
	.text
	.align	2
	.global	rtl8192_phy_QueryRFReg
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8192_phy_QueryRFReg, %function
rtl8192_phy_QueryRFReg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	mov	r8, r2
	mov	r5, r3
	bl	ieee80211_priv
	mov	r1, r6
	mov	r7, r0
	mov	r0, r4
	bl	rtl8192_phy_CheckIsLegalRFPath
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L11
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r1, r6
	cmp	r2, r3
	mov	r0, r4
	mov	r2, r8
	beq	.L10
	bl	rtl8192_phy_RFSerialRead
	mov	r4, r0
.L4:
	rsb	r2, r5, #0
	and	r2, r2, r5
	clz	r2, r2
	and	r0, r4, r5
	rsb	r3, r2, #31
	asr	r0, r0, r3
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	bl	phy_FwRFSerialRead
	mov	r4, r0
	mov	r0, #200
	bl	udelay
	b	.L4
.L12:
	.align	2
.L11:
	.word	RF_OP_By_FW
	.size	rtl8192_phy_QueryRFReg, .-rtl8192_phy_QueryRFReg
	.comm	RF_OP_By_FW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
