	.file	"extr_phy.c__rtl88e_get_txpower_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_rtl88e_get_txpower_index, @function
_rtl88e_get_txpower_index:
.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	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	rtl_priv@PLT
	mov	edi, eax
	call	rtl_efuse@PLT
	lea	esi, -1[rbx]
	xor	ebx, ebx
	movsx	r15, esi
	mov	rdi, rax
	sal	r15, 2
	cmp	DWORD PTR RF90_PATH_A[rip], ebx
	je	.L8
.L2:
	cmp	DWORD PTR RF90_PATH_B[rip], ebx
	jne	.L3
	mov	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	eax, DWORD PTR [rax+r15]
	mov	DWORD PTR [r14+rbx*4], eax
	mov	rax, QWORD PTR 8[rdi]
	movsx	rdx, DWORD PTR RF90_PATH_B[rip]
	mov	r8, QWORD PTR [rcx+rdx*8]
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	ecx, DWORD PTR [rcx+r15]
	add	ecx, DWORD PTR [r8+r15]
	mov	DWORD PTR [r12+rdx*4], ecx
	mov	rcx, QWORD PTR 24[rdi]
	movsx	rdx, DWORD PTR RF90_PATH_B[rip]
	mov	r8, QWORD PTR [rcx+rdx*8]
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	ecx, DWORD PTR [rcx+r15]
	add	ecx, DWORD PTR [r8+r15]
	mov	DWORD PTR 0[r13+rdx*4], ecx
	movsx	rdx, DWORD PTR RF90_PATH_B[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR [rax+r15]
	mov	DWORD PTR 0[rbp+rdx*4], eax
.L3:
	cmp	rbx, 1
	jne	.L5
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L5:
	.cfi_restore_state
	mov	ebx, 1
	cmp	DWORD PTR RF90_PATH_A[rip], ebx
	jne	.L2
.L8:
	mov	r9, rbp
	mov	r8, r12
	mov	rcx, r13
	mov	rdx, r14
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR [rsp], rdi
	call	handle_path_a@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, DWORD PTR 12[rsp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	_rtl88e_get_txpower_index, .-_rtl88e_get_txpower_index
	.comm	RF90_PATH_B,4,4
	.comm	RF90_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__rtl88e_get_txpower_index.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_rtl88e_get_txpower_index, %function
_rtl88e_get_txpower_index:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r5, r1
	mov	r9, r3
	mov	r10, r2
	mov	r4, #0
	bl	rtl_priv
	bl	rtl_efuse
	ldr	fp, .L9
	sub	r5, r5, #1
	ldr	r3, [fp]
	mov	r6, r0
	cmp	r3, r4
	ldr	r8, .L9+4
	lsl	r7, r5, #2
	beq	.L8
.L2:
	ldr	r3, [r8]
	cmp	r3, r4
	bne	.L3
	ldr	r3, [r6]
	ldr	r0, [r6, #12]
	ldr	r2, [r3, r4, lsl #2]
	ldr	r1, [r6, #8]
	ldr	r2, [r2, r7]
	ldr	r3, [r6, #4]
	str	r2, [r10, r4, lsl #2]
	ldr	r2, [r8]
	ldr	ip, [r3, r2, lsl #2]
	ldr	r1, [r1, r2, lsl #2]
	ldr	ip, [ip, r7]
	ldr	r1, [r1, r7]
	add	r1, r1, ip
	ldr	ip, [sp, #48]
	str	r1, [ip, r2, lsl #2]
	ldr	r2, [r8]
	ldr	r1, [r0, r2, lsl #2]
	ldr	r0, [r3, r2, lsl #2]
	ldr	r1, [r1, r7]
	ldr	r0, [r0, r7]
	add	r1, r1, r0
	str	r1, [r9, r2, lsl #2]
	ldr	r2, [r8]
	ldr	r1, [sp, #52]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3, r7]
	str	r3, [r1, r2, lsl #2]
.L3:
	cmp	r4, #1
	bne	.L5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r4, #1
	ldr	r3, [fp]
	cmp	r3, r4
	bne	.L2
.L8:
	ldr	r3, [sp, #52]
	mov	r2, r10
	str	r3, [sp, #4]
	ldr	r3, [sp, #48]
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r9
	bl	handle_path_a
	b	.L3
.L10:
	.align	2
.L9:
	.word	RF90_PATH_A
	.word	RF90_PATH_B
	.size	_rtl88e_get_txpower_index, .-_rtl88e_get_txpower_index
	.comm	RF90_PATH_B,4,4
	.comm	RF90_PATH_A,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
