	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8812ae_dm_txpwr_track_set_pwr ## -- Begin function rtl8812ae_dm_txpwr_track_set_pwr
	.p2align	4, 0x90
_rtl8812ae_dm_txpwr_track_set_pwr:      ## @rtl8812ae_dm_txpwr_track_set_pwr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_dm
	movq	%rax, %r13
	movl	(%rax), %esi
	movl	$255, %r14d
	cmpl	$255, %esi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_rtl8821ae_hw_rate_to_mrate
	movl	%eax, %r14d
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$255, %r14d
	jne	LBB0_4
LBB0_3:
	movl	$26, %r9d
	jmp	LBB0_48
LBB0_4:
	movq	_MGN_1M@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_6
## %bb.5:
	movq	_MGN_11M@GOTPCREL(%rip), %rax
	movl	$32, %r9d
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_6:
	movq	_MGN_6M@GOTPCREL(%rip), %rax
	movl	$30, %r9d
	cmpl	(%rax), %r14d
	jl	LBB0_8
## %bb.7:
	movq	_MGN_48M@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_8:
	movq	_MGN_54M@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_10
LBB0_9:
	movl	$28, %r9d
	jmp	LBB0_48
LBB0_10:
	movq	_MGN_MCS0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_13
## %bb.11:
	movq	_MGN_MCS2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_13
LBB0_12:
	movl	$34, %r9d
	jmp	LBB0_48
LBB0_13:
	movq	_MGN_MCS3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_15
## %bb.14:
	movq	_MGN_MCS4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_15
LBB0_48:
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	movl	%r9d, %r14d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_BBSWING@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_51
## %bb.49:
	movl	(%rbx), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	movq	8(%r13), %rax
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	movl	%edx, %ecx
	movq	%rbx, %rdx
	jne	LBB0_55
## %bb.50:
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %r8d
	cmpl	%r14d, %r8d
	cmovll	%r8d, %r14d
	movslq	%r14d, %rbx
	movl	(%rdx), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_RA_TXSCALE@GOTPCREL(%rip), %rax
	jmp	LBB0_56
LBB0_51:
	movq	_MIX_MODE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_67
