	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_set_power_per_rate_table
_ar9003_hw_set_power_per_rate_table:    ## @ar9003_hw_set_power_per_rate_table
	.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
	movq	%r9, %r15
	movl	%r8d, %r12d
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_ath9k_hw_common
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IS_CHAN_2GHZ
	movl	%eax, %r14d
	leaq	-176(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ath9k_hw_get_channel_centers
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_ath9k_hw_get_scaled_power
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	leaq	_ar9003_hw_set_power_per_rate_table.ctlModesFor11g(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %r14
	movq	_SUB_NUM_CTL_MODES_AT_2G_40@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	_ar9003_hw_set_power_per_rate_table.ctlModesFor11a(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %r14
	movq	_SUB_NUM_CTL_MODES_AT_5G_40@GOTPCREL(%rip), %rax
LBB0_3:
	subq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	movq	%rbx, %r12
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %r14
LBB0_5:
	testq	%r14, %r14
	je	LBB0_43
## %bb.6:
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	sete	%al
	shlq	$3, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-128(%rbp), %r14                ## 8-byte Reload
	cmpq	%r14, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_43
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_31 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
	movq	(%r15,%rbx,8), %r10
	movq	%r10, %rax
	andq	$-3, %rax
	movq	%r10, %rcx
	orq	$2, %rcx
	cmpq	$130, %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-176(%rbp), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_EXT_ADDITIVE@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_EXT_ADDITIVE@GOTPCREL(%rip), %rcx
	andq	(%rcx), %r10
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-168(%rbp), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-160(%rbp), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r9d, %r9d
	cmpq	$128, %rax
	sete	%r9b
	movq	_REGULATORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	pushq	%r10
	callq	_ath_dbg
	addq	$16, %rsp
	movq	_AR9300_NUM_CTLS_2G@GOTPCREL(%rip), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_AR9300_NUM_CTLS_5G@GOTPCREL(%rip), %rax
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rax), %eax
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	(%r13,%rcx), %rbx
	movl	%eax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	-104(%rbp), %r13                ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=2
	incq	%r12
	cmpq	%r12, -152(%rbp)                ## 8-byte Folded Reload
	je	LBB0_24
LBB0_16:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rbx,%r12,4), %r10
	testq	%r10, %r10
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	_REGULATORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r14,%r15,8), %r9
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rcx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	xorl	%eax, %eax
	movq	%rbx, %r11
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	pushq	(%rbx)
	movq	%r11, %rbx
	pushq	%r10
	callq	_ath_dbg
	addq	$16, %rsp
	movq	_CTL_MODE_M@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%r15,8), %rcx
	xorq	%r13, %rcx
	andq	%rax, %rcx
	xorq	%r13, %rcx
	movslq	(%rbx,%r12,4), %rdx
	cmpq	%rdx, %rcx
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	andq	%rdx, %rax
	movq	_SD_NO_CTL@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	orq	%rax, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_ar9003_hw_get_max_edge_power
	movq	_CTL_MODE_M@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	movq	_SD_NO_CTL@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_min
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_min
	movslq	%eax, %r12
	movq	_REGULATORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r15,%rbx,8), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rcx
	movq	%r14, %r9
	xorl	%eax, %eax
	pushq	%r12
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	callq	_ath_dbg
	addq	$16, %rsp
	movq	(%r15,%rbx,8), %rax
	addq	$-128, %rax
	cmpq	$9, %rax
	movq	-136(%rbp), %r14                ## 8-byte Reload
	ja	LBB0_42
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_37:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_ALL_TARGET_HT40_0_8_16@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_ALL_TARGET_HT40_23@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	decq	%rbx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=2
	movq	_ALL_TARGET_HT40_23@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_42
LBB0_39:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r14,%rbx,4), %rdi
	movq	%r12, %rsi
	callq	_min
	movl	%eax, 4(%r14,%rbx,4)
	movq	%r13, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testl	%eax, %eax
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=2
	movslq	4(%r14,%rbx,4), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movq	%r13, %rdi
	callq	_ar9003_mci_get_max_txpower
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_min
	movl	%eax, 4(%r14,%rbx,4)
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_ALL_TARGET_HT20_0_8_16@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_ALL_TARGET_HT20_23@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_42
## %bb.33:                              ##   in Loop: Header=BB0_7 Depth=1
	decq	%rbx
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=2
	movq	_ALL_TARGET_HT20_23@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_42
