	.file	"extr_rf.c_rtl92s_phy_rf6052_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Radio[%d] Fail!!\n"
	.text
	.p2align 4
	.globl	rtl92s_phy_rf6052_config
	.type	rtl92s_phy_rf6052_config, @function
rtl92s_phy_rf6052_config:
.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
	mov	r14d, 1
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	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
	call	rtl_priv@PLT
	cmp	QWORD PTR [rax], 0
	je	.L1
	mov	rbx, QWORD PTR 8[rax]
	mov	edx, DWORD PTR BRFSI_RFENV[rip]
	mov	r15, rax
	xor	ebp, ebp
	mov	r14d, 1
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR 12[rbx]
	sal	edx, 16
	mov	ecx, 1
	mov	rdi, r12
	call	rtl92s_phy_set_bb_reg@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	ecx, 1
	mov	rdi, r12
	mov	edx, DWORD PTR BRFSI_RFENV[rip]
	call	rtl92s_phy_set_bb_reg@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR B3WIRE_ADDRESSLENGTH[rip]
	xor	ecx, ecx
	mov	rdi, r12
	call	rtl92s_phy_set_bb_reg@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR B3WIRE_DATALENGTH[rip]
	xor	ecx, ecx
	mov	rdi, r12
	call	rtl92s_phy_set_bb_reg@PLT
	cmp	rbp, 130
	je	.L8
	cmp	rbp, 131
	jne	.L9
	mov	esi, 131
	mov	rdi, r12
	call	rtl92s_phy_config_rf@PLT
	mov	r14d, eax
.L10:
	mov	edx, DWORD PTR BRFSI_RFENV[rip]
	mov	esi, DWORD PTR [rbx]
	mov	ecx, r13d
	mov	rdi, r12
	call	rtl92s_phy_set_bb_reg@PLT
	test	r14d, r14d
	je	.L33
.L13:
	add	rbp, 1
	cmp	QWORD PTR [r15], rbp
	jbe	.L1
.L15:
	mov	rbx, rbp
	mov	edx, DWORD PTR BRFSI_RFENV[rip]
	sal	rbx, 4
	add	rbx, QWORD PTR 8[r15]
	cmp	rbp, 130
	je	.L4
	ja	.L5
	cmp	rbp, 128
	je	.L4
	cmp	rbp, 129
	jne	.L16
.L30:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	call	rtl92s_phy_query_bb_reg@PLT
	mov	edx, DWORD PTR BRFSI_RFENV[rip]
	mov	r13d, eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	rbp, 131
	je	.L30
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L4:
	sal	edx, 16
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	rbp, 130
	ja	.L13
	cmp	rbp, 128
	je	.L11
	cmp	rbp, 129
	je	.L10
	add	rbp, 1
	cmp	QWORD PTR [r15], rbp
	ja	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L8:
	.cfi_restore_state
	mov	esi, 130
	mov	rdi, r12
	call	rtl92s_phy_config_rf@PLT
	mov	r14d, eax
.L11:
	mov	edx, DWORD PTR BRFSI_RFENV[rip]
	mov	esi, DWORD PTR [rbx]
	mov	ecx, r13d
	mov	rdi, r12
	sal	edx, 16
	call	rtl92s_phy_set_bb_reg@PLT
	test	r14d, r14d
	jne	.L13
.L33:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rtl92s_phy_rf6052_config, .-rtl92s_phy_rf6052_config
	.comm	BRFSI_RFENV,4,4
	.comm	B3WIRE_DATALENGTH,4,4
	.comm	B3WIRE_ADDRESSLENGTH,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_rf.c_rtl92s_phy_rf6052_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Radio[%d] Fail!!\012\000"
	.text
	.align	2
	.global	rtl92s_phy_rf6052_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl92s_phy_rf6052_config, %function
rtl92s_phy_rf6052_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	bl	rtl_priv
	ldr	r3, [r0]
	cmp	r3, #0
	moveq	r8, #1
	beq	.L1
	mov	r4, #0
	mov	r10, r0
	mov	r9, r4
	mov	r8, #1
	ldr	r7, .L20
	ldr	r6, [r0, #4]
	ldr	r2, [r7]
	ldr	fp, .L20+4
.L16:
	mov	r3, #1
	ldr	r1, [r6, #12]
	lsl	r2, r2, #16
	mov	r0, r5
	bl	rtl92s_phy_set_bb_reg
	mov	r3, #1
	ldr	r2, [r7]
	ldr	r1, [r6, #8]
	mov	r0, r5
	bl	rtl92s_phy_set_bb_reg
	mov	r3, #0
	ldr	r2, [fp]
	ldr	r1, [r6, #4]
	mov	r0, r5
	bl	rtl92s_phy_set_bb_reg
	ldr	r2, .L20+8
	mov	r3, #0
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r6, #4]
	bl	rtl92s_phy_set_bb_reg
	cmp	r4, #130
	beq	.L8
	cmp	r4, #131
	bne	.L9
	mov	r1, r4
	mov	r0, r5
	bl	rtl92s_phy_config_rf
	mov	r8, r0
.L10:
	mov	r3, r9
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r2, [r7]
	bl	rtl92s_phy_set_bb_reg
.L14:
	cmp	r8, #0
	beq	.L19
.L12:
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bls	.L1
	ldr	r1, [r10, #4]
	sub	r3, r4, #128
	ldr	r2, [r7]
	add	r6, r1, r4, lsl #4
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L6:
	.word	.L7
	.word	.L5
	.word	.L7
	.word	.L5
.L5:
	mov	r0, r5
	ldr	r1, [r1, r4, lsl #4]
	bl	rtl92s_phy_query_bb_reg
	ldr	r2, [r7]
	mov	r9, r0
	b	.L16
.L7:
	lsl	r2, r2, #16
	mov	r0, r5
	ldr	r1, [r1, r4, lsl #4]
	bl	rtl92s_phy_query_bb_reg
	ldr	r2, [r7]
	mov	r9, r0
	b	.L16
.L9:
	sub	r3, r4, #128
	cmp	r3, #1
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L13:
	.word	.L11
	.word	.L10
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	rtl92s_phy_config_rf
	mov	r8, r0
.L11:
	ldr	r2, [r7]
	mov	r3, r9
	mov	r0, r5
	ldr	r1, [r6]
	lsl	r2, r2, #16
	bl	rtl92s_phy_set_bb_reg
	b	.L14
.L19:
	mov	r1, r4
	ldr	r0, .L20+12
	bl	pr_err
.L1:
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	BRFSI_RFENV
	.word	B3WIRE_ADDRESSLENGTH
	.word	B3WIRE_DATALENGTH
	.word	.LC0
	.size	rtl92s_phy_rf6052_config, .-rtl92s_phy_rf6052_config
	.comm	BRFSI_RFENV,4,4
	.comm	B3WIRE_DATALENGTH,4,4
	.comm	B3WIRE_ADDRESSLENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