## %bb.52:
	movq	%r13, %r15
	movq	%r12, %rbx
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r13), %r8d
	movq	24(%r13), %rax
	movslq	-68(%rbp), %r13                 ## 4-byte Folded Reload
	movl	(%rax,%r13,4), %r9d
	movl	%r13d, (%rsp)
	leaq	L_.str.4(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	24(%r15), %rax
	movl	(%rax,%r13,4), %r12d
	addl	16(%r15), %r12d
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_61
## %bb.53:
	movl	%r12d, %eax
	subl	%r14d, %eax
	jle	LBB0_57
## %bb.54:
	movl	%r14d, %ebx
	movl	%eax, 32(%r15)
	movq	40(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_RA_TXSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	callq	_rtl_set_bbreg
	movl	$1, 48(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl8821ae_phy_set_txpower_level_by_path
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r15), %rax
	movl	(%rax,%r13,4), %r9d
	leaq	L_.str.5(%rip), %rcx
	movq	%rbx, %rdi
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_61
LBB0_55:
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r8d
	cmpl	%r14d, %r8d
	cmovll	%r8d, %r14d
	movslq	%r14d, %rbx
	movl	(%rdx), %esi
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
	movq	%rbx, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_RB_TXSCALE@GOTPCREL(%rip), %rax
LBB0_56:
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_set_bbreg                  ## TAILCALL
LBB0_57:
	testl	%r12d, %r12d
	js	LBB0_60
## %bb.58:
	movq	_RA_TXSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	callq	_rtl_set_bbreg
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$0, 48(%r15)
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	je	LBB0_61
## %bb.59:
	movl	$0, 32(%r15)
	movq	40(%r15), %rax
	movl	$0, (%rax,%r13,4)
	movl	(%rbx), %esi
	movslq	(%rcx), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl8821ae_phy_set_txpower_level_by_path
	movl	$0, 48(%r15)
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_61
LBB0_60:
	movl	%r12d, 32(%r15)
	movq	40(%r15), %rax
	movl	%r12d, (%rax,%r13,4)
	movq	_RA_TXSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	callq	_rtl_set_bbreg
	movl	$1, 48(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl8821ae_phy_set_txpower_level_by_path
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r15), %rax
	movl	(%rax,%r13,4), %r8d
	leaq	L_.str.6(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_61:
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_67
## %bb.62:
	movl	%r12d, %eax
	subl	%r14d, %eax
	jle	LBB0_64
## %bb.63:
	movl	%r14d, %ebx
	movq	40(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_RB_TXSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	movl	%ebx, %r12d
	callq	_rtl_set_bbreg
	movl	$1, 52(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_rtl8821ae_phy_set_txpower_level_by_path
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r15), %rax
	movl	(%rax,%r13,4), %r9d
	leaq	L_.str.9(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_64:
	testl	%r12d, %r12d
	js	LBB0_68
## %bb.65:
	movq	_RB_TXSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	callq	_rtl_set_bbreg
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.11(%rip), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpl	$0, 52(%r15)
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rcx
	je	LBB0_67
## %bb.66:
	movq	40(%r15), %rax
	movl	$0, (%rax,%r13,4)
	movl	(%rbx), %esi
	movq	(%rcx), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rtl8821ae_phy_set_txpower_level_by_path
	movl	$0, 52(%r15)
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.12(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_67:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_68:
	movq	40(%r15), %rax
	movl	%r12d, (%rax,%r13,4)
	movq	_RB_TXSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_txscaling_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$-2097152, %edx                 ## imm = 0xFFE00000
	callq	_rtl_set_bbreg
	movl	$1, 52(%r15)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_rtl8821ae_phy_set_txpower_level_by_path
	movq	_COMP_POWER_TRACKING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r15), %rax
	movl	(%rax,%r13,4), %r8d
	leaq	L_.str.10(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_15:
	movq	_MGN_MCS5@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_18
## %bb.16:
	movq	_MGN_MCS7@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_9
LBB0_18:
	movq	_MGN_MCS8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_21
## %bb.19:
	movq	_MGN_MCS10@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_12
LBB0_21:
	movq	_MGN_MCS11@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_23
## %bb.22:
	movq	_MGN_MCS12@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_23:
	movq	_MGN_MCS13@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_26
## %bb.24:
	movq	_MGN_MCS15@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_9
LBB0_26:
	movq	_MGN_VHT1SS_MCS0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_29
## %bb.27:
	movq	_MGN_VHT1SS_MCS2@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_12
LBB0_29:
	movq	_MGN_VHT1SS_MCS3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_31
## %bb.30:
	movq	_MGN_VHT1SS_MCS4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_31:
	movq	_MGN_VHT1SS_MCS5@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_34
## %bb.32:
	movq	_MGN_VHT1SS_MCS6@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_9
LBB0_34:
	movq	_MGN_VHT1SS_MCS7@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_3
## %bb.36:
	movq	_MGN_VHT1SS_MCS8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_38
## %bb.37:
	movl	$24, %r9d
	jmp	LBB0_48
LBB0_38:
	movq	_MGN_VHT1SS_MCS9@GOTPCREL(%rip), %rax
	movl	$22, %r9d
	cmpl	(%rax), %r14d
	je	LBB0_48
## %bb.39:
	movq	_MGN_VHT2SS_MCS0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_41
## %bb.40:
	movq	_MGN_VHT2SS_MCS2@GOTPCREL(%rip), %rax
	movl	$34, %r9d
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_41:
	movq	_MGN_VHT2SS_MCS3@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_43
## %bb.42:
	movq	_MGN_VHT2SS_MCS4@GOTPCREL(%rip), %rax
	movl	$30, %r9d
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_43:
	movq	_MGN_VHT2SS_MCS5@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_45
## %bb.44:
	movq	_MGN_VHT2SS_MCS6@GOTPCREL(%rip), %rax
	movl	$28, %r9d
	cmpl	(%rax), %r14d
	jle	LBB0_48
LBB0_45:
	movq	_MGN_VHT2SS_MCS7@GOTPCREL(%rip), %rax
	movl	$26, %r9d
	cmpl	(%rax), %r14d
	je	LBB0_48
## %bb.46:
	movq	_MGN_VHT2SS_MCS8@GOTPCREL(%rip), %rax
	movl	$24, %r9d
	cmpl	(%rax), %r14d
	je	LBB0_48
## %bb.47:
	movq	_MGN_VHT2SS_MCS9@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	(%rax), %r14d
	setne	%cl
	leal	(%rcx,%rcx), %r9d
	addl	$22, %r9d
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_POWER_TRACKING,4,2        ## @COMP_POWER_TRACKING
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"===>rtl8812ae_dm_txpwr_track_set_pwr\n"

	.comm	_MGN_1M,4,2                     ## @MGN_1M
	.comm	_MGN_11M,4,2                    ## @MGN_11M
	.comm	_MGN_6M,4,2                     ## @MGN_6M
	.comm	_MGN_48M,4,2                    ## @MGN_48M
	.comm	_MGN_54M,4,2                    ## @MGN_54M
	.comm	_MGN_MCS0,4,2                   ## @MGN_MCS0
	.comm	_MGN_MCS2,4,2                   ## @MGN_MCS2
	.comm	_MGN_MCS3,4,2                   ## @MGN_MCS3
	.comm	_MGN_MCS4,4,2                   ## @MGN_MCS4
	.comm	_MGN_MCS5,4,2                   ## @MGN_MCS5
	.comm	_MGN_MCS7,4,2                   ## @MGN_MCS7
	.comm	_MGN_MCS8,4,2                   ## @MGN_MCS8
	.comm	_MGN_MCS10,4,2                  ## @MGN_MCS10
	.comm	_MGN_MCS11,4,2                  ## @MGN_MCS11
	.comm	_MGN_MCS12,4,2                  ## @MGN_MCS12
	.comm	_MGN_MCS13,4,2                  ## @MGN_MCS13
	.comm	_MGN_MCS15,4,2                  ## @MGN_MCS15
	.comm	_MGN_VHT1SS_MCS0,4,2            ## @MGN_VHT1SS_MCS0
	.comm	_MGN_VHT1SS_MCS2,4,2            ## @MGN_VHT1SS_MCS2
	.comm	_MGN_VHT1SS_MCS3,4,2            ## @MGN_VHT1SS_MCS3
	.comm	_MGN_VHT1SS_MCS4,4,2            ## @MGN_VHT1SS_MCS4
	.comm	_MGN_VHT1SS_MCS5,4,2            ## @MGN_VHT1SS_MCS5
	.comm	_MGN_VHT1SS_MCS6,4,2            ## @MGN_VHT1SS_MCS6
	.comm	_MGN_VHT1SS_MCS7,4,2            ## @MGN_VHT1SS_MCS7
	.comm	_MGN_VHT1SS_MCS8,4,2            ## @MGN_VHT1SS_MCS8
	.comm	_MGN_VHT1SS_MCS9,4,2            ## @MGN_VHT1SS_MCS9
	.comm	_MGN_VHT2SS_MCS0,4,2            ## @MGN_VHT2SS_MCS0
	.comm	_MGN_VHT2SS_MCS2,4,2            ## @MGN_VHT2SS_MCS2
	.comm	_MGN_VHT2SS_MCS3,4,2            ## @MGN_VHT2SS_MCS3
	.comm	_MGN_VHT2SS_MCS4,4,2            ## @MGN_VHT2SS_MCS4
	.comm	_MGN_VHT2SS_MCS5,4,2            ## @MGN_VHT2SS_MCS5
	.comm	_MGN_VHT2SS_MCS6,4,2            ## @MGN_VHT2SS_MCS6
	.comm	_MGN_VHT2SS_MCS7,4,2            ## @MGN_VHT2SS_MCS7
	.comm	_MGN_VHT2SS_MCS8,4,2            ## @MGN_VHT2SS_MCS8
	.comm	_MGN_VHT2SS_MCS9,4,2            ## @MGN_VHT2SS_MCS9
L_.str.1:                               ## @.str.1
	.asciz	"TxRate=0x%x, PwrTrackingLimit=%d\n"

	.comm	_BBSWING,4,2                    ## @BBSWING
	.comm	_RF90_PATH_A,4,2                ## @RF90_PATH_A
L_.str.2:                               ## @.str.2
	.asciz	"pDM_Odm->RFCalibrateInfo.OFDM_index[ODM_RF_PATH_A]=%d,pDM_Odm->RealBbSwingIdx[ODM_RF_PATH_A]=%d\n"

	.comm	_RA_TXSCALE,4,2                 ## @RA_TXSCALE
	.comm	_txscaling_tbl,8,3              ## @txscaling_tbl
	.comm	_RF90_PATH_B,8,3                ## @RF90_PATH_B
L_.str.3:                               ## @.str.3
	.asciz	"pDM_Odm->RFCalibrateInfo.OFDM_index[ODM_RF_PATH_B]=%d, pDM_Odm->RealBbSwingIdx[ODM_RF_PATH_B]=%d\n"

	.comm	_RB_TXSCALE,4,2                 ## @RB_TXSCALE
	.comm	_MIX_MODE,4,2                   ## @MIX_MODE
L_.str.4:                               ## @.str.4
	.asciz	"pDM_Odm->DefaultOfdmIndex=%d, pDM_Odm->Absolute_OFDMSwingIdx[RFPath]=%d, RF_Path = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"******Path_A Over BBSwing Limit ,PwrTrackingLimit = %d ,Remnant TxAGC Value = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"******Path_A Lower then BBSwing lower bound  0 , Remnant TxAGC Value = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"******Path_A Compensate with BBSwing, Final_OFDM_Swing_Index = %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"******Path_A pDM_Odm->Modify_TxAGC_Flag = FALSE\n"

L_.str.9:                               ## @.str.9
	.asciz	"******Path_B Over BBSwing Limit , PwrTrackingLimit = %d , Remnant TxAGC Value = %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"******Path_B Lower then BBSwing lower bound  0 , Remnant TxAGC Value = %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"******Path_B Compensate with BBSwing ,Final_OFDM_Swing_Index = %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"******Path_B pDM_Odm->Modify_TxAGC_Flag = FALSE\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8812ae_dm_txpwr_track_set_pwr ; -- Begin function rtl8812ae_dm_txpwr_track_set_pwr
	.p2align	2
_rtl8812ae_dm_txpwr_track_set_pwr:      ; @rtl8812ae_dm_txpwr_track_set_pwr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_dm
	mov	x21, x0
	ldr	w1, [x0]
	cmp	w1, #255
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #255
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_rtl8821ae_hw_rate_to_mrate
	mov	x24, x0
LBB0_3:
Lloh0:
	adrp	x26, _COMP_POWER_TRACKING@GOTPAGE
Lloh1:
	ldr	x26, [x26, _COMP_POWER_TRACKING@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh2:
	adrp	x25, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	cmp	w24, #255
	b.ne	LBB0_5
LBB0_4:
	mov	w27, #26
	b	LBB0_16
LBB0_5:
Lloh6:
	adrp	x8, _MGN_1M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MGN_1M@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MGN_11M@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MGN_11M@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #0, ge
	b.le	LBB0_9
; %bb.6:
Lloh12:
	adrp	x8, _MGN_6M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MGN_6M@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MGN_48M@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MGN_48M@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #0, ge
	b.le	LBB0_15
; %bb.7:
Lloh18:
	adrp	x8, _MGN_54M@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MGN_54M@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_10
LBB0_8:
	mov	w27, #28
	b	LBB0_16
LBB0_9:
	mov	w27, #32
	b	LBB0_16
LBB0_10:
Lloh21:
	adrp	x8, _MGN_MCS0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MGN_MCS0@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_13
; %bb.11:
Lloh24:
	adrp	x8, _MGN_MCS2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MGN_MCS2@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_13
LBB0_12:
	mov	w27, #34
	b	LBB0_16
LBB0_13:
Lloh27:
	adrp	x8, _MGN_MCS3@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MGN_MCS3@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_39
; %bb.14:
Lloh30:
	adrp	x8, _MGN_MCS4@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MGN_MCS4@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_39
LBB0_15:
	mov	w27, #30
LBB0_16:
	ldr	w1, [x26]
	ldr	w2, [x25]
	stp	x24, x27, [sp]
Lloh33:
	adrp	x3, l_.str.1@PAGE
Lloh34:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh35:
	adrp	x8, _BBSWING@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BBSWING@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.17:
	ldr	w1, [x26]
	ldr	w2, [x25]
Lloh38:
	adrp	x3, l_.str@PAGE
Lloh39:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh40:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x8]
	ldr	x8, [x21, #8]
	cmp	w9, w22
	b.ne	LBB0_23
; %bb.18:
	ldr	w8, [x8, w22, sxtw #2]
	cmp	w8, w27
	csel	w21, w8, w27, lt
	sxtw	x9, w21
	ldr	w1, [x26]
	ldr	w2, [x25]
	stp	x8, x9, [sp]
Lloh43:
	adrp	x3, l_.str.2@PAGE
Lloh44:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh45:
	adrp	x8, _RA_TXSCALE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RA_TXSCALE@GOTPAGEOFF]
	b	LBB0_24
LBB0_19:
Lloh47:
	adrp	x8, _MIX_MODE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MIX_MODE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_38
; %bb.20:
	ldr	w1, [x26]
	ldr	w2, [x25]
	ldr	x8, [x21, #24]
	sxtw	x23, w22
	sbfiz	x24, x22, #2, #32
	ldr	w8, [x8, x24]
	ldr	w9, [x21, #16]
	stp	x8, x22, [sp, #8]
	str	x9, [sp]
Lloh50:
	adrp	x3, l_.str.4@PAGE
Lloh51:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x8, [x21, #24]
	ldr	w8, [x8, x24]
	ldr	w9, [x21, #16]
	add	w24, w8, w9
Lloh52:
	adrp	x28, _RF90_PATH_A@GOTPAGE
Lloh53:
	ldr	x28, [x28, _RF90_PATH_A@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w8, w22
	b.ne	LBB0_30
; %bb.21:
	subs	w8, w24, w27
	b.le	LBB0_25
; %bb.22:
	str	w8, [x21, #32]
	ldr	x9, [x21, #40]
	lsl	x22, x23, #2
	str	w8, [x9, x22]
Lloh54:
	adrp	x8, _RA_TXSCALE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _RA_TXSCALE@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh58:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	ldr	w3, [x8, w27, uxtw #2]
	mov	x0, x20
	mov	w2, #-2097152
	bl	_rtl_set_bbreg
	mov	w8, #1
	str	w8, [x21, #48]
	ldr	w1, [x19]
	ldrsw	x2, [x28]
	mov	x0, x20
	bl	_rtl8821ae_phy_set_txpower_level_by_path
	ldr	w1, [x26]
	ldr	w2, [x25]
	ldr	x8, [x21, #40]
	ldr	w8, [x8, x22]
	mov	x9, x27
	stp	x9, x8, [sp]
Lloh60:
	adrp	x3, l_.str.5@PAGE
Lloh61:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_29
LBB0_23:
Lloh62:
	adrp	x9, _RF90_PATH_B@GOTPAGE
Lloh63:
	ldr	x9, [x9, _RF90_PATH_B@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w27
	csel	w21, w8, w27, lt
	sxtw	x9, w21
	ldr	w1, [x26]
	ldr	w2, [x25]
	stp	x8, x9, [sp]
Lloh65:
	adrp	x3, l_.str.3@PAGE
Lloh66:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
Lloh67:
	adrp	x8, _RB_TXSCALE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _RB_TXSCALE@GOTPAGEOFF]
LBB0_24:
	ldr	w1, [x8]
Lloh69:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh70:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	ldr	w3, [x8, w21, sxtw #2]
	mov	x0, x20
	mov	w2, #-2097152
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_rtl_set_bbreg
LBB0_25:
	tbnz	w24, #31, LBB0_28
; %bb.26:
Lloh72:
	adrp	x8, _RA_TXSCALE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _RA_TXSCALE@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
Lloh75:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh76:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh77:
	ldr	x8, [x8]
	ldr	w3, [x8, w24, uxtw #2]
	mov	x0, x20
	mov	w2, #-2097152
	bl	_rtl_set_bbreg
	ldr	w1, [x26]
	ldr	w2, [x25]
	str	x24, [sp]
Lloh78:
	adrp	x3, l_.str.7@PAGE
Lloh79:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x21, #48]
	cbz	w8, LBB0_30
; %bb.27:
	str	wzr, [x21, #32]
	ldr	x8, [x21, #40]
	str	wzr, [x8, x23, lsl #2]
	ldr	w1, [x19]
	ldrsw	x2, [x28]
	mov	x0, x20
	bl	_rtl8821ae_phy_set_txpower_level_by_path
	str	wzr, [x21, #48]
	ldr	w1, [x26]
	ldr	w2, [x25]
Lloh80:
	adrp	x3, l_.str.8@PAGE
Lloh81:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_29
LBB0_28:
	str	w24, [x21, #32]
	ldr	x8, [x21, #40]
	lsl	x22, x23, #2
	str	w24, [x8, x22]
Lloh82:
	adrp	x8, _RA_TXSCALE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _RA_TXSCALE@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
Lloh85:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh86:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh87:
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #-2097152
	bl	_rtl_set_bbreg
	mov	w8, #1
	str	w8, [x21, #48]
	ldr	w1, [x19]
	ldrsw	x2, [x28]
	mov	x0, x20
	bl	_rtl8821ae_phy_set_txpower_level_by_path
	ldr	w1, [x26]
	ldr	w2, [x25]
	ldr	x8, [x21, #40]
	ldr	w8, [x8, x22]
	str	x8, [sp]
Lloh88:
	adrp	x3, l_.str.6@PAGE
Lloh89:
	add	x3, x3, l_.str.6@PAGEOFF
LBB0_29:
	mov	x0, x19
	bl	_RT_TRACE
LBB0_30:
Lloh90:
	adrp	x22, _RF90_PATH_B@GOTPAGE
Lloh91:
	ldr	x22, [x22, _RF90_PATH_B@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x23
	b.ne	LBB0_38
; %bb.31:
	subs	w8, w24, w27
	b.le	LBB0_33
; %bb.32:
	ldr	x9, [x21, #40]
	lsl	x23, x23, #2
	str	w8, [x9, x23]
Lloh92:
	adrp	x8, _RB_TXSCALE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _RB_TXSCALE@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh96:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh97:
	ldr	x8, [x8]
	ldr	w3, [x8, w27, uxtw #2]
	mov	x0, x20
	mov	w2, #-2097152
	bl	_rtl_set_bbreg
	mov	w8, #1
	str	w8, [x21, #52]
	ldr	w1, [x19]
	ldr	x2, [x22]
	mov	x0, x20
	bl	_rtl8821ae_phy_set_txpower_level_by_path
	ldr	w1, [x26]
	ldr	w2, [x25]
	ldr	x8, [x21, #40]
	ldr	w8, [x8, x23]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x8, [sp]
Lloh98:
	adrp	x3, l_.str.9@PAGE
Lloh99:
	add	x3, x3, l_.str.9@PAGEOFF
	b	LBB0_37
LBB0_33:
	tbnz	w24, #31, LBB0_36
; %bb.34:
Lloh100:
	adrp	x8, _RB_TXSCALE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _RB_TXSCALE@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
Lloh103:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh104:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh105:
	ldr	x8, [x8]
	ldr	w3, [x8, w24, uxtw #2]
	mov	x0, x20
	mov	w2, #-2097152
	bl	_rtl_set_bbreg
	ldr	w1, [x26]
	ldr	w2, [x25]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh106:
	adrp	x3, l_.str.11@PAGE
Lloh107:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w8, [x21, #52]
	cbz	w8, LBB0_38
; %bb.35:
	ldr	x8, [x21, #40]
	str	wzr, [x8, x23, lsl #2]
	ldr	w1, [x19]
	ldr	x2, [x22]
	mov	x0, x20
	bl	_rtl8821ae_phy_set_txpower_level_by_path
	str	wzr, [x21, #52]
	ldr	w1, [x26]
	ldr	w2, [x25]
Lloh108:
	adrp	x3, l_.str.12@PAGE
Lloh109:
	add	x3, x3, l_.str.12@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_RT_TRACE
LBB0_36:
	ldr	x8, [x21, #40]
	lsl	x23, x23, #2
	str	w24, [x8, x23]
Lloh110:
	adrp	x8, _RB_TXSCALE@GOTPAGE
Lloh111:
	ldr	x8, [x8, _RB_TXSCALE@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
Lloh113:
	adrp	x8, _txscaling_tbl@GOTPAGE
Lloh114:
	ldr	x8, [x8, _txscaling_tbl@GOTPAGEOFF]
Lloh115:
	ldr	x8, [x8]
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #-2097152
	bl	_rtl_set_bbreg
	mov	w8, #1
	str	w8, [x21, #52]
	ldr	w1, [x19]
	ldr	x2, [x22]
	mov	x0, x20
	bl	_rtl8821ae_phy_set_txpower_level_by_path
	ldr	w1, [x26]
	ldr	w2, [x25]
	ldr	x8, [x21, #40]
	ldr	w8, [x8, x23]
	str	x8, [sp]
Lloh116:
	adrp	x3, l_.str.10@PAGE
Lloh117:
	add	x3, x3, l_.str.10@PAGEOFF
LBB0_37:
	mov	x0, x19
	bl	_RT_TRACE
LBB0_38:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_39:
Lloh118:
	adrp	x8, _MGN_MCS5@GOTPAGE
Lloh119:
	ldr	x8, [x8, _MGN_MCS5@GOTPAGEOFF]
Lloh120:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_41
; %bb.40:
Lloh121:
	adrp	x8, _MGN_MCS7@GOTPAGE
Lloh122:
	ldr	x8, [x8, _MGN_MCS7@GOTPAGEOFF]
Lloh123:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_8
LBB0_41:
Lloh124:
	adrp	x8, _MGN_MCS8@GOTPAGE
Lloh125:
	ldr	x8, [x8, _MGN_MCS8@GOTPAGEOFF]
Lloh126:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_43
; %bb.42:
Lloh127:
	adrp	x8, _MGN_MCS10@GOTPAGE
Lloh128:
	ldr	x8, [x8, _MGN_MCS10@GOTPAGEOFF]
Lloh129:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_12
LBB0_43:
Lloh130:
	adrp	x8, _MGN_MCS11@GOTPAGE
Lloh131:
	ldr	x8, [x8, _MGN_MCS11@GOTPAGEOFF]
Lloh132:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_45
; %bb.44:
Lloh133:
	adrp	x8, _MGN_MCS12@GOTPAGE
Lloh134:
	ldr	x8, [x8, _MGN_MCS12@GOTPAGEOFF]
Lloh135:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_15
LBB0_45:
Lloh136:
	adrp	x8, _MGN_MCS13@GOTPAGE
Lloh137:
	ldr	x8, [x8, _MGN_MCS13@GOTPAGEOFF]
Lloh138:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_47
; %bb.46:
Lloh139:
	adrp	x8, _MGN_MCS15@GOTPAGE
Lloh140:
	ldr	x8, [x8, _MGN_MCS15@GOTPAGEOFF]
Lloh141:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_8
LBB0_47:
Lloh142:
	adrp	x8, _MGN_VHT1SS_MCS0@GOTPAGE
Lloh143:
	ldr	x8, [x8, _MGN_VHT1SS_MCS0@GOTPAGEOFF]
Lloh144:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_49
; %bb.48:
Lloh145:
	adrp	x8, _MGN_VHT1SS_MCS2@GOTPAGE
Lloh146:
	ldr	x8, [x8, _MGN_VHT1SS_MCS2@GOTPAGEOFF]
Lloh147:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_12
LBB0_49:
Lloh148:
	adrp	x8, _MGN_VHT1SS_MCS3@GOTPAGE
Lloh149:
	ldr	x8, [x8, _MGN_VHT1SS_MCS3@GOTPAGEOFF]
Lloh150:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_51
; %bb.50:
Lloh151:
	adrp	x8, _MGN_VHT1SS_MCS4@GOTPAGE
Lloh152:
	ldr	x8, [x8, _MGN_VHT1SS_MCS4@GOTPAGEOFF]
Lloh153:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_15
LBB0_51:
Lloh154:
	adrp	x8, _MGN_VHT1SS_MCS5@GOTPAGE
Lloh155:
	ldr	x8, [x8, _MGN_VHT1SS_MCS5@GOTPAGEOFF]
Lloh156:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_53
; %bb.52:
Lloh157:
	adrp	x8, _MGN_VHT1SS_MCS6@GOTPAGE
Lloh158:
	ldr	x8, [x8, _MGN_VHT1SS_MCS6@GOTPAGEOFF]
Lloh159:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_8
LBB0_53:
Lloh160:
	adrp	x8, _MGN_VHT1SS_MCS7@GOTPAGE
Lloh161:
	ldr	x8, [x8, _MGN_VHT1SS_MCS7@GOTPAGEOFF]
Lloh162:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_4
; %bb.54:
Lloh163:
	adrp	x8, _MGN_VHT1SS_MCS8@GOTPAGE
Lloh164:
	ldr	x8, [x8, _MGN_VHT1SS_MCS8@GOTPAGEOFF]
Lloh165:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_56
; %bb.55:
	mov	w27, #24
	b	LBB0_16
LBB0_56:
Lloh166:
	adrp	x8, _MGN_VHT1SS_MCS9@GOTPAGE
Lloh167:
	ldr	x8, [x8, _MGN_VHT1SS_MCS9@GOTPAGEOFF]
Lloh168:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_58
; %bb.57:
	mov	w27, #22
	b	LBB0_16
LBB0_58:
Lloh169:
	adrp	x8, _MGN_VHT2SS_MCS0@GOTPAGE
Lloh170:
	ldr	x8, [x8, _MGN_VHT2SS_MCS0@GOTPAGEOFF]
Lloh171:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_60
; %bb.59:
Lloh172:
	adrp	x8, _MGN_VHT2SS_MCS2@GOTPAGE
Lloh173:
	ldr	x8, [x8, _MGN_VHT2SS_MCS2@GOTPAGEOFF]
Lloh174:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_12
LBB0_60:
Lloh175:
	adrp	x8, _MGN_VHT2SS_MCS3@GOTPAGE
Lloh176:
	ldr	x8, [x8, _MGN_VHT2SS_MCS3@GOTPAGEOFF]
Lloh177:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_62
; %bb.61:
Lloh178:
	adrp	x8, _MGN_VHT2SS_MCS4@GOTPAGE
Lloh179:
	ldr	x8, [x8, _MGN_VHT2SS_MCS4@GOTPAGEOFF]
Lloh180:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_15
LBB0_62:
Lloh181:
	adrp	x8, _MGN_VHT2SS_MCS5@GOTPAGE
Lloh182:
	ldr	x8, [x8, _MGN_VHT2SS_MCS5@GOTPAGEOFF]
Lloh183:
	ldr	w8, [x8]
	cmp	w24, w8
	b.lt	LBB0_64
; %bb.63:
Lloh184:
	adrp	x8, _MGN_VHT2SS_MCS6@GOTPAGE
Lloh185:
	ldr	x8, [x8, _MGN_VHT2SS_MCS6@GOTPAGEOFF]
Lloh186:
	ldr	w8, [x8]
	cmp	w24, w8
	b.le	LBB0_8
LBB0_64:
Lloh187:
	adrp	x8, _MGN_VHT2SS_MCS7@GOTPAGE
Lloh188:
	ldr	x8, [x8, _MGN_VHT2SS_MCS7@GOTPAGEOFF]
Lloh189:
	ldr	w8, [x8]
	cmp	w24, w8
	b.eq	LBB0_4
; %bb.65:
Lloh190:
	adrp	x8, _MGN_VHT2SS_MCS8@GOTPAGE
Lloh191:
	ldr	x8, [x8, _MGN_VHT2SS_MCS8@GOTPAGEOFF]
Lloh192:
	ldr	w8, [x8]
	mov	w27, #24
	cmp	w24, w8
	b.eq	LBB0_16
; %bb.66:
Lloh193:
	adrp	x8, _MGN_VHT2SS_MCS9@GOTPAGE
Lloh194:
	ldr	x8, [x8, _MGN_VHT2SS_MCS9@GOTPAGEOFF]
Lloh195:
	ldr	w8, [x8]
	mov	w9, #22
	cmp	w24, w8
	csel	w27, w9, w27, eq
	b	LBB0_16
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh181, Lloh182, Lloh183
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh186
	.loh AdrpLdrGotLdr	Lloh187, Lloh188, Lloh189
	.loh AdrpLdrGotLdr	Lloh190, Lloh191, Lloh192
	.loh AdrpLdrGotLdr	Lloh193, Lloh194, Lloh195
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_POWER_TRACKING,4,2        ; @COMP_POWER_TRACKING
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"===>rtl8812ae_dm_txpwr_track_set_pwr\n"

	.comm	_MGN_1M,4,2                     ; @MGN_1M
	.comm	_MGN_11M,4,2                    ; @MGN_11M
	.comm	_MGN_6M,4,2                     ; @MGN_6M
	.comm	_MGN_48M,4,2                    ; @MGN_48M
	.comm	_MGN_54M,4,2                    ; @MGN_54M
	.comm	_MGN_MCS0,4,2                   ; @MGN_MCS0
	.comm	_MGN_MCS2,4,2                   ; @MGN_MCS2
	.comm	_MGN_MCS3,4,2                   ; @MGN_MCS3
	.comm	_MGN_MCS4,4,2                   ; @MGN_MCS4
	.comm	_MGN_MCS5,4,2                   ; @MGN_MCS5
	.comm	_MGN_MCS7,4,2                   ; @MGN_MCS7
	.comm	_MGN_MCS8,4,2                   ; @MGN_MCS8
	.comm	_MGN_MCS10,4,2                  ; @MGN_MCS10
	.comm	_MGN_MCS11,4,2                  ; @MGN_MCS11
	.comm	_MGN_MCS12,4,2                  ; @MGN_MCS12
	.comm	_MGN_MCS13,4,2                  ; @MGN_MCS13
	.comm	_MGN_MCS15,4,2                  ; @MGN_MCS15
	.comm	_MGN_VHT1SS_MCS0,4,2            ; @MGN_VHT1SS_MCS0
	.comm	_MGN_VHT1SS_MCS2,4,2            ; @MGN_VHT1SS_MCS2
	.comm	_MGN_VHT1SS_MCS3,4,2            ; @MGN_VHT1SS_MCS3
	.comm	_MGN_VHT1SS_MCS4,4,2            ; @MGN_VHT1SS_MCS4
	.comm	_MGN_VHT1SS_MCS5,4,2            ; @MGN_VHT1SS_MCS5
	.comm	_MGN_VHT1SS_MCS6,4,2            ; @MGN_VHT1SS_MCS6
	.comm	_MGN_VHT1SS_MCS7,4,2            ; @MGN_VHT1SS_MCS7
	.comm	_MGN_VHT1SS_MCS8,4,2            ; @MGN_VHT1SS_MCS8
	.comm	_MGN_VHT1SS_MCS9,4,2            ; @MGN_VHT1SS_MCS9
	.comm	_MGN_VHT2SS_MCS0,4,2            ; @MGN_VHT2SS_MCS0
	.comm	_MGN_VHT2SS_MCS2,4,2            ; @MGN_VHT2SS_MCS2
	.comm	_MGN_VHT2SS_MCS3,4,2            ; @MGN_VHT2SS_MCS3
	.comm	_MGN_VHT2SS_MCS4,4,2            ; @MGN_VHT2SS_MCS4
	.comm	_MGN_VHT2SS_MCS5,4,2            ; @MGN_VHT2SS_MCS5
	.comm	_MGN_VHT2SS_MCS6,4,2            ; @MGN_VHT2SS_MCS6
	.comm	_MGN_VHT2SS_MCS7,4,2            ; @MGN_VHT2SS_MCS7
	.comm	_MGN_VHT2SS_MCS8,4,2            ; @MGN_VHT2SS_MCS8
	.comm	_MGN_VHT2SS_MCS9,4,2            ; @MGN_VHT2SS_MCS9
l_.str.1:                               ; @.str.1
	.asciz	"TxRate=0x%x, PwrTrackingLimit=%d\n"

	.comm	_BBSWING,4,2                    ; @BBSWING
	.comm	_RF90_PATH_A,4,2                ; @RF90_PATH_A
l_.str.2:                               ; @.str.2
	.asciz	"pDM_Odm->RFCalibrateInfo.OFDM_index[ODM_RF_PATH_A]=%d,pDM_Odm->RealBbSwingIdx[ODM_RF_PATH_A]=%d\n"

	.comm	_RA_TXSCALE,4,2                 ; @RA_TXSCALE
	.comm	_txscaling_tbl,8,3              ; @txscaling_tbl
	.comm	_RF90_PATH_B,8,3                ; @RF90_PATH_B
l_.str.3:                               ; @.str.3
	.asciz	"pDM_Odm->RFCalibrateInfo.OFDM_index[ODM_RF_PATH_B]=%d, pDM_Odm->RealBbSwingIdx[ODM_RF_PATH_B]=%d\n"

	.comm	_RB_TXSCALE,4,2                 ; @RB_TXSCALE
	.comm	_MIX_MODE,4,2                   ; @MIX_MODE
l_.str.4:                               ; @.str.4
	.asciz	"pDM_Odm->DefaultOfdmIndex=%d, pDM_Odm->Absolute_OFDMSwingIdx[RFPath]=%d, RF_Path = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"******Path_A Over BBSwing Limit ,PwrTrackingLimit = %d ,Remnant TxAGC Value = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"******Path_A Lower then BBSwing lower bound  0 , Remnant TxAGC Value = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"******Path_A Compensate with BBSwing, Final_OFDM_Swing_Index = %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"******Path_A pDM_Odm->Modify_TxAGC_Flag = FALSE\n"

l_.str.9:                               ; @.str.9
	.asciz	"******Path_B Over BBSwing Limit , PwrTrackingLimit = %d , Remnant TxAGC Value = %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"******Path_B Lower then BBSwing lower bound  0 , Remnant TxAGC Value = %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"******Path_B Compensate with BBSwing ,Final_OFDM_Swing_Index = %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"******Path_B pDM_Odm->Modify_TxAGC_Flag = FALSE\n"

.subsections_via_symbols
