	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_ar9287_set_txpower
_ath9k_hw_ar9287_set_txpower:           ## @ath9k_hw_ar9287_set_txpower
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_ath9k_hw_regulatory
	movq	%rax, %r12
	movq	_Ar5416RateSize@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leal	(,%r14,8), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_ath9k_hw_ar9287_get_eeprom_rev
	movq	_AR9287_EEP_MINOR_VER_2@GOTPCREL(%rip), %rcx
	movl	$2, %edx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdx
LBB0_2:
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_ath9k_hw_set_ar9287_power_per_rate_table
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath9k_hw_set_ar9287_power_cal_table
	movq	$0, (%r12)
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rax
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, (%r13,%rbx,8)
	movq	%rcx, %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r12), %rax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, (%r12)
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_ath9k_hw_update_regulatory_maxpower
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.10:
	movq	_Ar5416RateSize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.11:
	movq	_AR9287_PWR_TABLE_OFFSET_DB@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rcx
	cmpl	$4, %eax
	jae	LBB0_13
## %bb.12:
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_13:
	movl	%eax, %edx
	andl	$-4, %edx
	movq	%rcx, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.15:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqa	(%r13,%rsi,8), %xmm1
	movdqa	16(%r13,%rsi,8), %xmm2
	movdqa	32(%r13,%rsi,8), %xmm3
	movdqa	48(%r13,%rsi,8), %xmm4
	psubq	%xmm0, %xmm1
	psubq	%xmm0, %xmm2
	movdqa	%xmm1, (%r13,%rsi,8)
	movdqa	%xmm2, 16(%r13,%rsi,8)
	psubq	%xmm0, %xmm3
	psubq	%xmm0, %xmm4
	movdqa	%xmm3, 32(%r13,%rsi,8)
	movdqa	%xmm4, 48(%r13,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_16
## %bb.17:
	testb	$1, %r8b
	je	LBB0_19
LBB0_18:
	movdqa	(%r13,%rsi,8), %xmm1
	movdqa	16(%r13,%rsi,8), %xmm2
	psubq	%xmm0, %xmm1
	psubq	%xmm0, %xmm2
	movdqa	%xmm1, (%r13,%rsi,8)
	movdqa	%xmm2, 16(%r13,%rsi,8)
LBB0_19:
	cmpq	%rax, %rdx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	subq	%rcx, (%r13,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_20
LBB0_21:
	movq	%rbx, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	movq	_AR_PHY_POWER_TX_RATE1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rate18mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rate12mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rate9mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rate6mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rate54mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rate48mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rate36mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rate24mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_CHAN_2GHZ
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_AR_PHY_POWER_TX_RATE3@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rate2s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rate2l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rateXr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rate1l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE4@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rate11s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rate11l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rate5_5s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rate5_5l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
LBB0_23:
	movq	_AR_PHY_POWER_TX_RATE5@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rateHt20_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rateHt20_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rateHt20_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateHt20_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE6@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rateHt20_7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rateHt20_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rateHt20_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateHt20_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movq	_EEP_OL_PWRCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ath9k_hw_ar9287_get_eeprom
	movq	_AR_PHY_POWER_TX_RATE7@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_rateHt40_3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r13,%rcx,8), %rdi
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rateHt40_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	_rateHt40_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rateHt40_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	orq	%r14, %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE8@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_rateHt40_7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rateHt40_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	orq	%r14, %r15
	movq	_rateHt40_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	orq	%r15, %r14
	movq	_rateHt40_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	jmp	LBB0_27
LBB0_26:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addq	%r12, %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rateHt40_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	_rateHt40_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rateHt40_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	orq	%r14, %r15
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_rateHt40_7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rateHt40_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	orq	%r14, %r15
	movq	_rateHt40_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	orq	%r15, %r14
	movq	_rateHt40_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	addq	%r12, %rdi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_27:
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE9@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rateExtOfdm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r15
	movq	_rateExtCck@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r15
	movq	_rateDupOfdm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateDupCck@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	orq	%r15, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
LBB0_28:
	cmpq	$0, (%rbx)
	je	LBB0_30
## %bb.29:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_IS_CHAN_HT40
	xorl	%edx, %edx
	testq	%rax, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmovel	%edx, %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ar5008_hw_init_rate_txpower
	movq	_AR_PHY_POWER_TX_RATE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rax
	movq	_AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	jmp	LBB0_31
LBB0_30:
	movq	_AR_PHY_POWER_TX_RATE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_31:
	movq	%rbx, %rdi
	callq	_REG_WRITE
	movq	%rbx, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.33:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_18
	jmp	LBB0_19
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Ar5416RateSize,4,2             ## @Ar5416RateSize
	.comm	_AR9287_EEP_MINOR_VER_2,8,3     ## @AR9287_EEP_MINOR_VER_2
	.comm	_MAX_RATE_POWER,8,3             ## @MAX_RATE_POWER
	.comm	_AR9287_PWR_TABLE_OFFSET_DB,4,2 ## @AR9287_PWR_TABLE_OFFSET_DB
	.comm	_AR_PHY_POWER_TX_RATE1,4,2      ## @AR_PHY_POWER_TX_RATE1
	.comm	_rate18mb,8,3                   ## @rate18mb
	.comm	_rate12mb,8,3                   ## @rate12mb
	.comm	_rate9mb,8,3                    ## @rate9mb
	.comm	_rate6mb,8,3                    ## @rate6mb
	.comm	_AR_PHY_POWER_TX_RATE2,4,2      ## @AR_PHY_POWER_TX_RATE2
	.comm	_rate54mb,8,3                   ## @rate54mb
	.comm	_rate48mb,8,3                   ## @rate48mb
	.comm	_rate36mb,8,3                   ## @rate36mb
	.comm	_rate24mb,8,3                   ## @rate24mb
	.comm	_AR_PHY_POWER_TX_RATE3,4,2      ## @AR_PHY_POWER_TX_RATE3
	.comm	_rate2s,8,3                     ## @rate2s
	.comm	_rate2l,8,3                     ## @rate2l
	.comm	_rateXr,8,3                     ## @rateXr
	.comm	_rate1l,8,3                     ## @rate1l
	.comm	_AR_PHY_POWER_TX_RATE4,4,2      ## @AR_PHY_POWER_TX_RATE4
	.comm	_rate11s,8,3                    ## @rate11s
	.comm	_rate11l,8,3                    ## @rate11l
	.comm	_rate5_5s,8,3                   ## @rate5_5s
	.comm	_rate5_5l,8,3                   ## @rate5_5l
	.comm	_AR_PHY_POWER_TX_RATE5,4,2      ## @AR_PHY_POWER_TX_RATE5
	.comm	_rateHt20_3,8,3                 ## @rateHt20_3
	.comm	_rateHt20_2,8,3                 ## @rateHt20_2
	.comm	_rateHt20_1,8,3                 ## @rateHt20_1
	.comm	_rateHt20_0,8,3                 ## @rateHt20_0
	.comm	_AR_PHY_POWER_TX_RATE6,4,2      ## @AR_PHY_POWER_TX_RATE6
	.comm	_rateHt20_7,8,3                 ## @rateHt20_7
	.comm	_rateHt20_6,8,3                 ## @rateHt20_6
	.comm	_rateHt20_5,8,3                 ## @rateHt20_5
	.comm	_rateHt20_4,8,3                 ## @rateHt20_4
	.comm	_EEP_OL_PWRCTRL,4,2             ## @EEP_OL_PWRCTRL
	.comm	_AR_PHY_POWER_TX_RATE7,4,2      ## @AR_PHY_POWER_TX_RATE7
	.comm	_rateHt40_3,8,3                 ## @rateHt40_3
	.comm	_rateHt40_2,8,3                 ## @rateHt40_2
	.comm	_rateHt40_1,8,3                 ## @rateHt40_1
	.comm	_rateHt40_0,8,3                 ## @rateHt40_0
	.comm	_AR_PHY_POWER_TX_RATE8,4,2      ## @AR_PHY_POWER_TX_RATE8
	.comm	_rateHt40_7,8,3                 ## @rateHt40_7
	.comm	_rateHt40_6,8,3                 ## @rateHt40_6
	.comm	_rateHt40_5,8,3                 ## @rateHt40_5
	.comm	_rateHt40_4,8,3                 ## @rateHt40_4
	.comm	_AR_PHY_POWER_TX_RATE9,4,2      ## @AR_PHY_POWER_TX_RATE9
	.comm	_rateExtOfdm,8,3                ## @rateExtOfdm
	.comm	_rateExtCck,8,3                 ## @rateExtCck
	.comm	_rateDupOfdm,8,3                ## @rateDupOfdm
	.comm	_rateDupCck,8,3                 ## @rateDupCck
	.comm	_AR_PHY_POWER_TX_RATE_MAX,4,2   ## @AR_PHY_POWER_TX_RATE_MAX
	.comm	_AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE,8,3 ## @AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE
	.no_dead_strip	_ath9k_hw_ar9287_set_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_ar9287_set_txpower
_ath9k_hw_ar9287_set_txpower:           ; @ath9k_hw_ar9287_set_txpower
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x22, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, 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	_ath9k_hw_regulatory
	mov	x23, x0
Lloh3:
	adrp	x28, _Ar5416RateSize@GOTPAGE
Lloh4:
	ldr	x28, [x28, _Ar5416RateSize@GOTPAGEOFF]
	ldr	w12, [x28]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	lsl	w2, w12, #3
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	bl	_ath9k_hw_ar9287_get_eeprom_rev
Lloh7:
	adrp	x8, _AR9287_EEP_MINOR_VER_2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR9287_EEP_MINOR_VER_2@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w27, #2
	b	LBB0_3
LBB0_2:
	ldr	x27, [x19, #8]
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	bl	_ath9k_hw_set_ar9287_power_per_rate_table
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_set_ar9287_power_cal_table
	str	xzr, [x23]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x24, #0
Lloh10:
	adrp	x25, _MAX_RATE_POWER@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MAX_RATE_POWER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, x24, lsl #3]
	ldr	x9, [x25]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x9, [x21, x24, lsl #3]
	mov	x8, x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x23]
	b	LBB0_5
LBB0_10:
	mov	x0, x19
	bl	_ath9k_hw_update_regulatory_maxpower
	cbnz	w22, LBB0_30
; %bb.11:
	ldr	w9, [x28]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.12:
Lloh12:
	adrp	x8, _AR9287_PWR_TABLE_OFFSET_DB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR9287_PWR_TABLE_OFFSET_DB@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	lsl	x8, x8, #1
	cmp	w9, #8
	b.hs	LBB0_14
; %bb.13:
	mov	x10, #0
	b	LBB0_17
LBB0_14:
	and	x10, x9, #0xfffffff8
	dup.2d	v0, x8
	add	x11, x21, #32
	mov	x12, x10
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	sub.2d	v1, v1, v0
	sub.2d	v2, v2, v0
	sub.2d	v3, v3, v0
	sub.2d	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_15
; %bb.16:
	cmp	x10, x9
	b.eq	LBB0_19
LBB0_17:
	add	x11, x21, x10, lsl #3
	sub	x9, x9, x10
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x11]
	sub	x10, x10, x8
	str	x10, [x11], #8
	subs	x9, x9, #1
	b.ne	LBB0_18
LBB0_19:
	mov	x0, x19
	bl	_ENABLE_REGWRITE_BUFFER
Lloh15:
	adrp	x8, _AR_PHY_POWER_TX_RATE1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE1@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _rate18mb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rate18mb@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh21:
	adrp	x8, _rate12mb@GOTPAGE
Lloh22:
	ldr	x8, [x8, _rate12mb@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh24:
	adrp	x8, _rate9mb@GOTPAGE
Lloh25:
	ldr	x8, [x8, _rate9mb@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh27:
	adrp	x8, _rate6mb@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rate6mb@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh30:
	adrp	x8, _AR_PHY_POWER_TX_RATE2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE2@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
Lloh33:
	adrp	x8, _rate54mb@GOTPAGE
Lloh34:
	ldr	x8, [x8, _rate54mb@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh36:
	adrp	x8, _rate48mb@GOTPAGE
Lloh37:
	ldr	x8, [x8, _rate48mb@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh39:
	adrp	x8, _rate36mb@GOTPAGE
Lloh40:
	ldr	x8, [x8, _rate36mb@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh42:
	adrp	x8, _rate24mb@GOTPAGE
Lloh43:
	ldr	x8, [x8, _rate24mb@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
	mov	x0, x20
	bl	_IS_CHAN_2GHZ
	cbz	x0, LBB0_21
; %bb.20:
Lloh45:
	adrp	x8, _AR_PHY_POWER_TX_RATE3@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE3@GOTPAGEOFF]
Lloh47:
	ldr	w22, [x8]
Lloh48:
	adrp	x8, _rate2s@GOTPAGE
Lloh49:
	ldr	x8, [x8, _rate2s@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh51:
	adrp	x8, _rate2l@GOTPAGE
Lloh52:
	ldr	x8, [x8, _rate2l@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh54:
	adrp	x8, _rateXr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _rateXr@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh57:
	adrp	x8, _rate1l@GOTPAGE
Lloh58:
	ldr	x8, [x8, _rate1l@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh60:
	adrp	x8, _AR_PHY_POWER_TX_RATE4@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE4@GOTPAGEOFF]
Lloh62:
	ldr	w22, [x8]
Lloh63:
	adrp	x8, _rate11s@GOTPAGE
Lloh64:
	ldr	x8, [x8, _rate11s@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh66:
	adrp	x8, _rate11l@GOTPAGE
Lloh67:
	ldr	x8, [x8, _rate11l@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh69:
	adrp	x8, _rate5_5s@GOTPAGE
Lloh70:
	ldr	x8, [x8, _rate5_5s@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh72:
	adrp	x8, _rate5_5l@GOTPAGE
Lloh73:
	ldr	x8, [x8, _rate5_5l@GOTPAGEOFF]
Lloh74:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
LBB0_21:
Lloh75:
	adrp	x8, _AR_PHY_POWER_TX_RATE5@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE5@GOTPAGEOFF]
Lloh77:
	ldr	w22, [x8]
Lloh78:
	adrp	x8, _rateHt20_3@GOTPAGE
Lloh79:
	ldr	x8, [x8, _rateHt20_3@GOTPAGEOFF]
Lloh80:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh81:
	adrp	x8, _rateHt20_2@GOTPAGE
Lloh82:
	ldr	x8, [x8, _rateHt20_2@GOTPAGEOFF]
Lloh83:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh84:
	adrp	x8, _rateHt20_1@GOTPAGE
Lloh85:
	ldr	x8, [x8, _rateHt20_1@GOTPAGEOFF]
Lloh86:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh87:
	adrp	x8, _rateHt20_0@GOTPAGE
Lloh88:
	ldr	x8, [x8, _rateHt20_0@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh90:
	adrp	x8, _AR_PHY_POWER_TX_RATE6@GOTPAGE
Lloh91:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE6@GOTPAGEOFF]
Lloh92:
	ldr	w22, [x8]
Lloh93:
	adrp	x8, _rateHt20_7@GOTPAGE
Lloh94:
	ldr	x8, [x8, _rateHt20_7@GOTPAGEOFF]
Lloh95:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh96:
	adrp	x8, _rateHt20_6@GOTPAGE
Lloh97:
	ldr	x8, [x8, _rateHt20_6@GOTPAGEOFF]
Lloh98:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh99:
	adrp	x8, _rateHt20_5@GOTPAGE
Lloh100:
	ldr	x8, [x8, _rateHt20_5@GOTPAGEOFF]
Lloh101:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh102:
	adrp	x8, _rateHt20_4@GOTPAGE
Lloh103:
	ldr	x8, [x8, _rateHt20_4@GOTPAGEOFF]
Lloh104:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
	mov	x0, x20
	bl	_IS_CHAN_HT40
	cbz	x0, LBB0_26
; %bb.22:
Lloh105:
	adrp	x8, _EEP_OL_PWRCTRL@GOTPAGE
Lloh106:
	ldr	x8, [x8, _EEP_OL_PWRCTRL@GOTPAGEOFF]
Lloh107:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ath9k_hw_ar9287_get_eeprom
	mov	x8, x0
Lloh108:
	adrp	x9, _AR_PHY_POWER_TX_RATE7@GOTPAGE
Lloh109:
	ldr	x9, [x9, _AR_PHY_POWER_TX_RATE7@GOTPAGEOFF]
Lloh110:
	ldr	w22, [x9]
Lloh111:
	adrp	x9, _rateHt40_3@GOTPAGE
Lloh112:
	ldr	x9, [x9, _rateHt40_3@GOTPAGEOFF]
Lloh113:
	ldr	x9, [x9]
	ldr	x0, [x21, x9, lsl #3]
	cbz	x8, LBB0_24
; %bb.23:
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh114:
	adrp	x8, _rateHt40_2@GOTPAGE
Lloh115:
	ldr	x8, [x8, _rateHt40_2@GOTPAGEOFF]
Lloh116:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh117:
	adrp	x8, _rateHt40_1@GOTPAGE
Lloh118:
	ldr	x8, [x8, _rateHt40_1@GOTPAGEOFF]
Lloh119:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh120:
	adrp	x8, _rateHt40_0@GOTPAGE
Lloh121:
	ldr	x8, [x8, _rateHt40_0@GOTPAGEOFF]
Lloh122:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh123:
	adrp	x8, _AR_PHY_POWER_TX_RATE8@GOTPAGE
Lloh124:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE8@GOTPAGEOFF]
Lloh125:
	ldr	w22, [x8]
Lloh126:
	adrp	x8, _rateHt40_7@GOTPAGE
Lloh127:
	ldr	x8, [x8, _rateHt40_7@GOTPAGEOFF]
Lloh128:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh129:
	adrp	x8, _rateHt40_6@GOTPAGE
Lloh130:
	ldr	x8, [x8, _rateHt40_6@GOTPAGEOFF]
Lloh131:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh132:
	adrp	x8, _rateHt40_5@GOTPAGE
Lloh133:
	ldr	x8, [x8, _rateHt40_5@GOTPAGEOFF]
Lloh134:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh135:
	adrp	x8, _rateHt40_4@GOTPAGE
Lloh136:
	ldr	x8, [x8, _rateHt40_4@GOTPAGEOFF]
Lloh137:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	b	LBB0_25
LBB0_24:
	add	x0, x0, x27
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh138:
	adrp	x8, _rateHt40_2@GOTPAGE
Lloh139:
	ldr	x8, [x8, _rateHt40_2@GOTPAGEOFF]
Lloh140:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh141:
	adrp	x8, _rateHt40_1@GOTPAGE
Lloh142:
	ldr	x8, [x8, _rateHt40_1@GOTPAGEOFF]
Lloh143:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh144:
	adrp	x8, _rateHt40_0@GOTPAGE
Lloh145:
	ldr	x8, [x8, _rateHt40_0@GOTPAGEOFF]
Lloh146:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh147:
	adrp	x8, _AR_PHY_POWER_TX_RATE8@GOTPAGE
Lloh148:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE8@GOTPAGEOFF]
Lloh149:
	ldr	w22, [x8]
Lloh150:
	adrp	x8, _rateHt40_7@GOTPAGE
Lloh151:
	ldr	x8, [x8, _rateHt40_7@GOTPAGEOFF]
Lloh152:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh153:
	adrp	x8, _rateHt40_6@GOTPAGE
Lloh154:
	ldr	x8, [x8, _rateHt40_6@GOTPAGEOFF]
Lloh155:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh156:
	adrp	x8, _rateHt40_5@GOTPAGE
Lloh157:
	ldr	x8, [x8, _rateHt40_5@GOTPAGEOFF]
Lloh158:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh159:
	adrp	x8, _rateHt40_4@GOTPAGE
Lloh160:
	ldr	x8, [x8, _rateHt40_4@GOTPAGEOFF]
Lloh161:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
LBB0_25:
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh162:
	adrp	x8, _AR_PHY_POWER_TX_RATE9@GOTPAGE
Lloh163:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE9@GOTPAGEOFF]
Lloh164:
	ldr	w22, [x8]
Lloh165:
	adrp	x8, _rateExtOfdm@GOTPAGE
Lloh166:
	ldr	x8, [x8, _rateExtOfdm@GOTPAGEOFF]
Lloh167:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh168:
	adrp	x8, _rateExtCck@GOTPAGE
Lloh169:
	ldr	x8, [x8, _rateExtCck@GOTPAGEOFF]
Lloh170:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh171:
	adrp	x8, _rateDupOfdm@GOTPAGE
Lloh172:
	ldr	x8, [x8, _rateDupOfdm@GOTPAGEOFF]
Lloh173:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh174:
	adrp	x8, _rateDupCck@GOTPAGE
Lloh175:
	ldr	x8, [x8, _rateDupCck@GOTPAGEOFF]
Lloh176:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
LBB0_26:
	ldr	x8, [x19]
	cbz	x8, LBB0_28
; %bb.27:
	mov	x0, x20
	bl	_IS_CHAN_HT40
	cmp	x0, #0
	csel	w3, wzr, w27, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_ar5008_hw_init_rate_txpower
Lloh177:
	adrp	x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGE
Lloh178:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGEOFF]
Lloh179:
	adrp	x9, _MAX_RATE_POWER@GOTPAGE
Lloh180:
	ldr	x9, [x9, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh181:
	ldr	w1, [x8]
Lloh182:
	ldr	x8, [x9]
Lloh183:
	adrp	x9, _AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE@GOTPAGE
Lloh184:
	ldr	x9, [x9, _AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE@GOTPAGEOFF]
Lloh185:
	ldr	x9, [x9]
	orr	x2, x9, x8
	b	LBB0_29
LBB0_28:
Lloh186:
	adrp	x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGE
Lloh187:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGEOFF]
Lloh188:
	ldr	w1, [x8]
Lloh189:
	adrp	x8, _MAX_RATE_POWER@GOTPAGE
Lloh190:
	ldr	x8, [x8, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh191:
	ldr	x2, [x8]
LBB0_29:
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	bl	_REGWRITE_BUFFER_FLUSH
LBB0_30:
	ldur	x8, [x29, #-88]
Lloh192:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh193:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh194:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh174, Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh171, Lloh172, Lloh173
	.loh AdrpLdrGotLdr	Lloh168, Lloh169, Lloh170
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh183, Lloh184, Lloh185
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh182
	.loh AdrpLdrGotLdr	Lloh177, Lloh178, Lloh181
	.loh AdrpLdrGotLdr	Lloh189, Lloh190, Lloh191
	.loh AdrpLdrGotLdr	Lloh186, Lloh187, Lloh188
	.loh AdrpLdrGotLdr	Lloh192, Lloh193, Lloh194
	.cfi_endproc
                                        ; -- End function
	.comm	_Ar5416RateSize,4,2             ; @Ar5416RateSize
	.comm	_AR9287_EEP_MINOR_VER_2,8,3     ; @AR9287_EEP_MINOR_VER_2
	.comm	_MAX_RATE_POWER,8,3             ; @MAX_RATE_POWER
	.comm	_AR9287_PWR_TABLE_OFFSET_DB,4,2 ; @AR9287_PWR_TABLE_OFFSET_DB
	.comm	_AR_PHY_POWER_TX_RATE1,4,2      ; @AR_PHY_POWER_TX_RATE1
	.comm	_rate18mb,8,3                   ; @rate18mb
	.comm	_rate12mb,8,3                   ; @rate12mb
	.comm	_rate9mb,8,3                    ; @rate9mb
	.comm	_rate6mb,8,3                    ; @rate6mb
	.comm	_AR_PHY_POWER_TX_RATE2,4,2      ; @AR_PHY_POWER_TX_RATE2
	.comm	_rate54mb,8,3                   ; @rate54mb
	.comm	_rate48mb,8,3                   ; @rate48mb
	.comm	_rate36mb,8,3                   ; @rate36mb
	.comm	_rate24mb,8,3                   ; @rate24mb
	.comm	_AR_PHY_POWER_TX_RATE3,4,2      ; @AR_PHY_POWER_TX_RATE3
	.comm	_rate2s,8,3                     ; @rate2s
	.comm	_rate2l,8,3                     ; @rate2l
	.comm	_rateXr,8,3                     ; @rateXr
	.comm	_rate1l,8,3                     ; @rate1l
	.comm	_AR_PHY_POWER_TX_RATE4,4,2      ; @AR_PHY_POWER_TX_RATE4
	.comm	_rate11s,8,3                    ; @rate11s
	.comm	_rate11l,8,3                    ; @rate11l
	.comm	_rate5_5s,8,3                   ; @rate5_5s
	.comm	_rate5_5l,8,3                   ; @rate5_5l
	.comm	_AR_PHY_POWER_TX_RATE5,4,2      ; @AR_PHY_POWER_TX_RATE5
	.comm	_rateHt20_3,8,3                 ; @rateHt20_3
	.comm	_rateHt20_2,8,3                 ; @rateHt20_2
	.comm	_rateHt20_1,8,3                 ; @rateHt20_1
	.comm	_rateHt20_0,8,3                 ; @rateHt20_0
	.comm	_AR_PHY_POWER_TX_RATE6,4,2      ; @AR_PHY_POWER_TX_RATE6
	.comm	_rateHt20_7,8,3                 ; @rateHt20_7
	.comm	_rateHt20_6,8,3                 ; @rateHt20_6
	.comm	_rateHt20_5,8,3                 ; @rateHt20_5
	.comm	_rateHt20_4,8,3                 ; @rateHt20_4
	.comm	_EEP_OL_PWRCTRL,4,2             ; @EEP_OL_PWRCTRL
	.comm	_AR_PHY_POWER_TX_RATE7,4,2      ; @AR_PHY_POWER_TX_RATE7
	.comm	_rateHt40_3,8,3                 ; @rateHt40_3
	.comm	_rateHt40_2,8,3                 ; @rateHt40_2
	.comm	_rateHt40_1,8,3                 ; @rateHt40_1
	.comm	_rateHt40_0,8,3                 ; @rateHt40_0
	.comm	_AR_PHY_POWER_TX_RATE8,4,2      ; @AR_PHY_POWER_TX_RATE8
	.comm	_rateHt40_7,8,3                 ; @rateHt40_7
	.comm	_rateHt40_6,8,3                 ; @rateHt40_6
	.comm	_rateHt40_5,8,3                 ; @rateHt40_5
	.comm	_rateHt40_4,8,3                 ; @rateHt40_4
	.comm	_AR_PHY_POWER_TX_RATE9,4,2      ; @AR_PHY_POWER_TX_RATE9
	.comm	_rateExtOfdm,8,3                ; @rateExtOfdm
	.comm	_rateExtCck,8,3                 ; @rateExtCck
	.comm	_rateDupOfdm,8,3                ; @rateDupOfdm
	.comm	_rateDupCck,8,3                 ; @rateDupCck
	.comm	_AR_PHY_POWER_TX_RATE_MAX,4,2   ; @AR_PHY_POWER_TX_RATE_MAX
	.comm	_AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE,8,3 ; @AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE
	.no_dead_strip	_ath9k_hw_ar9287_set_txpower
.subsections_via_symbols
