	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_def_set_txpower
_ath9k_hw_def_set_txpower:              ## @ath9k_hw_def_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -72(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_ath9k_hw_regulatory
	movq	%rax, %r12
	movq	16(%r14), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_IS_CHAN_2GHZ
	cltq
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_Ar5416RateSize@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	(,%rbx,8), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ath9k_hw_def_get_eeprom_rev
	movq	_AR5416_EEP_MINOR_VER_2@GOTPCREL(%rip), %rcx
	movl	$2, %edx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx,%rax,8), %rdx
LBB0_2:
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_ath9k_hw_set_def_power_per_rate_table
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ath9k_hw_set_def_power_cal_table
	movq	$0, (%r12)
	movq	%r15, %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	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rax
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, (%r15,%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	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_ath9k_hw_update_regulatory_maxpower
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.10:
	movq	%r12, %rdi
	callq	_AR_SREV_9280_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	movq	_EEP_PWR_TABLE_OFFSET@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	*(%rax)
	addl	%eax, %eax
	cltq
	subq	%rax, (%r15,%rbx,8)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movq	%r12, %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	(%r15,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%r12, %rbx
	movq	%rax, %r12
	movq	_rate12mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	_rate9mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rate6mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r12, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %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	(%r15,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rate48mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	_rate36mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rate24mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r12, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_REG_WRITE
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_CHAN_2GHZ
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movq	_OLC_FOR_AR9280_20_LATER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_AR_PHY_POWER_TX_RATE3@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_rate2s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	je	LBB0_18
## %bb.17:
	addq	$-2, %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rate2l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	$-2, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	_rateXr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rate1l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	$-2, %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r14, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE4@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_rate11s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	$-2, %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rate11l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	$-2, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	orq	%r14, %r13
	movq	_rate5_5s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	$-2, %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	orq	%r13, %r14
	movq	_rate5_5l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	$-2, %rdi
	movl	$2, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
LBB0_15:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_18:
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rate2l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	_rateXr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rate1l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r14, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE4@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_rate11s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rate11l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	orq	%r14, %r13
	movq	_rate5_5s@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	orq	%r13, %r14
	movq	_rate5_5l@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
LBB0_19:
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_REG_WRITE
LBB0_20:
	movq	_AR_PHY_POWER_TX_RATE5@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_rateHt20_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateHt20_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	_rateHt20_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rateHt20_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r12, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %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	(%r15,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateHt20_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	_rateHt20_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rateHt20_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r12, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_REG_WRITE
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	movq	_AR_PHY_POWER_TX_RATE7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_rateHt40_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateHt40_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	_rateHt40_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rateHt40_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r12, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_POWER_TX_RATE8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_rateHt40_7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	_rateHt40_6@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	_rateHt40_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	movq	_rateHt40_4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r13
	orq	%r12, %r13
	movq	%r14, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_REG_WRITE
	movq	_OLC_FOR_AR9280_20_LATER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_AR_PHY_POWER_TX_RATE9@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_rateExtOfdm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$24, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	movq	_rateExtCck@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.22:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subq	%rbx, %rdi
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	orq	%r14, %r13
	movq	_rateDupOfdm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	orq	%r13, %r14
	movq	_rateDupCck@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	subq	%rbx, %rdi
	jmp	LBB0_24
LBB0_23:
	movl	$16, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r13
	orq	%r14, %r13
	movq	_rateDupOfdm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
	movl	$8, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r14
	orq	%r13, %r14
	movq	_rateDupCck@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rdi
LBB0_24:
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_REG_WRITE
LBB0_25:
	movq	_AR_PHY_POWER_TX_SUB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rax,2), %r13
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	8(%rbx,%r13,8), %rdi
	movl	$6, %esi
	callq	_ATH9K_POW_SM
	movq	%rax, %r12
	movq	16(%rbx,%r13,8), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_ATH9K_POW_SM
	orq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_REG_WRITE
	cmpq	$0, (%rbx)
	movq	%rbx, %r14
	je	LBB0_27
## %bb.26:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IS_CHAN_HT40
	testq	%rax, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	cmovel	%r13d, %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %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_28
LBB0_27:
	movq	_AR_PHY_POWER_TX_RATE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_28:
	movq	%r14, %rdi
	callq	_REG_WRITE
	movq	%r14, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Ar5416RateSize,4,2             ## @Ar5416RateSize
	.comm	_AR5416_EEP_MINOR_VER_2,8,3     ## @AR5416_EEP_MINOR_VER_2
	.comm	_MAX_RATE_POWER,8,3             ## @MAX_RATE_POWER
	.comm	_EEP_PWR_TABLE_OFFSET,4,2       ## @EEP_PWR_TABLE_OFFSET
	.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	_OLC_FOR_AR9280_20_LATER,8,3    ## @OLC_FOR_AR9280_20_LATER
	.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	_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_SUB,4,2        ## @AR_PHY_POWER_TX_SUB
	.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_def_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_def_set_txpower
_ath9k_hw_def_set_txpower:              ; @ath9k_hw_def_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, #32
	stur	w5, [x29, #-92]                 ; 4-byte Folded Spill
	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
	ldr	x27, [x19, #16]
	mov	x22, x20
	mov	x0, x20
	bl	_IS_CHAN_2GHZ
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
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_def_get_eeprom_rev
Lloh7:
	adrp	x8, _AR5416_EEP_MINOR_VER_2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR5416_EEP_MINOR_VER_2@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	stp	x20, x27, [x29, #-112]          ; 16-byte Folded Spill
	b.ge	LBB0_2
; %bb.1:
	mov	w27, #2
	b	LBB0_3
LBB0_2:
	mov	w8, #24
	mul	x8, x20, x8
	ldr	x27, [x27, x8]
LBB0_3:
	mov	x0, x19
	mov	x20, x22
	mov	x1, x22
	mov	x2, x21
	mov	x3, x26
	mov	x4, x25
	mov	x5, x24
	bl	_ath9k_hw_set_def_power_per_rate_table
	mov	x0, x19
	mov	x1, x22
	bl	_ath9k_hw_set_def_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
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cbnz	w8, LBB0_30
; %bb.11:
	mov	x0, x19
	bl	_AR_SREV_9280_20_OR_LATER
	cbz	x0, LBB0_15
; %bb.12:
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x22, #0
Lloh12:
	adrp	x23, _EEP_PWR_TABLE_OFFSET@GOTPAGE
Lloh13:
	ldr	x23, [x23, _EEP_PWR_TABLE_OFFSET@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x23]
	mov	x0, x19
	blr	x8
	lsl	w8, w0, #1
	lsl	x9, x22, #3
	ldr	x10, [x21, x9]
	sub	x8, x10, w8, sxtw
	str	x8, [x21, x9]
	add	x22, x22, #1
	ldrsw	x8, [x28]
	cmp	x22, x8
	b.lt	LBB0_14
LBB0_15:
	mov	x0, x19
	bl	_ENABLE_REGWRITE_BUFFER
Lloh14:
	adrp	x8, _AR_PHY_POWER_TX_RATE1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE1@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
Lloh17:
	adrp	x8, _rate18mb@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rate18mb@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh20:
	adrp	x8, _rate12mb@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rate12mb@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh23:
	adrp	x8, _rate9mb@GOTPAGE
Lloh24:
	ldr	x8, [x8, _rate9mb@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh26:
	adrp	x8, _rate6mb@GOTPAGE
Lloh27:
	ldr	x8, [x8, _rate6mb@GOTPAGEOFF]
Lloh28:
	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
Lloh29:
	adrp	x8, _AR_PHY_POWER_TX_RATE2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE2@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
Lloh32:
	adrp	x8, _rate54mb@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rate54mb@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh35:
	adrp	x8, _rate48mb@GOTPAGE
Lloh36:
	ldr	x8, [x8, _rate48mb@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh38:
	adrp	x8, _rate36mb@GOTPAGE
Lloh39:
	ldr	x8, [x8, _rate36mb@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh41:
	adrp	x8, _rate24mb@GOTPAGE
Lloh42:
	ldr	x8, [x8, _rate24mb@GOTPAGEOFF]
Lloh43:
	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
Lloh44:
	adrp	x24, _OLC_FOR_AR9280_20_LATER@GOTPAGE
Lloh45:
	ldr	x24, [x24, _OLC_FOR_AR9280_20_LATER@GOTPAGEOFF]
	cbz	w0, LBB0_18
; %bb.16:
	ldr	x8, [x24]
Lloh46:
	adrp	x9, _AR_PHY_POWER_TX_RATE3@GOTPAGE
Lloh47:
	ldr	x9, [x9, _AR_PHY_POWER_TX_RATE3@GOTPAGEOFF]
Lloh48:
	ldr	w22, [x9]
Lloh49:
	adrp	x9, _rate2s@GOTPAGE
Lloh50:
	ldr	x9, [x9, _rate2s@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	ldr	x0, [x21, x9, lsl #3]
	ldur	x26, [x29, #-112]               ; 8-byte Folded Reload
	cbz	x8, LBB0_19
; %bb.17:
	sub	x0, x0, #2
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh52:
	adrp	x8, _rate2l@GOTPAGE
Lloh53:
	ldr	x8, [x8, _rate2l@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, #2
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh55:
	adrp	x8, _rateXr@GOTPAGE
Lloh56:
	ldr	x8, [x8, _rateXr@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh58:
	adrp	x8, _rate1l@GOTPAGE
Lloh59:
	ldr	x8, [x8, _rate1l@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, #2
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
Lloh61:
	adrp	x8, _AR_PHY_POWER_TX_RATE4@GOTPAGE
Lloh62:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE4@GOTPAGEOFF]
Lloh63:
	ldr	w22, [x8]
Lloh64:
	adrp	x8, _rate11s@GOTPAGE
Lloh65:
	ldr	x8, [x8, _rate11s@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, #2
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh67:
	adrp	x8, _rate11l@GOTPAGE
Lloh68:
	ldr	x8, [x8, _rate11l@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, #2
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh70:
	adrp	x8, _rate5_5s@GOTPAGE
Lloh71:
	ldr	x8, [x8, _rate5_5s@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, #2
	mov	w1, #8
	bl	_ATH9K_POW_SM
Lloh73:
	adrp	x8, _rate5_5l@GOTPAGE
Lloh74:
	ldr	x8, [x8, _rate5_5l@GOTPAGEOFF]
	orr	x23, x23, x0
Lloh75:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, #2
	mov	w25, #2
	b	LBB0_20
LBB0_18:
	mov	x25, #0
	ldur	x26, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_21
LBB0_19:
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh76:
	adrp	x8, _rate2l@GOTPAGE
Lloh77:
	ldr	x8, [x8, _rate2l@GOTPAGEOFF]
Lloh78:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh79:
	adrp	x8, _rateXr@GOTPAGE
Lloh80:
	ldr	x8, [x8, _rateXr@GOTPAGEOFF]
Lloh81:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh82:
	adrp	x8, _rate1l@GOTPAGE
Lloh83:
	ldr	x8, [x8, _rate1l@GOTPAGEOFF]
Lloh84:
	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
Lloh85:
	adrp	x8, _AR_PHY_POWER_TX_RATE4@GOTPAGE
Lloh86:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE4@GOTPAGEOFF]
Lloh87:
	ldr	w22, [x8]
Lloh88:
	adrp	x8, _rate11s@GOTPAGE
Lloh89:
	ldr	x8, [x8, _rate11s@GOTPAGEOFF]
Lloh90:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh91:
	adrp	x8, _rate11l@GOTPAGE
Lloh92:
	ldr	x8, [x8, _rate11l@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh94:
	adrp	x8, _rate5_5s@GOTPAGE
Lloh95:
	ldr	x8, [x8, _rate5_5s@GOTPAGEOFF]
Lloh96:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	mov	x25, #0
	orr	x23, x23, x0
Lloh97:
	adrp	x8, _rate5_5l@GOTPAGE
Lloh98:
	ldr	x8, [x8, _rate5_5l@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
LBB0_20:
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
LBB0_21:
Lloh100:
	adrp	x8, _AR_PHY_POWER_TX_RATE5@GOTPAGE
Lloh101:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE5@GOTPAGEOFF]
Lloh102:
	ldr	w22, [x8]
Lloh103:
	adrp	x8, _rateHt20_3@GOTPAGE
Lloh104:
	ldr	x8, [x8, _rateHt20_3@GOTPAGEOFF]
Lloh105:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh106:
	adrp	x8, _rateHt20_2@GOTPAGE
Lloh107:
	ldr	x8, [x8, _rateHt20_2@GOTPAGEOFF]
Lloh108:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh109:
	adrp	x8, _rateHt20_1@GOTPAGE
Lloh110:
	ldr	x8, [x8, _rateHt20_1@GOTPAGEOFF]
Lloh111:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh112:
	adrp	x8, _rateHt20_0@GOTPAGE
Lloh113:
	ldr	x8, [x8, _rateHt20_0@GOTPAGEOFF]
Lloh114:
	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
Lloh115:
	adrp	x8, _AR_PHY_POWER_TX_RATE6@GOTPAGE
Lloh116:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE6@GOTPAGEOFF]
Lloh117:
	ldr	w22, [x8]
Lloh118:
	adrp	x8, _rateHt20_7@GOTPAGE
Lloh119:
	ldr	x8, [x8, _rateHt20_7@GOTPAGEOFF]
Lloh120:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh121:
	adrp	x8, _rateHt20_6@GOTPAGE
Lloh122:
	ldr	x8, [x8, _rateHt20_6@GOTPAGEOFF]
Lloh123:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh124:
	adrp	x8, _rateHt20_5@GOTPAGE
Lloh125:
	ldr	x8, [x8, _rateHt20_5@GOTPAGEOFF]
Lloh126:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh127:
	adrp	x8, _rateHt20_4@GOTPAGE
Lloh128:
	ldr	x8, [x8, _rateHt20_4@GOTPAGEOFF]
Lloh129:
	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:
Lloh130:
	adrp	x8, _AR_PHY_POWER_TX_RATE7@GOTPAGE
Lloh131:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE7@GOTPAGEOFF]
Lloh132:
	ldr	w22, [x8]
Lloh133:
	adrp	x8, _rateHt40_3@GOTPAGE
Lloh134:
	ldr	x8, [x8, _rateHt40_3@GOTPAGEOFF]
Lloh135:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh136:
	adrp	x8, _rateHt40_2@GOTPAGE
Lloh137:
	ldr	x8, [x8, _rateHt40_2@GOTPAGEOFF]
Lloh138:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh139:
	adrp	x8, _rateHt40_1@GOTPAGE
Lloh140:
	ldr	x8, [x8, _rateHt40_1@GOTPAGEOFF]
Lloh141:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh142:
	adrp	x8, _rateHt40_0@GOTPAGE
Lloh143:
	ldr	x8, [x8, _rateHt40_0@GOTPAGEOFF]
Lloh144:
	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
Lloh145:
	adrp	x8, _AR_PHY_POWER_TX_RATE8@GOTPAGE
Lloh146:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE8@GOTPAGEOFF]
Lloh147:
	ldr	w22, [x8]
Lloh148:
	adrp	x8, _rateHt40_7@GOTPAGE
Lloh149:
	ldr	x8, [x8, _rateHt40_7@GOTPAGEOFF]
Lloh150:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh151:
	adrp	x8, _rateHt40_6@GOTPAGE
Lloh152:
	ldr	x8, [x8, _rateHt40_6@GOTPAGEOFF]
Lloh153:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh154:
	adrp	x8, _rateHt40_5@GOTPAGE
Lloh155:
	ldr	x8, [x8, _rateHt40_5@GOTPAGEOFF]
Lloh156:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	add	x0, x8, x27
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh157:
	adrp	x8, _rateHt40_4@GOTPAGE
Lloh158:
	ldr	x8, [x8, _rateHt40_4@GOTPAGEOFF]
Lloh159:
	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
	ldr	x24, [x24]
Lloh160:
	adrp	x8, _AR_PHY_POWER_TX_RATE9@GOTPAGE
Lloh161:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE9@GOTPAGEOFF]
Lloh162:
	ldr	w22, [x8]
Lloh163:
	adrp	x8, _rateExtOfdm@GOTPAGE
Lloh164:
	ldr	x8, [x8, _rateExtOfdm@GOTPAGEOFF]
Lloh165:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #24
	bl	_ATH9K_POW_SM
	mov	x23, x0
Lloh166:
	adrp	x8, _rateExtCck@GOTPAGE
Lloh167:
	ldr	x8, [x8, _rateExtCck@GOTPAGEOFF]
Lloh168:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	cbz	x24, LBB0_24
; %bb.23:
	sub	x0, x0, x25
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh169:
	adrp	x8, _rateDupOfdm@GOTPAGE
Lloh170:
	ldr	x8, [x8, _rateDupOfdm@GOTPAGEOFF]
Lloh171:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh172:
	adrp	x8, _rateDupCck@GOTPAGE
Lloh173:
	ldr	x8, [x8, _rateDupCck@GOTPAGEOFF]
Lloh174:
	ldr	x8, [x8]
	ldr	x8, [x21, x8, lsl #3]
	sub	x0, x8, x25
	b	LBB0_25
LBB0_24:
	mov	w1, #16
	bl	_ATH9K_POW_SM
	orr	x23, x0, x23
Lloh175:
	adrp	x8, _rateDupOfdm@GOTPAGE
Lloh176:
	ldr	x8, [x8, _rateDupOfdm@GOTPAGEOFF]
Lloh177:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
	mov	w1, #8
	bl	_ATH9K_POW_SM
	orr	x23, x23, x0
Lloh178:
	adrp	x8, _rateDupCck@GOTPAGE
Lloh179:
	ldr	x8, [x8, _rateDupCck@GOTPAGEOFF]
Lloh180:
	ldr	x8, [x8]
	ldr	x0, [x21, x8, lsl #3]
LBB0_25:
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
LBB0_26:
Lloh181:
	adrp	x8, _AR_PHY_POWER_TX_SUB@GOTPAGE
Lloh182:
	ldr	x8, [x8, _AR_PHY_POWER_TX_SUB@GOTPAGEOFF]
Lloh183:
	ldr	w22, [x8]
	mov	w8, #24
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	madd	x24, x26, x8, x9
	ldr	x0, [x24, #8]
	mov	w1, #6
	bl	_ATH9K_POW_SM
	mov	x23, x0
	ldr	x0, [x24, #16]
	mov	w1, #0
	bl	_ATH9K_POW_SM
	orr	x2, x0, x23
	mov	x0, x19
	mov	x1, x22
	bl	_REG_WRITE
	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
Lloh184:
	adrp	x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGE
Lloh185:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGEOFF]
Lloh186:
	adrp	x9, _MAX_RATE_POWER@GOTPAGE
Lloh187:
	ldr	x9, [x9, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh188:
	ldr	w1, [x8]
Lloh189:
	ldr	x8, [x9]
Lloh190:
	adrp	x9, _AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE@GOTPAGE
Lloh191:
	ldr	x9, [x9, _AR_PHY_POWER_TX_RATE_MAX_TPC_ENABLE@GOTPAGEOFF]
Lloh192:
	ldr	x9, [x9]
	orr	x2, x9, x8
	b	LBB0_29
LBB0_28:
Lloh193:
	adrp	x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGE
Lloh194:
	ldr	x8, [x8, _AR_PHY_POWER_TX_RATE_MAX@GOTPAGEOFF]
Lloh195:
	ldr	w1, [x8]
Lloh196:
	adrp	x8, _MAX_RATE_POWER@GOTPAGE
Lloh197:
	ldr	x8, [x8, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh198:
	ldr	x2, [x8]
LBB0_29:
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	bl	_REGWRITE_BUFFER_FLUSH
LBB0_30:
	ldur	x8, [x29, #-88]
Lloh199:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh200:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh201:
	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 AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh181, Lloh182, Lloh183
	.loh AdrpLdrGotLdr	Lloh190, Lloh191, Lloh192
	.loh AdrpLdrGotLdr	Lloh186, Lloh187, Lloh189
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh188
	.loh AdrpLdrGotLdr	Lloh196, Lloh197, Lloh198
	.loh AdrpLdrGotLdr	Lloh193, Lloh194, Lloh195
	.loh AdrpLdrGotLdr	Lloh199, Lloh200, Lloh201
	.cfi_endproc
                                        ; -- End function
	.comm	_Ar5416RateSize,4,2             ; @Ar5416RateSize
	.comm	_AR5416_EEP_MINOR_VER_2,8,3     ; @AR5416_EEP_MINOR_VER_2
	.comm	_MAX_RATE_POWER,8,3             ; @MAX_RATE_POWER
	.comm	_EEP_PWR_TABLE_OFFSET,4,2       ; @EEP_PWR_TABLE_OFFSET
	.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	_OLC_FOR_AR9280_20_LATER,8,3    ; @OLC_FOR_AR9280_20_LATER
	.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	_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_SUB,4,2        ; @AR_PHY_POWER_TX_SUB
	.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_def_set_txpower
.subsections_via_symbols
