	.file	"extr_phy.c_rtl88e_phy_get_txpower_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtl88e_phy_get_txpower_level
	.type	rtl88e_phy_get_txpower_level, @function
rtl88e_phy_get_txpower_level:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	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
	call	rtl_priv@PLT
	mov	esi, DWORD PTR WIRELESS_MODE_B[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[rax]
	mov	r13, rax
	call	_rtl88e_phy_txpwr_idx_to_dbm@PLT
	mov	r14d, DWORD PTR 0[r13]
	mov	esi, DWORD PTR WIRELESS_MODE_G[rip]
	mov	rdi, rbp
	mov	rbx, rax
	mov	edx, r14d
	call	_rtl88e_phy_txpwr_idx_to_dbm@PLT
	cmp	rax, rbx
	jg	.L6
.L2:
	mov	r13d, DWORD PTR 0[r13]
	mov	esi, DWORD PTR WIRELESS_MODE_N_24G[rip]
	mov	rdi, rbp
	mov	edx, r13d
	call	_rtl88e_phy_txpwr_idx_to_dbm@PLT
	cmp	rax, rbx
	jg	.L7
	mov	QWORD PTR [r12], rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	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
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR WIRELESS_MODE_G[rip]
	mov	edx, r14d
	mov	rdi, rbp
	call	_rtl88e_phy_txpwr_idx_to_dbm@PLT
	mov	rbx, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR WIRELESS_MODE_N_24G[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	_rtl88e_phy_txpwr_idx_to_dbm@PLT
	mov	rbx, rax
	mov	QWORD PTR [r12], rbx
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rtl88e_phy_get_txpower_level, .-rtl88e_phy_get_txpower_level
	.comm	WIRELESS_MODE_N_24G,4,4
	.comm	WIRELESS_MODE_G,4,4
	.comm	WIRELESS_MODE_B,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_phy_get_txpower_level.c"
	.text
	.align	2
	.global	rtl88e_phy_get_txpower_level
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl88e_phy_get_txpower_level, %function
rtl88e_phy_get_txpower_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r7, r1
	bl	rtl_priv
	ldr	r3, .L8
	mov	r6, r0
	ldr	r2, [r0, #4]
	ldr	r1, [r3]
	mov	r0, r5
	bl	_rtl88e_phy_txpwr_idx_to_dbm
	ldr	r8, .L8+4
	ldr	r9, [r6]
	mov	r4, r0
	mov	r2, r9
	mov	r0, r5
	ldr	r1, [r8]
	bl	_rtl88e_phy_txpwr_idx_to_dbm
	cmp	r0, r4
	bgt	.L6
.L2:
	ldr	r8, [r6]
	ldr	r6, .L8+8
	mov	r2, r8
	mov	r0, r5
	ldr	r1, [r6]
	bl	_rtl88e_phy_txpwr_idx_to_dbm
	cmp	r0, r4
	bgt	.L7
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r2, r9
	mov	r0, r5
	ldr	r1, [r8]
	bl	_rtl88e_phy_txpwr_idx_to_dbm
	mov	r4, r0
	b	.L2
.L7:
	mov	r2, r8
	mov	r0, r5
	ldr	r1, [r6]
	bl	_rtl88e_phy_txpwr_idx_to_dbm
	mov	r4, r0
	str	r4, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	WIRELESS_MODE_B
	.word	WIRELESS_MODE_G
	.word	WIRELESS_MODE_N_24G
	.size	rtl88e_phy_get_txpower_level, .-rtl88e_phy_get_txpower_level
	.comm	WIRELESS_MODE_N_24G,4,4
	.comm	WIRELESS_MODE_G,4,4
	.comm	WIRELESS_MODE_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