LBB0_34:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r14,%rbx,4), %rdi
	movq	%r12, %rsi
	callq	_min
	movl	%eax, 4(%r14,%rbx,4)
	movq	%r13, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	movslq	4(%r14,%rbx,4), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movq	%r13, %rdi
	callq	_ar9003_mci_get_max_txpower
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_min
	movl	%eax, 4(%r14,%rbx,4)
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_ALL_TARGET_LEGACY_6_24@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_ALL_TARGET_LEGACY_54@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_42
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=1
	decq	%rbx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r14,%rbx,4), %rdi
	movq	%r12, %rsi
	callq	_min
	movl	%eax, 4(%r14,%rbx,4)
	movq	_ALL_TARGET_LEGACY_54@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_31
	jmp	LBB0_42
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_ALL_TARGET_LEGACY_1L_5L@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_ALL_TARGET_LEGACY_11S@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_42
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	decq	%rbx
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r14,%rbx,4), %rdi
	movq	%r12, %rsi
	callq	_min
	movl	%eax, 4(%r14,%rbx,4)
	movq	_ALL_TARGET_LEGACY_11S@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_28
	jmp	LBB0_42
LBB0_43:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_37
	.long	L0_0_set_32
	.long	L0_0_set_37
	.long	L0_0_set_32
	.long	L0_0_set_42
	.long	L0_0_set_29
	.long	L0_0_set_42
	.long	L0_0_set_26
	.long	L0_0_set_42
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ar9003_hw_set_power_per_rate_table.ctlModesFor11a
_ar9003_hw_set_power_per_rate_table.ctlModesFor11a:
	.quad	137                             ## 0x89
	.quad	129                             ## 0x81
	.quad	136                             ## 0x88
	.quad	128                             ## 0x80

	.p2align	4                               ## @ar9003_hw_set_power_per_rate_table.ctlModesFor11g
_ar9003_hw_set_power_per_rate_table.ctlModesFor11g:
	.quad	135                             ## 0x87
	.quad	133                             ## 0x85
	.quad	131                             ## 0x83
	.quad	134                             ## 0x86
	.quad	132                             ## 0x84
	.quad	130                             ## 0x82

	.comm	_SUB_NUM_CTL_MODES_AT_2G_40,8,3 ## @SUB_NUM_CTL_MODES_AT_2G_40
	.comm	_SUB_NUM_CTL_MODES_AT_5G_40,8,3 ## @SUB_NUM_CTL_MODES_AT_5G_40
	.comm	_EXT_ADDITIVE,8,3               ## @EXT_ADDITIVE
	.comm	_REGULATORY,4,2                 ## @REGULATORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LOOP-Mode ctlMode %d < %d, isHt40CtlMode %d, EXT_ADDITIVE %d\n"

	.comm	_AR9300_NUM_CTLS_2G,4,2         ## @AR9300_NUM_CTLS_2G
	.comm	_AR9300_NUM_CTLS_5G,4,2         ## @AR9300_NUM_CTLS_5G
	.comm	_MAX_RATE_POWER,8,3             ## @MAX_RATE_POWER
L_.str.1:                               ## @.str.1
	.asciz	"LOOP-Ctlidx %d: cfgCtl 0x%2.2x pCtlMode 0x%2.2x ctlIndex 0x%2.2x chan %d\n"

	.comm	_CTL_MODE_M,8,3                 ## @CTL_MODE_M
	.comm	_SD_NO_CTL,4,2                  ## @SD_NO_CTL
L_.str.2:                               ## @.str.2
	.asciz	"SEL-Min ctlMode %d pCtlMode %d 2xMaxEdge %d sP %d minCtlPwr %d\n"

	.comm	_ALL_TARGET_LEGACY_1L_5L,4,2    ## @ALL_TARGET_LEGACY_1L_5L
	.comm	_ALL_TARGET_LEGACY_11S,4,2      ## @ALL_TARGET_LEGACY_11S
	.comm	_ALL_TARGET_LEGACY_6_24,4,2     ## @ALL_TARGET_LEGACY_6_24
	.comm	_ALL_TARGET_LEGACY_54,4,2       ## @ALL_TARGET_LEGACY_54
	.comm	_ALL_TARGET_HT20_0_8_16,4,2     ## @ALL_TARGET_HT20_0_8_16
	.comm	_ALL_TARGET_HT20_23,4,2         ## @ALL_TARGET_HT20_23
	.comm	_ALL_TARGET_HT40_0_8_16,4,2     ## @ALL_TARGET_HT40_0_8_16
	.comm	_ALL_TARGET_HT40_23,4,2         ## @ALL_TARGET_HT40_23
	.no_dead_strip	_ar9003_hw_set_power_per_rate_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_set_power_per_rate_table
