	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_ani_control
_ar9003_hw_ani_control:                 ## @ar9003_hw_ani_control
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movl	(%r14), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_34
## %bb.1:
	movq	136(%r14), %r13
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_20:
	movslq	%r15d, %r15
	movq	_cycpwrThr1_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpq	%r15, %rax
	jbe	LBB0_28
## %bb.21:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %r12d
	movq	_ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rax,%rcx,4), %r12d
	addl	128(%r14), %r12d
	movq	_ATH9K_SIG_SPUR_IMM_SETTING_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	cmovlel	%eax, %r12d
	movq	_ATH9K_SIG_SPUR_IMM_SETTING_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	movq	_AR_PHY_TIMING5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TIMING5_CYCPWR_THR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_REG_RMW_FIELD
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %r13d
	movq	_ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rax,%rcx,4), %r13d
	addl	132(%r14), %r13d
	movq	_ATH9K_SIG_SPUR_IMM_SETTING_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	cmovlel	%eax, %r13d
	movq	_ATH9K_SIG_SPUR_IMM_SETTING_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	cmovgel	%eax, %r13d
	movq	_AR_PHY_EXT_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_EXT_CYCPWR_THR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_REG_RMW_FIELD
	movq	56(%r14), %r8
	cmpq	%r15, %r8
	je	LBB0_32
