	.file	"extr_phy_common.c__rtl92c_phy_rf_serial_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"return all one\n"
.LC1:
	.string	"RFR-%d Addr[0x%x]=0x%x\n"
	.text
	.p2align 4
	.globl	_rtl92c_phy_rf_serial_read
	.type	_rtl92c_phy_rf_serial_read, @function
_rtl92c_phy_rf_serial_read:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	rtl_priv@PLT
	mov	rdi, rbp
	mov	r14, rax
	mov	eax, r13d
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR [r14]
	lea	r15, [rax+rdx*4]
	call	RT_CANNOT_IO@PLT
	test	rax, rax
	jne	.L16
	mov	edx, DWORD PTR MASKDWORD[rip]
	mov	esi, DWORD PTR RFPGA0_XA_HSSIPARAMETER2[rip]
	mov	rdi, rbp
	call	rtl_get_bbreg@PLT
	cmp	DWORD PTR RF90_PATH_A[rip], r13d
	mov	ebx, eax
	je	.L4
	mov	esi, DWORD PTR 8[r15]
	mov	edx, DWORD PTR MASKDWORD[rip]
	mov	rdi, rbp
	call	rtl_get_bbreg@PLT
.L4:
	mov	edx, DWORD PTR BLSSIREADADDRESS[rip]
	mov	ecx, DWORD PTR BLSSIREADEDGE[rip]
	sal	r12d, 23
	mov	rdi, rbp
	and	r12d, 528482304
	mov	esi, DWORD PTR RFPGA0_XA_HSSIPARAMETER2[rip]
	not	edx
	or	r12d, ecx
	not	ecx
	and	eax, edx
	mov	edx, DWORD PTR MASKDWORD[rip]
	and	ecx, ebx
	or	r12d, eax
	call	rtl_set_bbreg@PLT
	mov	edi, 1
	call	mdelay@PLT
	mov	esi, DWORD PTR 8[r15]
	mov	ecx, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR MASKDWORD[rip]
	call	rtl_set_bbreg@PLT
	mov	edi, 1
	call	mdelay@PLT
	or	ebx, DWORD PTR BLSSIREADEDGE[rip]
	mov	edx, DWORD PTR MASKDWORD[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR RFPGA0_XA_HSSIPARAMETER2[rip]
	mov	ecx, ebx
	call	rtl_set_bbreg@PLT
	mov	edi, 1
	call	mdelay@PLT
	cmp	DWORD PTR RF90_PATH_A[rip], r13d
	je	.L17
	cmp	DWORD PTR RF90_PATH_B[rip], r13d
	mov	edx, DWORD PTR BLSSIREADBACKDATA[rip]
	je	.L18
.L8:
	mov	esi, DWORD PTR [r15]
	mov	rdi, rbp
	call	rtl_get_bbreg@PLT
	mov	r12d, eax
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	r8d, r13d
	mov	rdi, r14
	push	r12
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR COMP_RF[rip]
	lea	rcx, .LC1[rip]
	mov	r9d, DWORD PTR [r15]
	call	RT_TRACE@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	mov	edi, 8
	call	BIT@PLT
	mov	esi, DWORD PTR RFPGA0_XA_HSSIPARAMETER1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	rtl_get_bbreg@PLT
	cdqe
.L6:
	mov	edx, DWORD PTR BLSSIREADBACKDATA[rip]
	test	rax, rax
	je	.L8
	mov	esi, DWORD PTR 4[r15]
	mov	rdi, rbp
	call	rtl_get_bbreg@PLT
	mov	r12d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, 8
	call	BIT@PLT
	mov	esi, DWORD PTR RFPGA0_XB_HSSIPARAMETER1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	rtl_get_bbreg@PLT
	cdqe
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC0[rip]
	mov	r12d, -1
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_rtl92c_phy_rf_serial_read, .-_rtl92c_phy_rf_serial_read
	.comm	RFPGA0_XB_HSSIPARAMETER1,4,4
	.comm	RFPGA0_XA_HSSIPARAMETER2,4,4
	.comm	RFPGA0_XA_HSSIPARAMETER1,4,4
	.comm	RF90_PATH_B,4,4
	.comm	RF90_PATH_A,4,4
	.comm	MASKDWORD,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_RF,4,4
	.comm	BLSSIREADEDGE,4,4
	.comm	BLSSIREADBACKDATA,4,4
	.comm	BLSSIREADADDRESS,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_phy_common.c__rtl92c_phy_rf_serial_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"return all one\012\000"
	.align	2
.LC1:
	.ascii	"RFR-%d Addr[0x%x]=0x%x\012\000"
	.text
	.align	2
	.global	_rtl92c_phy_rf_serial_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92c_phy_rf_serial_read, %function
_rtl92c_phy_rf_serial_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	mov	r6, r1
	mov	r4, r2
	mov	r5, r0
	bl	rtl_priv
	ldr	r10, [r0]
	add	r3, r6, r6, lsl #1
	add	r2, r10, r3, lsl #2
	str	r0, [sp, #28]
	lsl	r3, r3, #2
	mov	r0, r5
	str	r2, [sp, #24]
	str	r3, [sp, #20]
	bl	RT_CANNOT_IO
	cmp	r0, #0
	bne	.L17
	ldr	r7, .L20
	ldr	r9, .L20+4
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r9]
	bl	rtl_get_bbreg
	ldr	r8, .L20+8
	str	r0, [sp, #16]
	ldr	r3, [r8]
	cmp	r3, r6
	bne	.L18
	ldr	r0, [sp, #16]
.L4:
	ldr	fp, .L20+12
	ldr	r2, .L20+16
	ldr	r3, [fp]
	ldr	ip, [r2]
	lsl	r4, r4, #23
	ldr	r2, [sp, #16]
	and	r4, r4, #528482304
	bic	ip, r0, ip
	ldr	r1, [r9]
	orr	r4, r4, r3
	mov	r0, r5
	bic	r3, r2, r3
	ldr	r2, [r7]
	orr	r4, r4, ip
	bl	rtl_set_bbreg
	mov	r0, #1
	bl	mdelay
	ldr	r0, [sp, #24]
	mov	r3, r4
	ldr	r1, [r0, #8]
	ldr	r2, [r7]
	mov	r0, r5
	bl	rtl_set_bbreg
	mov	r0, #1
	bl	mdelay
	ldr	r1, [sp, #16]
	ldr	r3, [fp]
	ldr	r2, [r7]
	orr	r3, r1, r3
	mov	r0, r5
	ldr	r1, [r9]
	bl	rtl_set_bbreg
	mov	r0, #1
	bl	mdelay
	ldr	r3, [r8]
	cmp	r3, r6
	ldreq	r3, .L20+20
	beq	.L15
	ldr	r3, .L20+24
	ldr	r3, [r3]
	cmp	r3, r6
	beq	.L19
	ldr	r3, .L20+28
	ldr	r2, [r3]
.L8:
	ldr	r3, [sp, #20]
	mov	r0, r5
	ldr	r1, [r10, r3]
	bl	rtl_get_bbreg
	mov	r4, r0
.L9:
	ldr	r3, [sp, #20]
	str	r4, [sp, #8]
	ldr	r1, [r10, r3]
	ldr	r2, .L20+32
	ldr	r3, .L20+36
	str	r1, [sp, #4]
	str	r6, [sp]
	ldr	r1, [r3]
	ldr	r0, [sp, #28]
	ldr	r2, [r2]
	ldr	r3, .L20+40
	bl	RT_TRACE
.L1:
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, [sp, #24]
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [r3, #8]
	bl	rtl_get_bbreg
	b	.L4
.L19:
	ldr	r3, .L20+44
.L15:
	mov	r0, #8
	ldr	r4, [r3]
	bl	BIT
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	rtl_get_bbreg
	ldr	r3, .L20+28
	cmp	r0, #0
	ldr	r2, [r3]
	beq	.L8
	ldr	r3, [sp, #24]
	mov	r0, r5
	ldr	r1, [r3, #4]
	bl	rtl_get_bbreg
	mov	r4, r0
	b	.L9
.L17:
	ldr	r0, .L20+48
	bl	pr_err
	mvn	r4, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	MASKDWORD
	.word	RFPGA0_XA_HSSIPARAMETER2
	.word	RF90_PATH_A
	.word	BLSSIREADEDGE
	.word	BLSSIREADADDRESS
	.word	RFPGA0_XA_HSSIPARAMETER1
	.word	RF90_PATH_B
	.word	BLSSIREADBACKDATA
	.word	DBG_TRACE
	.word	COMP_RF
	.word	.LC1
	.word	RFPGA0_XB_HSSIPARAMETER1
	.word	.LC0
	.size	_rtl92c_phy_rf_serial_read, .-_rtl92c_phy_rf_serial_read
	.comm	RFPGA0_XB_HSSIPARAMETER1,4,4
	.comm	RFPGA0_XA_HSSIPARAMETER2,4,4
	.comm	RFPGA0_XA_HSSIPARAMETER1,4,4
	.comm	RF90_PATH_B,4,4
	.comm	RF90_PATH_A,4,4
	.comm	MASKDWORD,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_RF,4,4
	.comm	BLSSIREADEDGE,4,4
	.comm	BLSSIREADBACKDATA,4,4
	.comm	BLSSIREADADDRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