_ar9003_hw_set_power_per_rate_table:    ; @ar9003_hw_set_power_per_rate_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x24, x5
	mov	x25, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_ath9k_hw_common
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_IS_CHAN_2GHZ
	mov	x21, x0
	add	x2, sp, #72
	mov	x0, x23
	mov	x1, x22
	bl	_ath9k_hw_get_channel_centers
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_ath9k_hw_get_scaled_power
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	str	x22, [sp, #56]                  ; 8-byte Folded Spill
	cbz	w21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x26, _ar9003_hw_set_power_per_rate_table.ctlModesFor11g@PAGE
Lloh1:
	add	x26, x26, _ar9003_hw_set_power_per_rate_table.ctlModesFor11g@PAGEOFF
	mov	x0, x26
	bl	_ARRAY_SIZE
	mov	x24, x0
Lloh2:
	adrp	x8, _SUB_NUM_CTL_MODES_AT_2G_40@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUB_NUM_CTL_MODES_AT_2G_40@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x26, _ar9003_hw_set_power_per_rate_table.ctlModesFor11a@PAGE
Lloh5:
	add	x26, x26, _ar9003_hw_set_power_per_rate_table.ctlModesFor11a@PAGEOFF
	mov	x0, x26
	bl	_ARRAY_SIZE
	mov	x24, x0
Lloh6:
	adrp	x8, _SUB_NUM_CTL_MODES_AT_5G_40@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUB_NUM_CTL_MODES_AT_5G_40@GOTPAGEOFF]
LBB0_3:
	ldr	x21, [x8]
	mov	x0, x22
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x26
	bl	_ARRAY_SIZE
	mov	x10, x0
	cbnz	x10, LBB0_6
	b	LBB0_36
LBB0_5:
	sub	x10, x24, x21
	cbz	x10, LBB0_36
