	.file	"extr_phy.c__rtl92s_phy_get_txpower_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl92s_phy_get_txpower_index, @function
_rtl92s_phy_get_txpower_index:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	rtl_priv@PLT
	mov	rdi, rbp
	mov	r14, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_efuse@PLT
	lea	rsi, -1[r13]
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR 8[rdx]
	mov	rcx, QWORD PTR [rcx+rsi*8]
	mov	QWORD PTR [rbx], rcx
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	QWORD PTR 8[rbx], rdx
	mov	rdx, QWORD PTR [r14]
	cmp	rdx, QWORD PTR RF_1T2R[rip]
	je	.L2
	cmp	rdx, QWORD PTR RF_1T1R[rip]
	je	.L2
	cmp	rdx, QWORD PTR RF_2T2R[rip]
	je	.L9
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 8[r12], 0
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rax]
.L7:
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	QWORD PTR [r12], rdx
	mov	rax, QWORD PTR [rax+rsi*8]
	mov	QWORD PTR 8[r12], rax
	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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rax]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	_rtl92s_phy_get_txpower_index, .-_rtl92s_phy_get_txpower_index
	.comm	RF_2T2R,8,8
	.comm	RF_1T2R,8,8
	.comm	RF_1T1R,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_phy.c__rtl92s_phy_get_txpower_index.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl92s_phy_get_txpower_index, %function
_rtl92s_phy_get_txpower_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r4, r1
	mov	r6, r3
	mov	r8, r0
	bl	rtl_priv
	mov	r7, r0
	mov	r0, r8
	bl	rtl_priv
	bl	rtl_efuse
	ldr	r3, [r0]
	sub	r1, r4, #1
	ldm	r3, {r2, r3}
	ldr	ip, [r2, r1, lsl #2]
	ldr	r2, .L10
	str	ip, [r5]
	ldr	r3, [r3, r1, lsl #2]
	ldr	r2, [r2]
	str	r3, [r5, #4]
	ldr	r3, [r7]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L10+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L10+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	mov	r3, #0
	str	r3, [r6]
	str	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r0, #4]
.L7:
	ldm	r3, {r2, r3}
	ldr	r2, [r2, r1, lsl #2]
	str	r2, [r6]
	ldr	r3, [r3, r1, lsl #2]
	str	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, [r0, #8]
	b	.L7
.L11:
	.align	2
.L10:
	.word	RF_1T2R
	.word	RF_1T1R
	.word	RF_2T2R
	.size	_rtl92s_phy_get_txpower_index, .-_rtl92s_phy_get_txpower_index
	.comm	RF_2T2R,4,4
	.comm	RF_1T2R,4,4
	.comm	RF_1T1R,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
