	.file	"extr_phy_common.c_rtl92c_phy_update_txpower_dbm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%lx dBm, ccktxpwridx = %d, ofdmtxpwridx = %d\n"
	.text
	.p2align 4
	.globl	rtl92c_phy_update_txpower_dbm
	.type	rtl92c_phy_update_txpower_dbm, @function
rtl92c_phy_update_txpower_dbm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 0
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	rtl_priv@PLT
	mov	rdi, r13
	mov	r12, rax
	call	rtl_priv@PLT
	mov	rdi, rax
	call	rtl_efuse@PLT
	mov	esi, DWORD PTR WIRELESS_MODE_B[rip]
	mov	rdx, r15
	mov	rdi, r13
	mov	r14, rax
	call	_rtl92c_phy_dbm_to_txpwr_idx@PLT
	mov	esi, DWORD PTR WIRELESS_MODE_N_24G[rip]
	mov	rdx, r15
	mov	rdi, r13
	mov	rbp, rax
	call	_rtl92c_phy_dbm_to_txpwr_idx@PLT
	sub	rax, QWORD PTR [r14]
	mov	r9, rbp
	mov	r8, r15
	cmovns	rbx, rax
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR DBG_TRACE[rip]
	mov	esi, DWORD PTR COMP_TXAGC[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 80
	call	RT_TRACE@PLT
	mov	rcx, QWORD PTR 24[r14]
	mov	rdx, QWORD PTR 16[r14]
	mov	rax, QWORD PTR 8[r14]
	mov	r9, QWORD PTR [rcx]
	mov	r8, QWORD PTR [rdx]
	mov	rdi, QWORD PTR [rax]
	mov	rsi, QWORD PTR 8[rcx]
	mov	rcx, QWORD PTR 8[rdx]
	mov	rdx, QWORD PTR 8[rax]
	pop	rax
	.cfi_def_cfa_offset 72
	xor	eax, eax
	pop	r10
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	mov	QWORD PTR [r9+rax], rbp
	mov	QWORD PTR [r8+rax], rbx
	mov	QWORD PTR [rdi+rax], rbx
	mov	QWORD PTR [rsi+rax], rbp
	mov	QWORD PTR [rcx+rax], rbx
	mov	QWORD PTR [rdx+rax], rbx
	add	rax, 8
	cmp	rax, 112
	jne	.L2
	mov	esi, DWORD PTR [r12]
	mov	rdi, r13
	call	rtl92c_phy_set_txpower_level@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
	.cfi_endproc
.LFE0:
	.size	rtl92c_phy_update_txpower_dbm, .-rtl92c_phy_update_txpower_dbm
	.comm	WIRELESS_MODE_N_24G,4,4
	.comm	WIRELESS_MODE_B,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_TXAGC,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_update_txpower_dbm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%lx dBm, ccktxpwridx = %d, ofdmtxpwridx = %d\012\000"
	.text
	.align	2
	.global	rtl92c_phy_update_txpower_dbm
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl92c_phy_update_txpower_dbm, %function
rtl92c_phy_update_txpower_dbm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	mov	r9, r1
	mov	r6, r0
	bl	rtl_priv
	mov	r7, r0
	mov	r0, r6
	bl	rtl_priv
	bl	rtl_efuse
	ldr	r3, .L6
	mov	r8, r0
	ldr	r1, [r3]
	mov	r2, r9
	mov	r0, r6
	bl	_rtl92c_phy_dbm_to_txpwr_idx
	ldr	r3, .L6+4
	mov	r5, r0
	ldr	r1, [r3]
	mov	r2, r9
	mov	r0, r6
	bl	_rtl92c_phy_dbm_to_txpwr_idx
	ldr	r4, [r8]
	ldr	r3, .L6+8
	sub	r4, r0, r4
	ldr	r2, .L6+12
	bic	r4, r4, r4, asr #31
	str	r4, [sp, #8]
	str	r5, [sp, #4]
	str	r9, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L6+16
	mov	r0, r7
	bl	RT_TRACE
	mov	r3, #0
	ldr	r1, [r8, #8]
	ldr	r0, [r8, #12]
	ldr	r2, [r8, #4]
	ldm	r0, {r8, lr}
	ldm	r1, {r0, ip}
	ldm	r2, {r1, r2}
.L2:
	str	r5, [r8, r3]
	str	r4, [r0, r3]
	str	r4, [r1, r3]
	str	r5, [lr, r3]
	str	r4, [ip, r3]
	str	r4, [r2, r3]
	add	r3, r3, #4
	cmp	r3, #56
	bne	.L2
	mov	r0, r6
	ldr	r1, [r7]
	bl	rtl92c_phy_set_txpower_level
	mov	r0, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	.align	2
.L6:
	.word	WIRELESS_MODE_B
	.word	WIRELESS_MODE_N_24G
	.word	COMP_TXAGC
	.word	DBG_TRACE
	.word	.LC0
	.size	rtl92c_phy_update_txpower_dbm, .-rtl92c_phy_update_txpower_dbm
	.comm	WIRELESS_MODE_N_24G,4,4
	.comm	WIRELESS_MODE_B,4,4
	.comm	DBG_TRACE,4,4
	.comm	COMP_TXAGC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
