	.file	"extr_phy.c_rf_serial_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rf_serial_read, @function
rf_serial_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	eax, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	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
	mov	rbp, rax
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	lea	rdx, [rax+rax*2]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR [rdi]
	mov	esi, DWORD PTR rFPGA0_XA_HSSIParameter2[rip]
	mov	rax, QWORD PTR [rcx]
	lea	r13, [rax+rdx*4]
	mov	edx, DWORD PTR bMaskDWord[rip]
	call	phy_query_bb_reg@PLT
	cmp	DWORD PTR RF_PATH_A[rip], ebp
	mov	r15d, eax
	je	.L2
	mov	esi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR bMaskDWord[rip]
	mov	rdi, r14
	call	phy_query_bb_reg@PLT
.L2:
	mov	r12d, DWORD PTR bLSSIReadAddress[rip]
	sal	ebx, 23
	mov	rdi, r14
	mov	ecx, DWORD PTR bLSSIReadEdge[rip]
	mov	edx, DWORD PTR bMaskDWord[rip]
	mov	esi, DWORD PTR rFPGA0_XA_HSSIParameter2[rip]
	not	r12d
	and	eax, r12d
	mov	r12d, ebx
	and	r12d, 2139095040
	or	r12d, ecx
	not	ecx
	and	ecx, r15d
	or	r12d, eax
	call	phy_set_bb_reg@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	ecx, r12d
	mov	rdi, r14
	mov	edx, DWORD PTR bMaskDWord[rip]
	call	phy_set_bb_reg@PLT
	mov	edi, 100
	call	udelay@PLT
	mov	edi, 10
	call	udelay@PLT
	cmp	DWORD PTR RF_PATH_A[rip], ebp
	je	.L14
	cmp	DWORD PTR RF_PATH_B[rip], ebp
	mov	edx, DWORD PTR bLSSIReadBackData[rip]
	je	.L15
.L6:
	mov	esi, DWORD PTR 0[r13]
.L12:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	phy_query_bb_reg@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, 8
	call	BIT@PLT
	mov	esi, DWORD PTR rFPGA0_XA_HSSIParameter1[rip]
	mov	rdi, r14
	mov	edx, eax
	call	phy_query_bb_reg@PLT
	cdqe
.L4:
	mov	edx, DWORD PTR bLSSIReadBackData[rip]
	test	rax, rax
	je	.L6
	mov	esi, DWORD PTR 4[r13]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, 8
	call	BIT@PLT
	mov	esi, DWORD PTR rFPGA0_XB_HSSIParameter1[rip]
	mov	rdi, r14
	mov	edx, eax
	call	phy_query_bb_reg@PLT
	cdqe
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rf_serial_read, .-rf_serial_read
	.comm	rFPGA0_XB_HSSIParameter1,4,4
	.comm	rFPGA0_XA_HSSIParameter2,4,4
	.comm	rFPGA0_XA_HSSIParameter1,4,4
	.comm	bMaskDWord,4,4
	.comm	bLSSIReadEdge,4,4
	.comm	bLSSIReadBackData,4,4
	.comm	bLSSIReadAddress,4,4
	.comm	RF_PATH_B,4,4
	.comm	RF_PATH_A,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.c_rf_serial_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rf_serial_read, %function
rf_serial_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r2
	ldr	r2, [r0]
	ldr	r7, .L17
	ldr	r6, .L17+4
	add	ip, r1, r1, lsl #1
	ldr	r10, [r2]
	lsl	r3, ip, #2
	mov	r5, r1
	ldr	r2, [r7]
	sub	sp, sp, #12
	ldr	r1, [r6]
	str	r3, [sp]
	mov	r4, r0
	add	fp, r10, ip, lsl #2
	bl	phy_query_bb_reg
	ldr	r9, .L17+8
	mov	r3, r0
	ldr	r2, [r9]
	cmp	r2, r5
	beq	.L2
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [fp, #8]
	str	r3, [sp, #4]
	bl	phy_query_bb_reg
	ldr	r3, [sp, #4]
.L2:
	ldr	ip, .L17+12
	ldr	r2, .L17+16
	ldr	r1, .L17+20
	ldr	r2, [r2]
	ldr	ip, [ip]
	and	r8, r1, r8, lsl #23
	bic	ip, r0, ip
	bic	r3, r3, r2
	ldr	r1, [r6]
	orr	r8, r8, r2
	mov	r0, r4
	ldr	r2, [r7]
	orr	r8, r8, ip
	bl	phy_set_bb_reg
	mov	r0, #10
	bl	udelay
	mov	r3, r8
	ldr	r2, [r7]
	ldr	r1, [fp, #8]
	mov	r0, r4
	bl	phy_set_bb_reg
	mov	r0, #100
	bl	udelay
	mov	r0, #10
	bl	udelay
	ldr	r3, [r9]
	cmp	r3, r5
	ldreq	r3, .L17+24
	beq	.L12
	ldr	r3, .L17+28
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L16
	ldr	r3, .L17+32
	ldr	r2, [r3]
.L6:
	mov	r0, r4
	ldr	r3, [sp]
	ldr	r1, [r10, r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	phy_query_bb_reg
.L16:
	ldr	r3, .L17+36
.L12:
	mov	r0, #8
	ldr	r5, [r3]
	bl	BIT
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	phy_query_bb_reg
	ldr	r3, .L17+32
	cmp	r0, #0
	ldr	r2, [r3]
	ldrne	r1, [fp, #4]
	beq	.L6
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	phy_query_bb_reg
.L18:
	.align	2
.L17:
	.word	bMaskDWord
	.word	rFPGA0_XA_HSSIParameter2
	.word	RF_PATH_A
	.word	bLSSIReadAddress
	.word	bLSSIReadEdge
	.word	2139095040
	.word	rFPGA0_XA_HSSIParameter1
	.word	RF_PATH_B
	.word	bLSSIReadBackData
	.word	rFPGA0_XB_HSSIParameter1
	.size	rf_serial_read, .-rf_serial_read
	.comm	rFPGA0_XB_HSSIParameter1,4,4
	.comm	rFPGA0_XA_HSSIParameter2,4,4
	.comm	rFPGA0_XA_HSSIParameter1,4,4
	.comm	bMaskDWord,4,4
	.comm	bLSSIReadEdge,4,4
	.comm	bLSSIReadBackData,4,4
	.comm	bLSSIReadAddress,4,4
	.comm	RF_PATH_B,4,4
	.comm	RF_PATH_A,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
