	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8812ae_phy_get_txpower_limit
__rtl8812ae_phy_get_txpower_limit:      ## @_rtl8812ae_phy_get_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	_MAX_POWER_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$2, (%rax)
	je	LBB0_43
## %bb.1:
	movl	%r12d, -168(%rbp)               ## 4-byte Spill
	movl	%ecx, -164(%rbp)                ## 4-byte Spill
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %r12
	movq	_BAND_ON_5G@GOTPCREL(%rip), %r11
	movl	(%r11), %eax
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	sete	%cl
	xorl	%esi, %esi
	cmpl	%ebx, (%r12)
	movq	_TXPWR_LMT_WW@GOTPCREL(%rip), %r10
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	leal	-1(%rcx,%rcx), %ecx
	cmovel	%esi, %ecx
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	sete	%dl
	movq	_HT_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	movl	%ebx, %r8d
	je	LBB0_4
## %bb.2:
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rcx
	movw	$1, %si
	cmpl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_HT_CHANNEL_WIDTH_80@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	movl	$2, %ecx
	movl	$65535, %esi                    ## imm = 0xFFFF
	cmovel	%ecx, %esi
LBB0_4:
	movl	%esi, -116(%rbp)                ## 4-byte Spill
	movl	%edx, %ebx
	movq	%r15, -152(%rbp)                ## 8-byte Spill
	movswl	(%r10), %r9d
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leal	-128(%rcx), %edx
	cmpl	$47, %edx
	movl	%r9d, -104(%rbp)                ## 4-byte Spill
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	ja	LBB0_9
## %bb.5:
	movw	$2, %cx
	movb	$1, %sil
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movl	$1, %r15d
	movw	$1, %si
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdi
	addq	%rsi, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$0, -112(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmpq	*%rdi
LBB0_8:
	movw	$5, %cx
	jmp	LBB0_7
LBB0_6:
	movw	$4, %cx
LBB0_7:
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_14:
	movw	$3, %cx
	movb	$1, %r14b
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
LBB0_15:
	xorl	%esi, %esi
LBB0_16:
	movl	%r14d, %edx
	movswl	%cx, %r15d
	movl	-100(%rbp), %r14d               ## 4-byte Reload
                                        ## kill: def $r14b killed $r14b killed $r14d def $r14d
                                        ## kill: def $sil killed $sil killed $esi def $esi
	movl	%esi, -112(%rbp)                ## 4-byte Spill
	movl	%ecx, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
LBB0_17:
	movl	-116(%rbp), %r13d               ## 4-byte Reload
                                        ## kill: def $r13w killed $r13w killed $r13d def $r13d
LBB0_18:
	orb	-176(%rbp), %bl                 ## 1-byte Folded Reload
	testb	%dl, %dl
	jne	LBB0_20
## %bb.19:
	testb	%r14b, %r14b
	je	LBB0_21
LBB0_20:
	cmpl	%r8d, (%r11)
	movl	$1, %eax
	cmovnel	%r13d, %eax
	cmpw	$2, %r13w
	cmovnel	%r13d, %eax
	movl	%eax, %r13d
LBB0_21:
	movslq	%r9d, %r14
	xorb	$1, %bl
	cmpl	%r8d, (%r12)
	je	LBB0_23
## %bb.22:
	movw	$-1, %ax
	cmpl	%r8d, (%r11)
	jne	LBB0_24
LBB0_23:
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movl	%r8d, %esi
	movl	-168(%rbp), %edx                ## 4-byte Reload
	movq	%r15, -160(%rbp)                ## 8-byte Spill
	movq	%r10, %r15
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movl	%r8d, %r14d
	movq	%r11, %r12
	callq	__rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt
	movq	%r12, %r11
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %r12
	movl	-104(%rbp), %r9d                ## 4-byte Reload
	movl	%r14d, %r8d
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r15, %r10
	movq	-160(%rbp), %r15                ## 8-byte Reload
LBB0_24:
	cmpw	$-1, %r14w
	sete	%cl
	orb	%cl, %bl
	cmpw	$-1, %r13w
	sete	%cl
	orb	%bl, %cl
	movl	-112(%rbp), %edx                ## 4-byte Reload
	orb	%cl, %dl
	jne	LBB0_26
## %bb.25:
	cmpw	$-1, %ax
	je	LBB0_26
## %bb.27:
	movq	%r11, %rcx
	movq	%r10, %r15
	movzwl	%r13w, %edx
	movswq	-108(%rbp), %r10                ## 2-byte Folded Reload
	movswq	%ax, %r11
	cmpl	%r8d, (%r12)
	jne	LBB0_32
## %bb.28:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	movl	-152(%rbp), %esi                ## 4-byte Reload
	movq	(%rdi), %rbx
	movq	(%rbx,%rdx,8), %rbx
	movq	(%rbx,%r10,8), %rbx
	movq	(%rbx,%r11,8), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, -96(%rbp)
	movq	8(%rdi), %rbx
	movq	(%rbx,%rdx,8), %rbx
	movq	(%rbx,%r10,8), %rbx
	movq	(%rbx,%r11,8), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, -92(%rbp)
	movq	16(%rdi), %rbx
	movq	(%rbx,%rdx,8), %rbx
	movq	(%rbx,%r10,8), %rbx
	movq	(%rbx,%r11,8), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, -88(%rbp)
	movq	24(%rdi), %rbx
	movq	(%rbx,%rdx,8), %rbx
	movq	(%rbx,%r10,8), %rbx
	movq	(%rbx,%r11,8), %rbx
	movl	(%rbx,%rsi,4), %ebx
	movl	%ebx, -84(%rbp)
	movl	-104(%rbp), %eax                ## 4-byte Reload
	cmpw	(%r15), %ax
	je	LBB0_29
## %bb.30:
	movq	(%rdi,%r14,8), %rdi
	movq	(%rdi,%rdx,8), %rdx
	movq	(%rdx,%r10,8), %rcx
	jmp	LBB0_31
LBB0_26:
	movswl	%ax, %ebx
	movswl	%r13w, %r10d
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	-132(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r15
	pushq	-152(%rbp)                      ## 8-byte Folded Reload
	pushq	%r10
	callq	_RT_TRACE
	addq	$32, %rsp
	movq	_MAX_POWER_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_43
LBB0_32:
	cmpl	%r8d, (%rcx)
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_42
## %bb.33:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	movq	_MAX_REGULATION_NUM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	%eax, %esi
	testl	%r8d, %r8d
	jle	LBB0_40
## %bb.34:
	movq	(%rdi), %rbx
	cmpl	$1, %r8d
	jne	LBB0_36
## %bb.35:
	xorl	%eax, %eax
	jmp	LBB0_38
LBB0_42:
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	-164(%rbp), %ecx                ## 4-byte Reload
	jmp	LBB0_43
LBB0_10:
	cmpl	%eax, -132(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.13:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%r14d, %r14d
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	%r8d, %r13d
	movq	-128(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	movq	%r10, %r15
	callq	_RT_TRACE
	movq	_BAND_ON_5G@GOTPCREL(%rip), %r11
	movl	-104(%rbp), %r9d                ## 4-byte Reload
	movl	%r13d, %r8d
	movq	%r15, %r10
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	xorl	%edx, %edx
	movl	$0, -112(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -108(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_36:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rax,8), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx,%r10,8), %rcx
	movq	(%rcx,%r11,8), %rcx
	movl	(%rcx,%rsi,4), %ecx
	movl	%ecx, -96(%rbp,%rax,4)
	movq	8(%rbx,%rax,8), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx,%r10,8), %rcx
	movq	(%rcx,%r11,8), %rcx
	movl	(%rcx,%rsi,4), %ecx
	movl	%ecx, -92(%rbp,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %r9
	jne	LBB0_37
LBB0_38:
	testb	$1, %r8b
	je	LBB0_40
## %bb.39:
	movq	(%rbx,%rax,8), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx,%r10,8), %rcx
	movq	(%rcx,%r11,8), %rcx
	movl	(%rcx,%rsi,4), %ecx
	movl	%ecx, -96(%rbp,%rax,4)
LBB0_40:
	cmpw	(%r15), %r14w
	jne	LBB0_41
LBB0_29:
	leaq	-96(%rbp), %rdi
	callq	__rtl8812ae_phy_get_world_wide_limit
	movl	%eax, %ecx
	jmp	LBB0_43
LBB0_41:
	movq	(%rdi), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx,%r11,8), %rcx
	movq	(%rcx,%r10,8), %rcx
LBB0_31:
	movq	(%rcx,%r11,8), %rax
	movl	(%rax,%rsi,4), %ecx
LBB0_43:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.44:
	movl	%ecx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movl	$0, -100(%rbp)                  ## 4-byte Folded Spill
	movq	%r13, %rdi
	movl	%r8d, %r13d
	movq	-128(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	movq	%r10, %r14
	movq	%r11, %r15
	callq	_RT_TRACE
	movq	%r15, %r11
	movl	-104(%rbp), %r9d                ## 4-byte Reload
	movl	%r13d, %r8d
	movq	%r14, %r10
	movw	$-1, %cx
	movb	$1, %sil
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_10
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_MAX_POWER_INDEX,4,2            ## @MAX_POWER_INDEX
	.comm	_TXPWR_LMT_WW,2,1               ## @TXPWR_LMT_WW
	.comm	_BAND_ON_2_4G,4,2               ## @BAND_ON_2_4G
	.comm	_BAND_ON_5G,4,2                 ## @BAND_ON_5G
	.comm	_HT_CHANNEL_WIDTH_20,4,2        ## @HT_CHANNEL_WIDTH_20
	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ## @HT_CHANNEL_WIDTH_20_40
	.comm	_HT_CHANNEL_WIDTH_80,4,2        ## @HT_CHANNEL_WIDTH_80
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong rate 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Wrong rate 0x%x: No CCK in 5G Band\n"

	.comm	_BAND_ON_BOTH,4,2               ## @BAND_ON_BOTH
L_.str.2:                               ## @.str.2
	.asciz	"Wrong index value to access power limit table [band %d][regulation %d][bandwidth %d][rf_path %d][rate_section %d][chnl %d]\n"

	.comm	_MAX_REGULATION_NUM,4,2         ## @MAX_REGULATION_NUM
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
L_.str.3:                               ## @.str.3
	.asciz	"No power limit table of the specified band\n"

	.no_dead_strip	__rtl8812ae_phy_get_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_get_txpower_limit
__rtl8812ae_phy_get_txpower_limit:      ; @_rtl8812ae_phy_get_txpower_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x23, x5
	mov	x25, x4
	mov	x19, x3
	mov	x26, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_rtl_priv
	mov	x20, x0
	bl	_rtl_efuse
Lloh3:
	adrp	x8, _MAX_POWER_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_POWER_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w8, [x0]
	cmp	w8, #2
	b.eq	LBB0_36
; %bb.1:
	str	x19, [sp, #72]                  ; 8-byte Folded Spill
	mov	w19, #0
Lloh6:
	adrp	x1, _TXPWR_LMT_WW@GOTPAGE
Lloh7:
	ldr	x1, [x1, _TXPWR_LMT_WW@GOTPAGEOFF]
Lloh8:
	adrp	x27, _BAND_ON_2_4G@GOTPAGE
Lloh9:
	ldr	x27, [x27, _BAND_ON_2_4G@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh10:
	adrp	x2, _BAND_ON_5G@GOTPAGE
Lloh11:
	ldr	x2, [x2, _BAND_ON_5G@GOTPAGEOFF]
	ldr	w11, [x2]
	cmp	w11, w22
	cset	w0, ne
	mov	w9, #1
	cneg	w9, w9, ne
	cmp	w8, w22
	csel	w5, wzr, w9, eq
	cset	w6, ne
Lloh12:
	adrp	x8, _HT_CHANNEL_WIDTH_20@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w26
	b.eq	LBB0_5
; %bb.2:
Lloh15:
	adrp	x8, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w26
	b.ne	LBB0_4
; %bb.3:
	mov	w19, #1
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _HT_CHANNEL_WIDTH_80@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HT_CHANNEL_WIDTH_80@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w26
	mov	w8, #2
	csinv	w19, w8, wzr, eq
LBB0_5:
	ldrsh	w3, [x1]
	sub	w14, w25, #128
	cmp	w14, #47
	b.hi	LBB0_38
; %bb.6:
	mov	w8, #0
	mov	w9, #0
	mov	w12, #0
	mov	w13, #0
	mov	w26, #0
	mov	w28, #0
	mov	w10, #2
	mov	w7, #1
Lloh21:
	adrp	x15, lJTI0_0@PAGE
Lloh22:
	add	x15, x15, lJTI0_0@PAGEOFF
	adr	x16, LBB0_7
	ldrb	w17, [x15, x14]
	add	x16, x16, x17, lsl #2
	mov	w14, #1
	br	x16
LBB0_7:
	mov	w7, #0
	mov	w8, #0
	mov	w9, #0
	mov	w10, #5
	b	LBB0_10
LBB0_8:
	mov	w7, #0
	mov	w8, #0
	mov	w9, #0
	mov	w10, #4
	b	LBB0_10
LBB0_9:
	mov	w7, #0
	mov	w9, #0
	mov	w10, #3
	mov	w8, #1
LBB0_10:
	sxth	w14, w10
	mov	x12, x7
	mov	x13, x8
	mov	x26, x9
	mov	x7, x10
LBB0_11:
	mov	x28, x19
LBB0_12:
	tbnz	w13, #0, LBB0_14
; %bb.13:
	cbz	w12, LBB0_15
LBB0_14:
	ldr	w8, [x2]
	cmp	w8, w22
	and	w8, w28, #0xffff
	ccmp	w8, #2, #0, eq
	csinc	w28, w28, wzr, ne
LBB0_15:
	sxtw	x4, w3
	and	w25, w6, w0
	ldr	w8, [x27]
	cmp	w8, w22
	str	w22, [sp, #68]                  ; 4-byte Folded Spill
	b.eq	LBB0_18
; %bb.16:
	ldr	w8, [x2]
	cmp	w8, w22
	b.eq	LBB0_18
; %bb.17:
	mov	w0, #65535
	b	LBB0_19
LBB0_18:
	mov	x0, x24
	mov	x1, x22
	str	w21, [sp, #64]                  ; 4-byte Folded Spill
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
	mov	x20, x2
	mov	x2, x23
	mov	x19, x3
	mov	x23, x5
	mov	x22, x4
	mov	x21, x26
	mov	x26, x7
	mov	x24, x14
	bl	__rtl8812ae_phy_get_chnl_idx_of_txpwr_lmt
	mov	x14, x24
	mov	x7, x26
	mov	x26, x21
	mov	x4, x22
	mov	x5, x23
	mov	x2, x20
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w21, [sp, #64]                  ; 4-byte Folded Reload
	mov	x3, x19
Lloh23:
	adrp	x1, _TXPWR_LMT_WW@GOTPAGE
Lloh24:
	ldr	x1, [x1, _TXPWR_LMT_WW@GOTPAGEOFF]
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_19:
	cmn	w4, #1
	cset	w8, eq
	orr	w8, w25, w8
	mov	w9, #65535
	bics	wzr, w9, w28
	cset	w9, eq
	orr	w8, w8, w9
	orr	w8, w26, w8
	tbnz	w8, #0, LBB0_24
; %bb.20:
	mvn	w8, w0
	tst	w8, #0xffff
	b.eq	LBB0_24
; %bb.21:
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	and	x10, x28, #0xffff
	sxth	x8, w7
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sxth	x9, w0
	ldr	w11, [x27]
	ldr	w12, [sp, #68]                  ; 4-byte Folded Reload
	cmp	w11, w12
	b.ne	LBB0_25
; %bb.22:
	stp	xzr, xzr, [sp, #96]
	str	xzr, [sp, #112]
	ldr	x12, [x20, #8]
	ldr	x11, [sp, #72]                  ; 8-byte Folded Reload
	mov	w11, w11
	lsl	x13, x10, #3
	ldp	x14, x15, [x12]
	ldr	x14, [x14, x13]
	lsl	x16, x8, #3
	ldr	x14, [x14, x16]
	lsl	x17, x9, #3
	ldr	x14, [x14, x17]
	lsl	x0, x11, #2
	ldr	w14, [x14, x0]
	str	w14, [sp, #80]
	ldr	x14, [x15, x13]
	ldr	x14, [x14, x16]
	ldr	x14, [x14, x17]
	ldr	w14, [x14, x0]
	str	w14, [sp, #84]
	ldp	x14, x15, [x12, #16]
	ldr	x14, [x14, x13]
	ldr	x14, [x14, x16]
	ldr	x14, [x14, x17]
	ldr	w14, [x14, x0]
	str	w14, [sp, #88]
	ldr	x13, [x15, x13]
	ldr	x13, [x13, x16]
	ldr	x13, [x13, x17]
	ldr	w13, [x13, x0]
	str	w13, [sp, #92]
	ldrh	w13, [x1]
	cmp	w13, w3, uxth
	b.eq	LBB0_30
; %bb.23:
	ldr	x12, [x12, x4, lsl #3]
	ldr	x10, [x12, x10, lsl #3]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w21, [x8, x11, lsl #2]
	b	LBB0_36
LBB0_24:
Lloh25:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	sxth	x8, w0
	stp	x14, x8, [sp, #32]
	sxth	x8, w28
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #16]
	mov	x8, x3
	stp	x5, x8, [sp]
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh33:
	adrp	x8, _MAX_POWER_INDEX@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAX_POWER_INDEX@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
	b	LBB0_36
LBB0_25:
	ldr	w11, [x2]
	cmp	w11, w12
	b.ne	LBB0_31
; %bb.26:
	str	xzr, [sp, #112]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #80]
Lloh36:
	adrp	x11, _MAX_REGULATION_NUM@GOTPAGE
Lloh37:
	ldr	x11, [x11, _MAX_REGULATION_NUM@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	cmp	w11, #1
	b.lt	LBB0_29
; %bb.27:
	ldr	x12, [x20]
	ldr	x13, [sp, #72]                  ; 8-byte Folded Reload
	mov	w13, w13
	add	x14, sp, #80
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x12], #8
	ldr	x15, [x15, x10, lsl #3]
	ldr	x15, [x15, x8, lsl #3]
	ldr	x15, [x15, x9, lsl #3]
	ldr	w15, [x15, x13, lsl #2]
	str	w15, [x14], #4
	subs	x11, x11, #1
	b.ne	LBB0_28
LBB0_29:
	ldrh	w10, [x1]
	cmp	w10, w4, uxth
	b.ne	LBB0_35
LBB0_30:
	add	x0, sp, #80
	bl	__rtl8812ae_phy_get_world_wide_limit
	mov	x21, x0
	b	LBB0_36
LBB0_31:
Lloh39:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x3, l_.str.3@PAGE
Lloh46:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	b	LBB0_36
LBB0_32:
	cmp	w5, w11
	b.ne	LBB0_34
; %bb.33:
Lloh47:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
	str	w23, [sp, #64]                  ; 4-byte Folded Spill
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh51:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	str	x25, [sp]
	mov	x23, x3
Lloh53:
	adrp	x3, l_.str.1@PAGE
Lloh54:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x26, x0
	mov	x0, x20
	mov	x28, x5
	mov	x25, x6
	bl	_RT_TRACE
	mov	x6, x25
	mov	x0, x26
	mov	x5, x28
Lloh55:
	adrp	x2, _BAND_ON_5G@GOTPAGE
Lloh56:
	ldr	x2, [x2, _BAND_ON_5G@GOTPAGEOFF]
	mov	x3, x23
Lloh57:
	adrp	x1, _TXPWR_LMT_WW@GOTPAGE
Lloh58:
	ldr	x1, [x1, _TXPWR_LMT_WW@GOTPAGEOFF]
	ldr	w23, [sp, #64]                  ; 4-byte Folded Reload
LBB0_34:
	mov	w12, #0
	mov	w13, #0
	mov	w26, #0
	mov	w7, #0
	mov	w14, #0
	b	LBB0_11
LBB0_35:
	ldr	x10, [x20]
	ldr	x10, [x10, x4, lsl #3]
	lsl	x9, x9, #3
	ldr	x10, [x10, x9]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, x9]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	ldr	w21, [x8, w9, uxtw #2]
LBB0_36:
	ldur	x8, [x29, #-88]
Lloh59:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh60:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %bb.37:
	mov	x0, x21
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_38:
Lloh62:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh63:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
Lloh65:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh66:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh67:
	ldr	w2, [x8]
	str	x25, [sp]
	mov	x25, x3
Lloh68:
	adrp	x3, l_.str@PAGE
Lloh69:
	add	x3, x3, l_.str@PAGEOFF
	mov	x26, x0
	mov	x0, x20
	mov	x28, x5
	mov	x27, x6
	bl	_RT_TRACE
	mov	x6, x27
	mov	x0, x26
	mov	x5, x28
Lloh70:
	adrp	x27, _BAND_ON_2_4G@GOTPAGE
Lloh71:
	ldr	x27, [x27, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh72:
	adrp	x2, _BAND_ON_5G@GOTPAGE
Lloh73:
	ldr	x2, [x2, _BAND_ON_5G@GOTPAGEOFF]
	mov	x3, x25
Lloh74:
	adrp	x1, _TXPWR_LMT_WW@GOTPAGE
Lloh75:
	ldr	x1, [x1, _TXPWR_LMT_WW@GOTPAGEOFF]
	mov	w7, #0
	mov	w8, #0
	mov	w10, #65535
	mov	w9, #1
	b	LBB0_10
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_32-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_32-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_32-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_32-LBB0_7)>>2
                                        ; -- End function
	.comm	_MAX_POWER_INDEX,4,2            ; @MAX_POWER_INDEX
	.comm	_TXPWR_LMT_WW,2,1               ; @TXPWR_LMT_WW
	.comm	_BAND_ON_2_4G,4,2               ; @BAND_ON_2_4G
	.comm	_BAND_ON_5G,4,2                 ; @BAND_ON_5G
	.comm	_HT_CHANNEL_WIDTH_20,4,2        ; @HT_CHANNEL_WIDTH_20
	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ; @HT_CHANNEL_WIDTH_20_40
	.comm	_HT_CHANNEL_WIDTH_80,4,2        ; @HT_CHANNEL_WIDTH_80
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong rate 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Wrong rate 0x%x: No CCK in 5G Band\n"

	.comm	_BAND_ON_BOTH,4,2               ; @BAND_ON_BOTH
l_.str.2:                               ; @.str.2
	.asciz	"Wrong index value to access power limit table [band %d][regulation %d][bandwidth %d][rf_path %d][rate_section %d][chnl %d]\n"

	.comm	_MAX_REGULATION_NUM,4,2         ; @MAX_REGULATION_NUM
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
l_.str.3:                               ; @.str.3
	.asciz	"No power limit table of the specified band\n"

	.no_dead_strip	__rtl8812ae_phy_get_txpower_limit
.subsections_via_symbols