## %bb.22:
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	movl	128(%r14), %r10d
	subq	$8, %rsp
	leaq	L_.str.7(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r12
	movq	_ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPCREL(%rip), %rbx
	pushq	(%rbx)
	callq	_ath_dbg
	addq	$32, %rsp
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	movq	56(%r14), %r8
	movl	132(%r14), %r10d
	subq	$8, %rsp
	leaq	L_.str.8(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r13
	pushq	(%rbx)
	callq	_ath_dbg
	addq	$32, %rsp
	cmpq	%r15, 56(%r14)
	jae	LBB0_24
## %bb.23:
	leaq	16(%r14), %rax
	jmp	LBB0_26
LBB0_29:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	setne	%al
	cmpl	$1, 36(%r14)
	je	LBB0_32
## %bb.30:
	movb	%al, %r12b
	movq	_AR_PHY_MRC_CCK_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_MRC_CCK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_MRC_CCK_MUX_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_REG_RMW_FIELD
	movl	64(%r14), %eax
	cmpl	%r12d, %eax
	je	LBB0_32
## %bb.31:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	movq	%r9, %r8
	cmoveq	%rax, %r8
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	setne	%bl
	movq	_ANI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	(%r13), %rcx
	cmoveq	%rax, %r9
	leaq	L_.str.9(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ath_dbg
	incl	4(%r14,%rbx,4)
	movl	%r12d, 64(%r14)
	jmp	LBB0_32
LBB0_10:
	movslq	%r15d, %r15
	movq	_firstep_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpq	%r15, %rax
	jbe	LBB0_18
## %bb.11:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %r12d
	movq	_ATH9K_ANI_FIRSTEP_LVL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rax,%rcx,4), %r12d
	addl	120(%r14), %r12d
	movq	_ATH9K_SIG_FIRSTEP_SETTING_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	cmovlel	%eax, %r12d
	movq	_ATH9K_SIG_FIRSTEP_SETTING_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	movq	_AR_PHY_FIND_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_FIND_SIG_FIRSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_REG_RMW_FIELD
	movq	(%rbx), %rax
	movl	(%rax,%r15,4), %r13d
	movq	_ATH9K_ANI_FIRSTEP_LVL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	(%rax,%rcx,4), %r13d
	addl	124(%r14), %r13d
	movq	_ATH9K_SIG_FIRSTEP_SETTING_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	cmovlel	%eax, %r13d
	movq	_ATH9K_SIG_FIRSTEP_SETTING_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	cmovgel	%eax, %r13d
	movq	_AR_PHY_FIND_SIG_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_REG_RMW_FIELD
	movq	48(%r14), %r8
	cmpq	%r15, %r8
	je	LBB0_32
## %bb.12:
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	movl	120(%r14), %r10d
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r12
	movq	_ATH9K_ANI_FIRSTEP_LVL@GOTPCREL(%rip), %rbx
	pushq	(%rbx)
	callq	_ath_dbg
	addq	$32, %rsp
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	movq	48(%r14), %r8
	movl	124(%r14), %r10d
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r9
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r13
	pushq	(%rbx)
	callq	_ath_dbg
	addq	$32, %rsp
	cmpq	%r15, 48(%r14)
	jae	LBB0_14
## %bb.13:
	leaq	24(%r14), %rax
	jmp	LBB0_16
LBB0_34:
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %ecx
	leaq	L_.str.10(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_33
LBB0_2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	setne	%r13b
	movq	%r14, %rdi
	callq	_AR_SREV_9462
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_AR_SREV_9565
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	80(%r14), %rcx
	leaq	84(%r14), %rsi
	leaq	88(%r14), %rdi
	leaq	92(%r14), %rbx
	leaq	96(%r14), %rax
	leaq	100(%r14), %rdx
	leaq	104(%r14), %r10
	leaq	108(%r14), %r11
	leaq	112(%r14), %r9
	leaq	116(%r14), %r8
	testl	%r15d, %r15d
	cmoveq	_m1ThreshLow_off@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmoveq	_m2ThreshLow_off@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	cmoveq	_m1Thresh_off@GOTPCREL(%rip), %rdi
	movl	(%rdi), %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	cmoveq	_m2Thresh_off@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	cmoveq	_m2CountThr_off@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmoveq	_m2CountThrLow_off@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	cmoveq	_m1ThreshLowExt_off@GOTPCREL(%rip), %r10
	movl	(%r10), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	cmoveq	_m2ThreshLowExt_off@GOTPCREL(%rip), %r11
	movl	(%r11), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	cmoveq	_m1ThreshExt_off@GOTPCREL(%rip), %r9
	movl	(%r9), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	cmoveq	_m2ThreshExt_off@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_AR_PHY_SFCORR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %rbx
	movq	_AR_PHY_SFCORR_LOW_M1_THRESH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_LOW_M2_THRESH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_SFCORR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_M1_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_M2_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_M2COUNT_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_SFCORR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_SFCORR_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_EXT_M1_THRESH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_EXT_M2_THRESH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_EXT_M1_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movl	(%rbx), %esi
	movq	_AR_PHY_SFCORR_EXT_M2_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
LBB0_5:
	movq	_AR_PHY_SFCORR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	callq	_REG_SET_BIT
	jmp	LBB0_8
LBB0_18:
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_19
LBB0_28:
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str.6(%rip), %rdx
LBB0_19:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_ath_dbg
	jmp	LBB0_33
LBB0_7:
	callq	_REG_CLR_BIT
LBB0_8:
	movq	40(%r14), %rax
	cmpq	%r13, %rax
	je	LBB0_32
## %bb.9:
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	movq	%r9, %r8
	cmoveq	%rax, %r8
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	setne	%bl
	movq	_ANI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_ath_dbg
	incl	28(%r14,%rbx,4)
	movq	%r13, 40(%r14)
	jmp	LBB0_32
LBB0_24:
	jbe	LBB0_27
## %bb.25:
	leaq	12(%r14), %rax
LBB0_26:
	incl	(%rax)
LBB0_27:
	movq	%r15, 56(%r14)
	jmp	LBB0_32
LBB0_14:
	jbe	LBB0_17
## %bb.15:
	leaq	20(%r14), %rax
LBB0_16:
	incl	(%rax)
LBB0_17:
	movq	%r15, 48(%r14)
LBB0_32:
	movq	_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%r14), %r9
	cmpq	$0, 40(%r14)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %r8
	cmoveq	%rax, %r8
	cmpl	$0, 64(%r14)
	cmoveq	%rax, %rbx
	movq	56(%r14), %rcx
	movl	76(%r14), %r10d
	movl	72(%r14), %r11d
	movl	68(%r14), %r14d
	leaq	L_.str.11(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	%rbx
	callq	_ath_dbg
	addq	$32, %rsp
	movl	$1, %ebx
LBB0_33:
	movl	%ebx, %eax
	addq	$56, %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_20, LBB0_20-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_2
	.long	L0_0_set_29
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_m1ThreshLow_off,4,2            ## @m1ThreshLow_off
	.comm	_m2ThreshLow_off,4,2            ## @m2ThreshLow_off
	.comm	_m1Thresh_off,4,2               ## @m1Thresh_off
	.comm	_m2Thresh_off,4,2               ## @m2Thresh_off
	.comm	_m2CountThr_off,4,2             ## @m2CountThr_off
	.comm	_m2CountThrLow_off,4,2          ## @m2CountThrLow_off
	.comm	_m1ThreshLowExt_off,4,2         ## @m1ThreshLowExt_off
	.comm	_m2ThreshLowExt_off,4,2         ## @m2ThreshLowExt_off
	.comm	_m1ThreshExt_off,4,2            ## @m1ThreshExt_off
	.comm	_m2ThreshExt_off,4,2            ## @m2ThreshExt_off
	.comm	_AR_PHY_SFCORR_LOW,4,2          ## @AR_PHY_SFCORR_LOW
	.comm	_AR_PHY_SFCORR_LOW_M1_THRESH_LOW,4,2 ## @AR_PHY_SFCORR_LOW_M1_THRESH_LOW
	.comm	_AR_PHY_SFCORR_LOW_M2_THRESH_LOW,4,2 ## @AR_PHY_SFCORR_LOW_M2_THRESH_LOW
	.comm	_AR_PHY_SFCORR,4,2              ## @AR_PHY_SFCORR
	.comm	_AR_PHY_SFCORR_M1_THRESH,4,2    ## @AR_PHY_SFCORR_M1_THRESH
	.comm	_AR_PHY_SFCORR_M2_THRESH,4,2    ## @AR_PHY_SFCORR_M2_THRESH
	.comm	_AR_PHY_SFCORR_M2COUNT_THR,4,2  ## @AR_PHY_SFCORR_M2COUNT_THR
	.comm	_AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW,4,2 ## @AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW
	.comm	_AR_PHY_SFCORR_EXT,4,2          ## @AR_PHY_SFCORR_EXT
	.comm	_AR_PHY_SFCORR_EXT_M1_THRESH_LOW,4,2 ## @AR_PHY_SFCORR_EXT_M1_THRESH_LOW
	.comm	_AR_PHY_SFCORR_EXT_M2_THRESH_LOW,4,2 ## @AR_PHY_SFCORR_EXT_M2_THRESH_LOW
	.comm	_AR_PHY_SFCORR_EXT_M1_THRESH,4,2 ## @AR_PHY_SFCORR_EXT_M1_THRESH
	.comm	_AR_PHY_SFCORR_EXT_M2_THRESH,4,2 ## @AR_PHY_SFCORR_EXT_M2_THRESH
	.comm	_AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW,4,2 ## @AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW
	.comm	_ANI,4,2                        ## @ANI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"** ch %d: ofdm weak signal: %s=>%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"on"

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

	.comm	_firstep_table,8,3              ## @firstep_table
L_.str.3:                               ## @.str.3
	.asciz	"ATH9K_ANI_FIRSTEP_LEVEL: level out of range (%u > %zu)\n"

	.comm	_ATH9K_ANI_FIRSTEP_LVL,8,3      ## @ATH9K_ANI_FIRSTEP_LVL
	.comm	_ATH9K_SIG_FIRSTEP_SETTING_MIN,4,2 ## @ATH9K_SIG_FIRSTEP_SETTING_MIN
	.comm	_ATH9K_SIG_FIRSTEP_SETTING_MAX,4,2 ## @ATH9K_SIG_FIRSTEP_SETTING_MAX
	.comm	_AR_PHY_FIND_SIG,4,2            ## @AR_PHY_FIND_SIG
	.comm	_AR_PHY_FIND_SIG_FIRSTEP,4,2    ## @AR_PHY_FIND_SIG_FIRSTEP
	.comm	_AR_PHY_FIND_SIG_LOW,4,2        ## @AR_PHY_FIND_SIG_LOW
	.comm	_AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW,4,2 ## @AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW
L_.str.4:                               ## @.str.4
	.asciz	"** ch %d: level %d=>%d[def:%d] firstep[level]=%d ini=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"** ch %d: level %d=>%d[def:%d] firstep_low[level]=%d ini=%d\n"

	.comm	_cycpwrThr1_table,8,3           ## @cycpwrThr1_table
L_.str.6:                               ## @.str.6
	.asciz	"ATH9K_ANI_SPUR_IMMUNITY_LEVEL: level out of range (%u > %zu)\n"

	.comm	_ATH9K_ANI_SPUR_IMMUNE_LVL,8,3  ## @ATH9K_ANI_SPUR_IMMUNE_LVL
	.comm	_ATH9K_SIG_SPUR_IMM_SETTING_MIN,4,2 ## @ATH9K_SIG_SPUR_IMM_SETTING_MIN
	.comm	_ATH9K_SIG_SPUR_IMM_SETTING_MAX,4,2 ## @ATH9K_SIG_SPUR_IMM_SETTING_MAX
	.comm	_AR_PHY_TIMING5,4,2             ## @AR_PHY_TIMING5
	.comm	_AR_PHY_TIMING5_CYCPWR_THR1,4,2 ## @AR_PHY_TIMING5_CYCPWR_THR1
	.comm	_AR_PHY_EXT_CCA,4,2             ## @AR_PHY_EXT_CCA
	.comm	_AR_PHY_EXT_CYCPWR_THR1,4,2     ## @AR_PHY_EXT_CYCPWR_THR1
L_.str.7:                               ## @.str.7
	.asciz	"** ch %d: level %d=>%d[def:%d] cycpwrThr1[level]=%d ini=%d\n"

L_.str.8:                               ## @.str.8
	.asciz	"** ch %d: level %d=>%d[def:%d] cycpwrThr1Ext[level]=%d ini=%d\n"

	.comm	_AR_PHY_MRC_CCK_CTRL,4,2        ## @AR_PHY_MRC_CCK_CTRL
	.comm	_AR_PHY_MRC_CCK_ENABLE,4,2      ## @AR_PHY_MRC_CCK_ENABLE
	.comm	_AR_PHY_MRC_CCK_MUX_REG,4,2     ## @AR_PHY_MRC_CCK_MUX_REG
L_.str.9:                               ## @.str.9
	.asciz	"** ch %d: MRC CCK: %s=>%s\n"

L_.str.10:                              ## @.str.10
	.asciz	"invalid cmd %u\n"

L_.str.11:                              ## @.str.11
	.asciz	"ANI parameters: SI=%d, ofdmWS=%s FS=%d MRCcck=%s listenTime=%d ofdmErrs=%d cckErrs=%d\n"

	.no_dead_strip	_ar9003_hw_ani_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_ani_control
_ar9003_hw_ani_control:                 ; @ar9003_hw_ani_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_ath9k_hw_common
	mov	x19, x0
	ldr	w8, [x20]
	and	w8, w8, w22
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.1:
	ldr	x24, [x20, #136]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x21, w21
Lloh2:
	adrp	x23, _cycpwrThr1_table@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cycpwrThr1_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x0, x21
	b.ls	LBB0_20
; %bb.3:
	ldr	x8, [x23]
	lsl	x26, x21, #2
	ldr	w9, [x8, x26]
Lloh4:
	adrp	x25, _ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ATH9K_ANI_SPUR_IMMUNE_LVL@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	w8, [x8, x10, lsl #2]
	ldr	w10, [x20, #128]
	sub	w8, w9, w8
	add	w8, w8, w10
Lloh6:
	adrp	x27, _ATH9K_SIG_SPUR_IMM_SETTING_MIN@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ATH9K_SIG_SPUR_IMM_SETTING_MIN@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w8, w9
	csel	w8, w8, w9, gt
Lloh8:
	adrp	x28, _ATH9K_SIG_SPUR_IMM_SETTING_MAX@GOTPAGE
Lloh9:
	ldr	x28, [x28, _ATH9K_SIG_SPUR_IMM_SETTING_MAX@GOTPAGEOFF]
	ldr	w9, [x28]
	cmp	w8, w9
	csel	w22, w8, w9, lt
Lloh10:
	adrp	x8, _AR_PHY_TIMING5@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_PHY_TIMING5@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _AR_PHY_TIMING5_CYCPWR_THR1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_PHY_TIMING5_CYCPWR_THR1@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
	ldr	x8, [x23]
	ldr	w9, [x8, x26]
	ldr	x10, [x25]
	ldr	w8, [x8, x10, lsl #2]
	ldr	w10, [x20, #132]
	sub	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x27]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	ldr	w9, [x28]
	cmp	w8, w9
	csel	w23, w8, w9, lt
Lloh16:
	adrp	x8, _AR_PHY_EXT_CCA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_PHY_EXT_CCA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _AR_PHY_EXT_CYCPWR_THR1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_PHY_EXT_CYCPWR_THR1@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x23
	bl	_REG_RMW_FIELD
	ldr	x8, [x20, #56]
	cmp	x8, x21
	b.eq	LBB0_34
; %bb.4:
Lloh22:
	adrp	x26, _ANI@GOTPAGE
Lloh23:
	ldr	x26, [x26, _ANI@GOTPAGEOFF]
	ldr	w1, [x26]
	ldrsw	x3, [x24]
	ldr	x9, [x25]
	ldr	w10, [x20, #128]
	stp	x22, x10, [sp, #24]
	stp	x21, x9, [sp, #8]
	str	x8, [sp]
Lloh24:
	adrp	x2, l_.str.7@PAGE
Lloh25:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	ldr	w1, [x26]
	ldrsw	x3, [x24]
	ldr	x8, [x20, #56]
	ldr	x9, [x25]
	ldr	w10, [x20, #132]
	stp	x23, x10, [sp, #24]
	stp	x21, x9, [sp, #8]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.8@PAGE
Lloh27:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	ldr	x8, [x20, #56]
	cmp	x8, x21
	b.hs	LBB0_26
; %bb.5:
	add	x8, x20, #16
	b	LBB0_28
LBB0_6:
	cmp	w21, #0
	cset	w22, ne
	ldr	w8, [x20, #36]
	cmp	w8, #1
	b.eq	LBB0_34
; %bb.7:
Lloh28:
	adrp	x23, _AR_PHY_MRC_CCK_CTRL@GOTPAGE
Lloh29:
	ldr	x23, [x23, _AR_PHY_MRC_CCK_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh30:
	adrp	x8, _AR_PHY_MRC_CCK_ENABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_PHY_MRC_CCK_ENABLE@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
	ldr	w1, [x23]
Lloh33:
	adrp	x8, _AR_PHY_MRC_CCK_MUX_REG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_PHY_MRC_CCK_MUX_REG@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
	ldr	w8, [x20, #64]
	cmp	w8, w22
	b.eq	LBB0_34
; %bb.8:
Lloh36:
	adrp	x9, _ANI@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ANI@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	ldrsw	x3, [x24]
Lloh39:
	adrp	x9, l_.str.1@PAGE
Lloh40:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh41:
	adrp	x10, l_.str.2@PAGE
Lloh42:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	cmp	w21, #0
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh43:
	adrp	x2, l_.str.9@PAGE
Lloh44:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	w8, #8
	mov	w9, #4
	csel	x21, x9, x8, eq
	mov	x0, x19
	bl	_ath_dbg
	ldr	w8, [x20, x21]
	add	w8, w8, #1
	str	w8, [x20, x21]
	str	w22, [x20, #64]
	b	LBB0_34
LBB0_9:
	sxtw	x21, w21
Lloh45:
	adrp	x23, _firstep_table@GOTPAGE
Lloh46:
	ldr	x23, [x23, _firstep_table@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x0, x21
	b.ls	LBB0_19
; %bb.10:
	ldr	x8, [x23]
	lsl	x26, x21, #2
	ldr	w9, [x8, x26]
Lloh47:
	adrp	x25, _ATH9K_ANI_FIRSTEP_LVL@GOTPAGE
Lloh48:
	ldr	x25, [x25, _ATH9K_ANI_FIRSTEP_LVL@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	w8, [x8, x10, lsl #2]
	ldr	w10, [x20, #120]
	sub	w8, w9, w8
	add	w8, w8, w10
Lloh49:
	adrp	x27, _ATH9K_SIG_FIRSTEP_SETTING_MIN@GOTPAGE
Lloh50:
	ldr	x27, [x27, _ATH9K_SIG_FIRSTEP_SETTING_MIN@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w8, w9
	csel	w8, w8, w9, gt
Lloh51:
	adrp	x28, _ATH9K_SIG_FIRSTEP_SETTING_MAX@GOTPAGE
Lloh52:
	ldr	x28, [x28, _ATH9K_SIG_FIRSTEP_SETTING_MAX@GOTPAGEOFF]
	ldr	w9, [x28]
	cmp	w8, w9
	csel	w22, w8, w9, lt
Lloh53:
	adrp	x8, _AR_PHY_FIND_SIG@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AR_PHY_FIND_SIG@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x8, _AR_PHY_FIND_SIG_FIRSTEP@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AR_PHY_FIND_SIG_FIRSTEP@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
	ldr	x8, [x23]
	ldr	w9, [x8, x26]
	ldr	x10, [x25]
	ldr	w8, [x8, x10, lsl #2]
	ldr	w10, [x20, #124]
	sub	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x27]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	ldr	w9, [x28]
	cmp	w8, w9
	csel	w23, w8, w9, lt
Lloh59:
	adrp	x8, _AR_PHY_FIND_SIG_LOW@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AR_PHY_FIND_SIG_LOW@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x8, _AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW@GOTPAGE
Lloh63:
	ldr	x8, [x8, _AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x23
	bl	_REG_RMW_FIELD
	ldr	x8, [x20, #48]
	cmp	x8, x21
	b.eq	LBB0_34
; %bb.11:
Lloh65:
	adrp	x26, _ANI@GOTPAGE
Lloh66:
	ldr	x26, [x26, _ANI@GOTPAGEOFF]
	ldr	w1, [x26]
	ldrsw	x3, [x24]
	ldr	x9, [x25]
	ldr	w10, [x20, #120]
	stp	x22, x10, [sp, #24]
	stp	x21, x9, [sp, #8]
	str	x8, [sp]
Lloh67:
	adrp	x2, l_.str.4@PAGE
Lloh68:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	ldr	w1, [x26]
	ldrsw	x3, [x24]
	ldr	x8, [x20, #48]
	ldr	x9, [x25]
	ldr	w10, [x20, #124]
	stp	x23, x10, [sp, #24]
	stp	x21, x9, [sp, #8]
	str	x8, [sp]
Lloh69:
	adrp	x2, l_.str.5@PAGE
Lloh70:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	ldr	x8, [x20, #48]
	cmp	x8, x21
	b.hs	LBB0_30
; %bb.12:
	add	x8, x20, #24
	b	LBB0_32
LBB0_13:
Lloh71:
	adrp	x8, _ANI@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ANI@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	mov	w3, w22
Lloh74:
	adrp	x2, l_.str.10@PAGE
Lloh75:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	b	LBB0_22
LBB0_14:
	cmp	w21, #0
	cset	w25, ne
	mov	x0, x20
	bl	_AR_SREV_9462
Lloh76:
	adrp	x26, _AR_PHY_SFCORR_LOW@GOTPAGE
Lloh77:
	ldr	x26, [x26, _AR_PHY_SFCORR_LOW@GOTPAGEOFF]
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_AR_SREV_9565
	cbnz	w0, LBB0_17
; %bb.16:
Lloh78:
	adrp	x8, _m1ThreshLow_off@GOTPAGE
Lloh79:
	ldr	x8, [x8, _m1ThreshLow_off@GOTPAGEOFF]
	add	x9, x20, #80
Lloh80:
	adrp	x10, _m2ThreshLow_off@GOTPAGE
Lloh81:
	ldr	x10, [x10, _m2ThreshLow_off@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	add	x8, x20, #84
	csel	x8, x10, x8, eq
	ldr	w22, [x8]
Lloh82:
	adrp	x8, _m1Thresh_off@GOTPAGE
Lloh83:
	ldr	x8, [x8, _m1Thresh_off@GOTPAGEOFF]
	add	x9, x20, #88
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
	add	x8, x20, #92
Lloh84:
	adrp	x9, _m2Thresh_off@GOTPAGE
Lloh85:
	ldr	x9, [x9, _m2Thresh_off@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w28, [x8]
	add	x8, x20, #96
Lloh86:
	adrp	x9, _m2CountThr_off@GOTPAGE
Lloh87:
	ldr	x9, [x9, _m2CountThr_off@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w27, [x8]
	add	x8, x20, #100
Lloh88:
	adrp	x9, _m2CountThrLow_off@GOTPAGE
Lloh89:
	ldr	x9, [x9, _m2CountThrLow_off@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	add	x8, x20, #104
Lloh90:
	adrp	x9, _m1ThreshLowExt_off@GOTPAGE
Lloh91:
	ldr	x9, [x9, _m1ThreshLowExt_off@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	add	x8, x20, #108
Lloh92:
	adrp	x9, _m2ThreshLowExt_off@GOTPAGE
Lloh93:
	ldr	x9, [x9, _m2ThreshLowExt_off@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
Lloh94:
	adrp	x8, _m1ThreshExt_off@GOTPAGE
Lloh95:
	ldr	x8, [x8, _m1ThreshExt_off@GOTPAGEOFF]
	add	x9, x20, #112
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	add	x8, x20, #116
Lloh96:
	adrp	x9, _m2ThreshExt_off@GOTPAGE
Lloh97:
	ldr	x9, [x9, _m2ThreshExt_off@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w1, [x26]
Lloh98:
	adrp	x8, _AR_PHY_SFCORR_LOW_M1_THRESH_LOW@GOTPAGE
Lloh99:
	ldr	x8, [x8, _AR_PHY_SFCORR_LOW_M1_THRESH_LOW@GOTPAGEOFF]
Lloh100:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_RMW_FIELD
	ldr	w1, [x26]
Lloh101:
	adrp	x8, _AR_PHY_SFCORR_LOW_M2_THRESH_LOW@GOTPAGE
Lloh102:
	ldr	x8, [x8, _AR_PHY_SFCORR_LOW_M2_THRESH_LOW@GOTPAGEOFF]
Lloh103:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_REG_RMW_FIELD
Lloh104:
	adrp	x22, _AR_PHY_SFCORR@GOTPAGE
Lloh105:
	ldr	x22, [x22, _AR_PHY_SFCORR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh106:
	adrp	x8, _AR_PHY_SFCORR_M1_THRESH@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AR_PHY_SFCORR_M1_THRESH@GOTPAGEOFF]
Lloh108:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x23
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh109:
	adrp	x8, _AR_PHY_SFCORR_M2_THRESH@GOTPAGE
Lloh110:
	ldr	x8, [x8, _AR_PHY_SFCORR_M2_THRESH@GOTPAGEOFF]
Lloh111:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x28
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh112:
	adrp	x8, _AR_PHY_SFCORR_M2COUNT_THR@GOTPAGE
Lloh113:
	ldr	x8, [x8, _AR_PHY_SFCORR_M2COUNT_THR@GOTPAGEOFF]
Lloh114:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x27
	bl	_REG_RMW_FIELD
	ldr	w1, [x26]
Lloh115:
	adrp	x8, _AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW@GOTPAGE
Lloh116:
	ldr	x8, [x8, _AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW@GOTPAGEOFF]
Lloh117:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	w3, [sp, #60]                   ; 4-byte Folded Reload
	bl	_REG_RMW_FIELD
Lloh118:
	adrp	x22, _AR_PHY_SFCORR_EXT@GOTPAGE
Lloh119:
	ldr	x22, [x22, _AR_PHY_SFCORR_EXT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh120:
	adrp	x8, _AR_PHY_SFCORR_EXT_M1_THRESH_LOW@GOTPAGE
Lloh121:
	ldr	x8, [x8, _AR_PHY_SFCORR_EXT_M1_THRESH_LOW@GOTPAGEOFF]
Lloh122:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	w3, [sp, #64]                   ; 4-byte Folded Reload
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh123:
	adrp	x8, _AR_PHY_SFCORR_EXT_M2_THRESH_LOW@GOTPAGE
Lloh124:
	ldr	x8, [x8, _AR_PHY_SFCORR_EXT_M2_THRESH_LOW@GOTPAGEOFF]
Lloh125:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	w3, [sp, #68]                   ; 4-byte Folded Reload
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh126:
	adrp	x8, _AR_PHY_SFCORR_EXT_M1_THRESH@GOTPAGE
Lloh127:
	ldr	x8, [x8, _AR_PHY_SFCORR_EXT_M1_THRESH@GOTPAGEOFF]
Lloh128:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	w3, [sp, #72]                   ; 4-byte Folded Reload
	bl	_REG_RMW_FIELD
	ldr	w1, [x22]
Lloh129:
	adrp	x8, _AR_PHY_SFCORR_EXT_M2_THRESH@GOTPAGE
Lloh130:
	ldr	x8, [x8, _AR_PHY_SFCORR_EXT_M2_THRESH@GOTPAGEOFF]
Lloh131:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	w3, [sp, #76]                   ; 4-byte Folded Reload
	bl	_REG_RMW_FIELD
LBB0_17:
	ldr	w1, [x26]
Lloh132:
	adrp	x8, _AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW@GOTPAGE
Lloh133:
	ldr	x8, [x8, _AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW@GOTPAGEOFF]
Lloh134:
	ldr	w2, [x8]
	mov	x0, x20
	cbz	w21, LBB0_23
; %bb.18:
	bl	_REG_SET_BIT
	b	LBB0_24
LBB0_19:
Lloh135:
	adrp	x8, _ANI@GOTPAGE
Lloh136:
	ldr	x8, [x8, _ANI@GOTPAGEOFF]
Lloh137:
	ldr	w20, [x8]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	str	x0, [sp]
Lloh138:
	adrp	x2, l_.str.3@PAGE
Lloh139:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh140:
	adrp	x8, _ANI@GOTPAGE
Lloh141:
	ldr	x8, [x8, _ANI@GOTPAGEOFF]
Lloh142:
	ldr	w20, [x8]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	str	x0, [sp]
Lloh143:
	adrp	x2, l_.str.6@PAGE
Lloh144:
	add	x2, x2, l_.str.6@PAGEOFF
LBB0_21:
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
LBB0_22:
	bl	_ath_dbg
	mov	w0, #0
	b	LBB0_35
LBB0_23:
	bl	_REG_CLR_BIT
LBB0_24:
	ldr	x8, [x20, #40]
	cmp	x8, x25
	b.eq	LBB0_34
; %bb.25:
Lloh145:
	adrp	x9, _ANI@GOTPAGE
Lloh146:
	ldr	x9, [x9, _ANI@GOTPAGEOFF]
Lloh147:
	ldr	w1, [x9]
	ldrsw	x3, [x24]
Lloh148:
	adrp	x9, l_.str.1@PAGE
Lloh149:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh150:
	adrp	x10, l_.str.2@PAGE
Lloh151:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	cmp	w21, #0
	csel	x9, x10, x9, eq
	stp	x8, x9, [sp]
Lloh152:
	adrp	x2, l_.str@PAGE
Lloh153:
	add	x2, x2, l_.str@PAGEOFF
	mov	w8, #32
	mov	w9, #28
	csel	x21, x9, x8, eq
	mov	x0, x19
	bl	_ath_dbg
	ldr	w8, [x20, x21]
	add	w8, w8, #1
	str	w8, [x20, x21]
	str	x25, [x20, #40]
	b	LBB0_34
LBB0_26:
	b.ls	LBB0_29
; %bb.27:
	add	x8, x20, #12
LBB0_28:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_29:
	str	x21, [x20, #56]
	b	LBB0_34
LBB0_30:
	b.ls	LBB0_33
; %bb.31:
	add	x8, x20, #20
LBB0_32:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_33:
	str	x21, [x20, #48]
LBB0_34:
Lloh154:
	adrp	x8, _ANI@GOTPAGE
Lloh155:
	ldr	x8, [x8, _ANI@GOTPAGEOFF]
Lloh156:
	adrp	x9, l_.str.1@PAGE
Lloh157:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh158:
	adrp	x10, l_.str.2@PAGE
Lloh159:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh160:
	ldr	w1, [x8]
	ldp	x8, x11, [x20, #40]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldp	w12, w13, [x20, #64]
	cmp	w12, #0
	ldr	x3, [x20, #56]
	csel	x9, x10, x9, eq
	ldp	w12, w10, [x20, #72]
	stp	x12, x13, [sp, #32]
	stp	x9, x10, [sp, #16]
	stp	x8, x11, [sp]
Lloh161:
	adrp	x2, l_.str.11@PAGE
Lloh162:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_ath_dbg
	mov	w0, #1
LBB0_35:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh82, Lloh83
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpAdd	Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpAdd	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpAdd	Lloh152, Lloh153
	.loh AdrpAdd	Lloh150, Lloh151
	.loh AdrpAdd	Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpAdd	Lloh161, Lloh162
	.loh AdrpAdd	Lloh158, Lloh159
	.loh AdrpAdd	Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh160
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_m1ThreshLow_off,4,2            ; @m1ThreshLow_off
	.comm	_m2ThreshLow_off,4,2            ; @m2ThreshLow_off
	.comm	_m1Thresh_off,4,2               ; @m1Thresh_off
	.comm	_m2Thresh_off,4,2               ; @m2Thresh_off
	.comm	_m2CountThr_off,4,2             ; @m2CountThr_off
	.comm	_m2CountThrLow_off,4,2          ; @m2CountThrLow_off
	.comm	_m1ThreshLowExt_off,4,2         ; @m1ThreshLowExt_off
	.comm	_m2ThreshLowExt_off,4,2         ; @m2ThreshLowExt_off
	.comm	_m1ThreshExt_off,4,2            ; @m1ThreshExt_off
	.comm	_m2ThreshExt_off,4,2            ; @m2ThreshExt_off
	.comm	_AR_PHY_SFCORR_LOW,4,2          ; @AR_PHY_SFCORR_LOW
	.comm	_AR_PHY_SFCORR_LOW_M1_THRESH_LOW,4,2 ; @AR_PHY_SFCORR_LOW_M1_THRESH_LOW
	.comm	_AR_PHY_SFCORR_LOW_M2_THRESH_LOW,4,2 ; @AR_PHY_SFCORR_LOW_M2_THRESH_LOW
	.comm	_AR_PHY_SFCORR,4,2              ; @AR_PHY_SFCORR
	.comm	_AR_PHY_SFCORR_M1_THRESH,4,2    ; @AR_PHY_SFCORR_M1_THRESH
	.comm	_AR_PHY_SFCORR_M2_THRESH,4,2    ; @AR_PHY_SFCORR_M2_THRESH
	.comm	_AR_PHY_SFCORR_M2COUNT_THR,4,2  ; @AR_PHY_SFCORR_M2COUNT_THR
	.comm	_AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW,4,2 ; @AR_PHY_SFCORR_LOW_M2COUNT_THR_LOW
	.comm	_AR_PHY_SFCORR_EXT,4,2          ; @AR_PHY_SFCORR_EXT
	.comm	_AR_PHY_SFCORR_EXT_M1_THRESH_LOW,4,2 ; @AR_PHY_SFCORR_EXT_M1_THRESH_LOW
	.comm	_AR_PHY_SFCORR_EXT_M2_THRESH_LOW,4,2 ; @AR_PHY_SFCORR_EXT_M2_THRESH_LOW
	.comm	_AR_PHY_SFCORR_EXT_M1_THRESH,4,2 ; @AR_PHY_SFCORR_EXT_M1_THRESH
	.comm	_AR_PHY_SFCORR_EXT_M2_THRESH,4,2 ; @AR_PHY_SFCORR_EXT_M2_THRESH
	.comm	_AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW,4,2 ; @AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW
	.comm	_ANI,4,2                        ; @ANI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"** ch %d: ofdm weak signal: %s=>%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"on"

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

	.comm	_firstep_table,8,3              ; @firstep_table
l_.str.3:                               ; @.str.3
	.asciz	"ATH9K_ANI_FIRSTEP_LEVEL: level out of range (%u > %zu)\n"

	.comm	_ATH9K_ANI_FIRSTEP_LVL,8,3      ; @ATH9K_ANI_FIRSTEP_LVL
	.comm	_ATH9K_SIG_FIRSTEP_SETTING_MIN,4,2 ; @ATH9K_SIG_FIRSTEP_SETTING_MIN
	.comm	_ATH9K_SIG_FIRSTEP_SETTING_MAX,4,2 ; @ATH9K_SIG_FIRSTEP_SETTING_MAX
	.comm	_AR_PHY_FIND_SIG,4,2            ; @AR_PHY_FIND_SIG
	.comm	_AR_PHY_FIND_SIG_FIRSTEP,4,2    ; @AR_PHY_FIND_SIG_FIRSTEP
	.comm	_AR_PHY_FIND_SIG_LOW,4,2        ; @AR_PHY_FIND_SIG_LOW
	.comm	_AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW,4,2 ; @AR_PHY_FIND_SIG_LOW_FIRSTEP_LOW
l_.str.4:                               ; @.str.4
	.asciz	"** ch %d: level %d=>%d[def:%d] firstep[level]=%d ini=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"** ch %d: level %d=>%d[def:%d] firstep_low[level]=%d ini=%d\n"

	.comm	_cycpwrThr1_table,8,3           ; @cycpwrThr1_table
l_.str.6:                               ; @.str.6
	.asciz	"ATH9K_ANI_SPUR_IMMUNITY_LEVEL: level out of range (%u > %zu)\n"

	.comm	_ATH9K_ANI_SPUR_IMMUNE_LVL,8,3  ; @ATH9K_ANI_SPUR_IMMUNE_LVL
	.comm	_ATH9K_SIG_SPUR_IMM_SETTING_MIN,4,2 ; @ATH9K_SIG_SPUR_IMM_SETTING_MIN
	.comm	_ATH9K_SIG_SPUR_IMM_SETTING_MAX,4,2 ; @ATH9K_SIG_SPUR_IMM_SETTING_MAX
	.comm	_AR_PHY_TIMING5,4,2             ; @AR_PHY_TIMING5
	.comm	_AR_PHY_TIMING5_CYCPWR_THR1,4,2 ; @AR_PHY_TIMING5_CYCPWR_THR1
	.comm	_AR_PHY_EXT_CCA,4,2             ; @AR_PHY_EXT_CCA
	.comm	_AR_PHY_EXT_CYCPWR_THR1,4,2     ; @AR_PHY_EXT_CYCPWR_THR1
l_.str.7:                               ; @.str.7
	.asciz	"** ch %d: level %d=>%d[def:%d] cycpwrThr1[level]=%d ini=%d\n"

l_.str.8:                               ; @.str.8
	.asciz	"** ch %d: level %d=>%d[def:%d] cycpwrThr1Ext[level]=%d ini=%d\n"

	.comm	_AR_PHY_MRC_CCK_CTRL,4,2        ; @AR_PHY_MRC_CCK_CTRL
	.comm	_AR_PHY_MRC_CCK_ENABLE,4,2      ; @AR_PHY_MRC_CCK_ENABLE
	.comm	_AR_PHY_MRC_CCK_MUX_REG,4,2     ; @AR_PHY_MRC_CCK_MUX_REG
l_.str.9:                               ; @.str.9
	.asciz	"** ch %d: MRC CCK: %s=>%s\n"

l_.str.10:                              ; @.str.10
	.asciz	"invalid cmd %u\n"

l_.str.11:                              ; @.str.11
	.asciz	"ANI parameters: SI=%d, ofdmWS=%s FS=%d MRCcck=%s listenTime=%d ofdmErrs=%d cckErrs=%d\n"

	.no_dead_strip	_ar9003_hw_ani_control
.subsections_via_symbols
