	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8812ae_phy_set_txpower_limit
__rtl8812ae_phy_set_txpower_limit:      ## @_rtl8812ae_phy_set_txpower_limit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	16(%rbp), %r12
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_rtl_priv
	movq	%rax, %r13
	movq	$0, -48(%rbp)
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	__rtl8812ae_get_integer_from_string
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	24(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	xorl	%eax, %eax
	callq	__rtl8812ae_get_integer_from_string
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	-48(%rbp), %r15
LBB0_3:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r8
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_4:
	movq	-48(%rbp), %rax
	movq	_MAX_POWER_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, -48(%rbp)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$2, %ecx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	__rtl8812ae_eq_n_byte
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	(%rcx,%rcx,2), %rcx
LBB0_9:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	xorl	%r15d, %r15d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$1, %r15d
	testq	%rax, %rax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
LBB0_21:
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_23:
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$2, %r14d
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	__rtl8812ae_eq_n_byte
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	(%rcx,%rcx,2), %r14
LBB0_26:
	leaq	L_.str.15(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_32
## %bb.27:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	__rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt
	cmpq	$-1, %rax
	je	LBB0_38
## %bb.28:
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	(%rax,%r8,8), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rax,%rdx,8), %r10
	movq	-48(%rbp), %rsi
	cmpq	%r10, %rsi
	jge	LBB0_30
## %bb.29:
	movq	%rsi, (%rax,%rdx,8)
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r10
LBB0_30:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	L_.str.16(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%rbx
	jmp	LBB0_31
LBB0_32:
	leaq	L_.str.17(%rip), %rsi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_37
## %bb.33:
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	__rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt
	cmpq	$-1, %rax
	je	LBB0_38
## %bb.34:
	movq	8(%r13), %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	(%rcx,%r8,8), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rax,%rdx,8), %rbx
	movq	-48(%rbp), %rsi
	cmpq	%rbx, %rsi
	jge	LBB0_36
## %bb.35:
	movq	%rsi, (%rax,%rdx,8)
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
LBB0_36:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	L_.str.18(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %r9
	xorl	%eax, %eax
	pushq	%rbx
	pushq	-64(%rbp)
LBB0_31:
	pushq	%r15
	callq	_RT_TRACE
	addq	$32, %rsp
	jmp	LBB0_38
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$2, %r15d
	testq	%rax, %rax
	jne	LBB0_21
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.9(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$3, %r15d
	testq	%rax, %rax
	jne	LBB0_21
LBB0_16:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	movl	$4, %r15d
	testq	%rax, %rax
	jne	LBB0_21
LBB0_18:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	__rtl8812ae_eq_n_byte
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %edx
	callq	__rtl8812ae_eq_n_byte
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	(%rcx,%rcx,4), %r15
	jmp	LBB0_21
LBB0_37:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.19(%rip), %rcx
	movq	%r13, %rdi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_38:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal index of pwr_lmt table [chnl %d][val %d]\n"

	.comm	_MAX_POWER_INDEX,8,3            ## @MAX_POWER_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"FCC"

L_.str.2:                               ## @.str.2
	.asciz	"MKK"

L_.str.3:                               ## @.str.3
	.asciz	"ETSI"

L_.str.4:                               ## @.str.4
	.asciz	"WW13"

L_.str.5:                               ## @.str.5
	.asciz	"CCK"

L_.str.6:                               ## @.str.6
	.asciz	"OFDM"

L_.str.7:                               ## @.str.7
	.asciz	"HT"

L_.str.8:                               ## @.str.8
	.asciz	"1T"

L_.str.9:                               ## @.str.9
	.asciz	"2T"

L_.str.10:                              ## @.str.10
	.asciz	"VHT"

L_.str.11:                              ## @.str.11
	.asciz	"20M"

L_.str.12:                              ## @.str.12
	.asciz	"40M"

L_.str.13:                              ## @.str.13
	.asciz	"80M"

L_.str.14:                              ## @.str.14
	.asciz	"160M"

L_.str.15:                              ## @.str.15
	.asciz	"2.4G"

	.comm	_BAND_ON_2_4G,4,2               ## @BAND_ON_2_4G
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
L_.str.16:                              ## @.str.16
	.asciz	"2.4G [regula %d][bw %d][sec %d][chnl %d][val %d]\n"

L_.str.17:                              ## @.str.17
	.asciz	"5G"

	.comm	_BAND_ON_5G,4,2                 ## @BAND_ON_5G
L_.str.18:                              ## @.str.18
	.asciz	"5G: [regul %d][bw %d][sec %d][chnl %d][val %d]\n"

L_.str.19:                              ## @.str.19
	.asciz	"Cannot recognize the band info in %s\n"

	.no_dead_strip	__rtl8812ae_phy_set_txpower_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8812ae_phy_set_txpower_limit
__rtl8812ae_phy_set_txpower_limit:      ; @_rtl8812ae_phy_set_txpower_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x26, x7
	mov	x27, x6
	mov	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x25, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	str	xzr, [sp, #48]
	add	x8, sp, #56
	str	x8, [sp]
	mov	x0, x27
	bl	__rtl8812ae_get_integer_from_string
Lloh0:
	adrp	x28, _COMP_INIT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _COMP_INIT@GOTPAGEOFF]
Lloh2:
	adrp	x27, _DBG_TRACE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DBG_TRACE@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	add	x8, sp, #48
	str	x8, [sp]
	mov	x0, x26
	bl	__rtl8812ae_get_integer_from_string
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [sp, #48]
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
	ldr	w1, [x28]
	ldr	w2, [x27]
	ldr	x9, [sp, #56]
	stp	x9, x8, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_5:
	ldr	x8, [sp, #48]
Lloh6:
	adrp	x9, _MAX_POWER_INDEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_POWER_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	str	x8, [sp, #48]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_7
; %bb.6:
	mov	x25, #0
	b	LBB0_12
LBB0_7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_9
; %bb.8:
	mov	w25, #1
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x25
	mov	w2, #4
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_11
; %bb.10:
	mov	w25, #2
	b	LBB0_12
LBB0_11:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x25
	mov	w2, #4
	bl	__rtl8812ae_eq_n_byte
	mov	w8, #3
	cmp	x0, #0
	csel	x25, xzr, x8, eq
LBB0_12:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_14
LBB0_13:
	mov	x26, #0
	b	LBB0_16
LBB0_14:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x24
	mov	w2, #4
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_20
; %bb.15:
	mov	w26, #1
LBB0_16:
Lloh21:
	adrp	x1, l_.str.11@PAGE
Lloh22:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x22
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_18
; %bb.17:
	mov	x22, #0
	b	LBB0_31
LBB0_18:
Lloh23:
	adrp	x1, l_.str.12@PAGE
Lloh24:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_25
; %bb.19:
	mov	w22, #1
	b	LBB0_31
LBB0_20:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_22
; %bb.21:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w26, #2
	mov	x0, x23
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	cbnz	x0, LBB0_16
LBB0_22:
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_27
; %bb.23:
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x23
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_27
; %bb.24:
	mov	w26, #3
	b	LBB0_16
LBB0_25:
Lloh33:
	adrp	x1, l_.str.13@PAGE
Lloh34:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x22
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_30
; %bb.26:
	mov	w22, #2
	b	LBB0_31
LBB0_27:
Lloh35:
	adrp	x1, l_.str.10@PAGE
Lloh36:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x24
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_44
; %bb.28:
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_44
; %bb.29:
	mov	w26, #4
	b	LBB0_16
LBB0_30:
Lloh39:
	adrp	x1, l_.str.14@PAGE
Lloh40:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	__rtl8812ae_eq_n_byte
	mov	w8, #3
	cmp	x0, #0
	csel	x22, xzr, x8, eq
LBB0_31:
Lloh41:
	adrp	x1, l_.str.15@PAGE
Lloh42:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x21
	mov	w2, #4
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_36
; %bb.32:
Lloh43:
	adrp	x8, _BAND_ON_2_4G@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	x2, [sp, #56]
	mov	x0, x20
	bl	__rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt
	cmn	x0, #1
	b.eq	LBB0_43
; %bb.33:
	ldr	x8, [x19]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, x0, lsl #3]
Lloh46:
	adrp	x10, _RF90_PATH_A@GOTPAGE
Lloh47:
	ldr	x10, [x10, _RF90_PATH_A@GOTPAGEOFF]
	ldr	x11, [x10]
	ldr	x9, [x8, x11, lsl #3]
	ldr	x12, [sp, #48]
	cmp	x12, x9
	b.ge	LBB0_35
; %bb.34:
	str	x12, [x8, x11, lsl #3]
	ldr	x9, [x10]
	ldr	x9, [x8, x9, lsl #3]
LBB0_35:
	ldr	w1, [x28]
	ldr	w2, [x27]
	stp	x0, x9, [sp, #24]
	stp	x22, x26, [sp, #8]
	str	x25, [sp]
Lloh48:
	adrp	x3, l_.str.16@PAGE
Lloh49:
	add	x3, x3, l_.str.16@PAGEOFF
	b	LBB0_42
LBB0_36:
Lloh50:
	adrp	x1, l_.str.17@PAGE
Lloh51:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x21
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_41
; %bb.37:
Lloh52:
	adrp	x8, _BAND_ON_5G@GOTPAGE
Lloh53:
	ldr	x8, [x8, _BAND_ON_5G@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	x2, [sp, #56]
	mov	x0, x20
	bl	__rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt
	cmn	x0, #1
	b.eq	LBB0_43
; %bb.38:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x25, lsl #3]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x9, [x8, x0, lsl #3]
Lloh55:
	adrp	x10, _RF90_PATH_A@GOTPAGE
Lloh56:
	ldr	x10, [x10, _RF90_PATH_A@GOTPAGEOFF]
	ldr	x11, [x10]
	ldr	x8, [x9, x11, lsl #3]
	ldr	x12, [sp, #48]
	cmp	x12, x8
	b.ge	LBB0_40
; %bb.39:
	str	x12, [x9, x11, lsl #3]
	ldr	x8, [x10]
	ldr	x8, [x9, x8, lsl #3]
LBB0_40:
	ldr	w1, [x28]
	ldr	w2, [x27]
	ldr	x9, [sp, #56]
	stp	x9, x8, [sp, #24]
	stp	x22, x26, [sp, #8]
	str	x25, [sp]
Lloh57:
	adrp	x3, l_.str.18@PAGE
Lloh58:
	add	x3, x3, l_.str.18@PAGEOFF
	b	LBB0_42
LBB0_41:
	ldr	w1, [x28]
	ldr	w2, [x27]
	str	x21, [sp]
Lloh59:
	adrp	x3, l_.str.19@PAGE
Lloh60:
	add	x3, x3, l_.str.19@PAGEOFF
LBB0_42:
	mov	x0, x19
	bl	_RT_TRACE
LBB0_43:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_44:
Lloh61:
	adrp	x1, l_.str.10@PAGE
Lloh62:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x24
	mov	w2, #3
	bl	__rtl8812ae_eq_n_byte
	cbz	x0, LBB0_13
; %bb.45:
Lloh63:
	adrp	x1, l_.str.9@PAGE
Lloh64:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x23
	mov	w2, #2
	bl	__rtl8812ae_eq_n_byte
	mov	w8, #5
	cmp	x0, #0
	csel	x26, xzr, x8, eq
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal index of pwr_lmt table [chnl %d][val %d]\n"

	.comm	_MAX_POWER_INDEX,8,3            ; @MAX_POWER_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"FCC"

l_.str.2:                               ; @.str.2
	.asciz	"MKK"

l_.str.3:                               ; @.str.3
	.asciz	"ETSI"

l_.str.4:                               ; @.str.4
	.asciz	"WW13"

l_.str.5:                               ; @.str.5
	.asciz	"CCK"

l_.str.6:                               ; @.str.6
	.asciz	"OFDM"

l_.str.7:                               ; @.str.7
	.asciz	"HT"

l_.str.8:                               ; @.str.8
	.asciz	"1T"

l_.str.9:                               ; @.str.9
	.asciz	"2T"

l_.str.10:                              ; @.str.10
	.asciz	"VHT"

l_.str.11:                              ; @.str.11
	.asciz	"20M"

l_.str.12:                              ; @.str.12
	.asciz	"40M"

l_.str.13:                              ; @.str.13
	.asciz	"80M"

l_.str.14:                              ; @.str.14
	.asciz	"160M"

l_.str.15:                              ; @.str.15
	.asciz	"2.4G"

	.comm	_BAND_ON_2_4G,4,2               ; @BAND_ON_2_4G
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
l_.str.16:                              ; @.str.16
	.asciz	"2.4G [regula %d][bw %d][sec %d][chnl %d][val %d]\n"

l_.str.17:                              ; @.str.17
	.asciz	"5G"

	.comm	_BAND_ON_5G,4,2                 ; @BAND_ON_5G
l_.str.18:                              ; @.str.18
	.asciz	"5G: [regul %d][bw %d][sec %d][chnl %d][val %d]\n"

l_.str.19:                              ; @.str.19
	.asciz	"Cannot recognize the band info in %s\n"

	.no_dead_strip	__rtl8812ae_phy_set_txpower_limit
.subsections_via_symbols
