	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88e_phy_get_txpower_level   ## -- Begin function rtl88e_phy_get_txpower_level
	.p2align	4, 0x90
_rtl88e_phy_get_txpower_level:          ## @rtl88e_phy_get_txpower_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r15
	movl	4(%rax), %edx
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	__rtl88e_phy_txpwr_idx_to_dbm
	movq	%rax, %rbx
	movl	(%r15), %r13d
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	__rtl88e_phy_txpwr_idx_to_dbm
	cmpq	%rbx, %rax
	jle	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	__rtl88e_phy_txpwr_idx_to_dbm
	movq	%rax, %rbx
LBB0_2:
	movl	(%r15), %r15d
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	__rtl88e_phy_txpwr_idx_to_dbm
	cmpq	%rbx, %rax
	jle	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	__rtl88e_phy_txpwr_idx_to_dbm
	movq	%rax, %rbx
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WIRELESS_MODE_B,4,2            ## @WIRELESS_MODE_B
	.comm	_WIRELESS_MODE_G,4,2            ## @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_N_24G,4,2        ## @WIRELESS_MODE_N_24G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl88e_phy_get_txpower_level   ; -- Begin function rtl88e_phy_get_txpower_level
	.p2align	2
_rtl88e_phy_get_txpower_level:          ; @rtl88e_phy_get_txpower_level
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x21, x0
	ldr	w2, [x0, #4]
Lloh0:
	adrp	x8, _WIRELESS_MODE_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	__rtl88e_phy_txpwr_idx_to_dbm
	mov	x22, x0
	ldr	w23, [x21]
Lloh3:
	adrp	x24, _WIRELESS_MODE_G@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WIRELESS_MODE_G@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x23
	bl	__rtl88e_phy_txpwr_idx_to_dbm
	cmp	x0, x22
	b.le	LBB0_2
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x20
	mov	x2, x23
	bl	__rtl88e_phy_txpwr_idx_to_dbm
	mov	x22, x0
LBB0_2:
	ldr	w21, [x21]
Lloh5:
	adrp	x23, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	__rtl88e_phy_txpwr_idx_to_dbm
	cmp	x0, x22
	b.le	LBB0_4
; %bb.3:
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	__rtl88e_phy_txpwr_idx_to_dbm
	mov	x22, x0
LBB0_4:
	str	x22, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_WIRELESS_MODE_B,4,2            ; @WIRELESS_MODE_B
	.comm	_WIRELESS_MODE_G,4,2            ; @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_N_24G,4,2        ; @WIRELESS_MODE_N_24G
.subsections_via_symbols