LBB0_6:
	mov	x28, #0
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w8, eq
	lsl	x8, x8, #3
	stp	x8, x10, [sp, #16]              ; 16-byte Folded Spill
	str	x23, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x28, x10
	b.eq	LBB0_36
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_35 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
                                        ;     Child Loop BB0_30 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
	ldr	x8, [x26, x28, lsl #3]
	orr	x9, x8, #0x2
	cmp	x9, #130
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x27, [sp, #72]
Lloh8:
	adrp	x9, _EXT_ADDITIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXT_ADDITIVE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	and	x6, x9, x8
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh11:
	adrp	x9, _EXT_ADDITIVE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EXT_ADDITIVE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ands	x6, x9, x8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x27, [sp, #80]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x27, [sp, #88]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	and	x8, x8, #0xfffffffffffffffd
	cmp	x8, #128
	cset	w5, eq
Lloh14:
	adrp	x8, _REGULATORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REGULATORY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x28
	mov	x4, x10
	bl	_ath_dbg
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, #0
Lloh19:
	adrp	x8, _AR9300_NUM_CTLS_5G@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR9300_NUM_CTLS_5G@GOTPAGEOFF]
Lloh21:
	adrp	x9, _AR9300_NUM_CTLS_2G@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AR9300_NUM_CTLS_2G@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
Lloh23:
	adrp	x8, _MAX_RATE_POWER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh25:
	ldr	x25, [x8]
	lsl	x21, x28, #3
	cmp	w23, #1
	b.lt	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, #0
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x22, [x8, x9]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x24, x24, #1
	cmp	x23, x24
	b.eq	LBB0_22
LBB0_16:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x6, [x22, x24, lsl #2]
	cbz	w6, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
Lloh26:
	adrp	x8, _REGULATORY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REGULATORY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x5, [x26, x21]
	ldp	x8, x0, [sp, #56]               ; 16-byte Folded Reload
	ldr	x8, [x8]
	str	x8, [sp]
Lloh29:
	adrp	x2, l_.str.1@PAGE
Lloh30:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x24
	mov	x4, x19
	bl	_ath_dbg
Lloh31:
	adrp	x8, _CTL_MODE_M@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CTL_MODE_M@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	x9, [x26, x21]
	bic	x10, x19, x8
	and	x9, x9, x8
	orr	x9, x9, x10
	ldrsw	x10, [x22, x24, lsl #2]
	cmp	x9, x10
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	and	x8, x8, x10
Lloh34:
	adrp	x10, _SD_NO_CTL@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SD_NO_CTL@GOTPAGEOFF]
Lloh36:
	ldrsw	x10, [x10]
	orr	x8, x8, x10
	cmp	x9, x8
	b.ne	LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	mov	x1, x27
	mov	x2, x24
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	bl	_ar9003_hw_get_max_edge_power
	mov	x1, x0
Lloh37:
	adrp	x8, _CTL_MODE_M@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CTL_MODE_M@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	bic	x8, x19, x8
Lloh40:
	adrp	x9, _SD_NO_CTL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SD_NO_CTL@GOTPAGEOFF]
Lloh42:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x25
	bl	_min
	mov	x25, x0
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x1
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	mov	x1, x22
	bl	_min
	sxtw	x27, w0
Lloh43:
	adrp	x8, _REGULATORY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _REGULATORY@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	x4, [x26, x21]
	str	x27, [sp]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
Lloh46:
	adrp	x2, l_.str.2@PAGE
Lloh47:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x28
	mov	x5, x25
	mov	x6, x22
	bl	_ath_dbg
	ldr	x8, [x26, x21]
	sub	x8, x8, #128
	cmp	x8, #9
	ldr	x23, [sp, #48]                  ; 8-byte Folded Reload
Lloh48:
	adrp	x25, _ALL_TARGET_HT40_23@GOTPAGE
Lloh49:
	ldr	x25, [x25, _ALL_TARGET_HT40_23@GOTPAGEOFF]
	b.hi	LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh50:
	adrp	x11, lJTI0_0@PAGE
Lloh51:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_7
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh52:
	adrp	x8, _ALL_TARGET_HT40_0_8_16@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ALL_TARGET_HT40_0_8_16@GOTPAGEOFF]
Lloh54:
	ldrsw	x21, [x8]
	ldr	w8, [x25]
	cmp	w21, w8
	b.le	LBB0_26
	b	LBB0_7
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	x8, x21, #1
	ldrsw	x9, [x25]
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_7
LBB0_26:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x21, #2
	ldrsw	x0, [x20, x22]
	mov	x1, x27
	bl	_min
	str	w0, [x20, x22]
	mov	x0, x23
	bl	_ath9k_hw_mci_is_enabled
	cbz	w0, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldrsw	x24, [x20, x22]
	ldr	x1, [x26, x28, lsl #3]
	mov	x0, x23
	bl	_ar9003_mci_get_max_txpower
	mov	x1, x0
	mov	x0, x24
	bl	_min
	str	w0, [x20, x22]
	b	LBB0_25
LBB0_28:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh55:
	adrp	x8, _ALL_TARGET_HT20_0_8_16@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ALL_TARGET_HT20_0_8_16@GOTPAGEOFF]
Lloh57:
	ldrsw	x21, [x8]
Lloh58:
	adrp	x8, _ALL_TARGET_HT20_23@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ALL_TARGET_HT20_23@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_30
	b	LBB0_7
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	add	x8, x21, #1
Lloh61:
	adrp	x9, _ALL_TARGET_HT20_23@GOTPAGE
Lloh62:
	ldr	x9, [x9, _ALL_TARGET_HT20_23@GOTPAGEOFF]
Lloh63:
	ldrsw	x9, [x9]
	cmp	x21, x9
	mov	x21, x8
	b.ge	LBB0_7
LBB0_30:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x21, #2
	ldrsw	x0, [x20, x22]
	mov	x1, x27
	bl	_min
	str	w0, [x20, x22]
	mov	x0, x23
	bl	_ath9k_hw_mci_is_enabled
	cbz	w0, LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	ldrsw	x24, [x20, x22]
	ldr	x1, [x26, x28, lsl #3]
	mov	x0, x23
	bl	_ar9003_mci_get_max_txpower
	mov	x1, x0
	mov	x0, x24
	bl	_min
	str	w0, [x20, x22]
	b	LBB0_29
LBB0_32:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh64:
	adrp	x8, _ALL_TARGET_LEGACY_6_24@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ALL_TARGET_LEGACY_6_24@GOTPAGEOFF]
Lloh66:
	ldrsw	x21, [x8]
Lloh67:
	adrp	x8, _ALL_TARGET_LEGACY_54@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ALL_TARGET_LEGACY_54@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	cmp	w21, w8
	b.gt	LBB0_7
LBB0_33:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x21, #2
	ldrsw	x0, [x20, x22]
	mov	x1, x27
	bl	_min
	str	w0, [x20, x22]
	add	x8, x21, #1
Lloh70:
	adrp	x9, _ALL_TARGET_LEGACY_54@GOTPAGE
Lloh71:
	ldr	x9, [x9, _ALL_TARGET_LEGACY_54@GOTPAGEOFF]
Lloh72:
	ldrsw	x9, [x9]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_33
	b	LBB0_7
LBB0_34:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh73:
	adrp	x8, _ALL_TARGET_LEGACY_1L_5L@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ALL_TARGET_LEGACY_1L_5L@GOTPAGEOFF]
Lloh75:
	ldrsw	x21, [x8]
Lloh76:
	adrp	x8, _ALL_TARGET_LEGACY_11S@GOTPAGE
Lloh77:
	ldr	x8, [x8, _ALL_TARGET_LEGACY_11S@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	cmp	w21, w8
	b.gt	LBB0_7
LBB0_35:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x21, #2
	ldrsw	x0, [x20, x22]
	mov	x1, x27
	bl	_min
	str	w0, [x20, x22]
	add	x8, x21, #1
Lloh79:
	adrp	x9, _ALL_TARGET_LEGACY_11S@GOTPAGE
Lloh80:
	ldr	x9, [x9, _ALL_TARGET_LEGACY_11S@GOTPAGEOFF]
Lloh81:
	ldrsw	x9, [x9]
	cmp	x21, x9
	mov	x21, x8
	b.lt	LBB0_35
	b	LBB0_7
LBB0_36:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_24-LBB0_7)>>2
	.byte	(LBB0_28-LBB0_7)>>2
	.byte	(LBB0_24-LBB0_7)>>2
	.byte	(LBB0_28-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_32-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_34-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_32-LBB0_7)>>2
                                        ; -- End function
	.p2align	3                               ; @ar9003_hw_set_power_per_rate_table.ctlModesFor11a
_ar9003_hw_set_power_per_rate_table.ctlModesFor11a:
	.quad	137                             ; 0x89
	.quad	129                             ; 0x81
	.quad	136                             ; 0x88
	.quad	128                             ; 0x80

	.p2align	3                               ; @ar9003_hw_set_power_per_rate_table.ctlModesFor11g
_ar9003_hw_set_power_per_rate_table.ctlModesFor11g:
	.quad	135                             ; 0x87
	.quad	133                             ; 0x85
	.quad	131                             ; 0x83
	.quad	134                             ; 0x86
	.quad	132                             ; 0x84
	.quad	130                             ; 0x82

	.comm	_SUB_NUM_CTL_MODES_AT_2G_40,8,3 ; @SUB_NUM_CTL_MODES_AT_2G_40
	.comm	_SUB_NUM_CTL_MODES_AT_5G_40,8,3 ; @SUB_NUM_CTL_MODES_AT_5G_40
	.comm	_EXT_ADDITIVE,8,3               ; @EXT_ADDITIVE
	.comm	_REGULATORY,4,2                 ; @REGULATORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LOOP-Mode ctlMode %d < %d, isHt40CtlMode %d, EXT_ADDITIVE %d\n"

	.comm	_AR9300_NUM_CTLS_2G,4,2         ; @AR9300_NUM_CTLS_2G
	.comm	_AR9300_NUM_CTLS_5G,4,2         ; @AR9300_NUM_CTLS_5G
	.comm	_MAX_RATE_POWER,8,3             ; @MAX_RATE_POWER
l_.str.1:                               ; @.str.1
	.asciz	"LOOP-Ctlidx %d: cfgCtl 0x%2.2x pCtlMode 0x%2.2x ctlIndex 0x%2.2x chan %d\n"

	.comm	_CTL_MODE_M,8,3                 ; @CTL_MODE_M
	.comm	_SD_NO_CTL,4,2                  ; @SD_NO_CTL
l_.str.2:                               ; @.str.2
	.asciz	"SEL-Min ctlMode %d pCtlMode %d 2xMaxEdge %d sP %d minCtlPwr %d\n"

	.comm	_ALL_TARGET_LEGACY_1L_5L,4,2    ; @ALL_TARGET_LEGACY_1L_5L
	.comm	_ALL_TARGET_LEGACY_11S,4,2      ; @ALL_TARGET_LEGACY_11S
	.comm	_ALL_TARGET_LEGACY_6_24,4,2     ; @ALL_TARGET_LEGACY_6_24
	.comm	_ALL_TARGET_LEGACY_54,4,2       ; @ALL_TARGET_LEGACY_54
	.comm	_ALL_TARGET_HT20_0_8_16,4,2     ; @ALL_TARGET_HT20_0_8_16
	.comm	_ALL_TARGET_HT20_23,4,2         ; @ALL_TARGET_HT20_23
	.comm	_ALL_TARGET_HT40_0_8_16,4,2     ; @ALL_TARGET_HT40_0_8_16
	.comm	_ALL_TARGET_HT40_23,4,2         ; @ALL_TARGET_HT40_23
	.no_dead_strip	_ar9003_hw_set_power_per_rate_table
.subsections_via_symbols
