	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_dynamic_osdac_selection
_ar9003_hw_dynamic_osdac_selection:     ## @ar9003_hw_dynamic_osdac_selection
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	_AR_PHY_AGC_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_TX_IQCAL_CONTROL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movl	(%rbx), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_REG_READ
	movq	_AR_PHY_AGC_CONTROL_CAL@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movl	(%rbx), %esi
	movl	(%r15), %edx
	movq	_AH_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	_AR_PHY_AGC_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_SET_BIT
	movq	_AR_PHY_CL_CAL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_CL_CAL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movl	(%rbx), %esi
	movq	_AR_PHY_AGC_CONTROL_FLTR_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movl	(%rbx), %esi
	movq	_AR_PHY_AGC_CONTROL_PKDET_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AR_PHY_65NM_CH0_BB1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_AR_PHY_65NM_CH1_BB1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_AR_PHY_65NM_CH2_BB1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_AR_PHY_ACTIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_REG_SET_BIT
	movq	_AR_PHY_AGC_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_REG_READ
	movq	_AR_PHY_AGC_CONTROL_CAL@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movl	(%r15), %esi
	movl	(%r14), %edx
	movq	_AH_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_ath9k_hw_wait
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_65NM_CH0_BB3@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r14, %r12
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$-769, %eax                     ## imm = 0xFCFF
	leal	256(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movq	_AR_PHY_65NM_CH1_BB3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$-769, %eax                     ## imm = 0xFCFF
	leal	256(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movq	_AR_PHY_65NM_CH2_BB3@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$-769, %eax                     ## imm = 0xFCFF
	leal	256(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	shrl	$26, %eax
	andl	$31, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	shrl	$26, %eax
	andl	$31, %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	shrl	$26, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	(%r12), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$-769, %eax                     ## imm = 0xFCFF
	leal	512(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movl	(%r15), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$-769, %eax                     ## imm = 0xFCFF
	leal	512(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movl	(%r14), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
                                        ## kill: def $eax killed $eax def $rax
	andl	$-769, %eax                     ## imm = 0xFCFF
	leal	512(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	movq	%r12, %r14
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, %r15d
	movq	_AR_PHY_65NM_CH1_BB3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_AR_PHY_65NM_CH2_BB3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	orl	$768, %eax                      ## imm = 0x300
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movl	(%r12), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	orl	$768, %eax                      ## imm = 0x300
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movq	_AR_PHY_65NM_CH2_BB3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	orl	$768, %eax                      ## imm = 0x300
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, %r14d
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_AR_PHY_65NM_CH2_BB3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_OFF_UPPER_LT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	cmpl	%r10d, %ecx
	jle	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	$-1073741825, %r15d             ## imm = 0xBFFFFFFF
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %r12
	jbe	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r9d
	shrl	$21, %r9d
	andl	$31, %r9d
	shrl	$26, %r14d
	andl	$31, %r14d
	movl	%r15d, %edx
	shrl	$21, %edx
	andl	$31, %edx
	shrl	$26, %r15d
	andl	$31, %r15d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	shrl	$21, %edi
	andl	$31, %edi
	movq	_OFF_LOWER_LT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %ecx
	setge	%cl
	cmpl	%r10d, %r15d
	setle	%bl
	andb	%cl, %bl
	cmpl	%esi, %r15d
	setge	%r8b
	cmpl	%r10d, %r14d
	setle	%cl
	andb	%r8b, %cl
	andb	%bl, %cl
	cmpl	%esi, %r14d
	setge	%r8b
	cmpl	%r10d, %edi
	setle	%bl
	andb	%r8b, %bl
	cmpl	%esi, %edi
	setge	%al
	andb	%bl, %al
	andb	%cl, %al
	cmpl	%r10d, %edx
	setle	%cl
	cmpl	%esi, %edx
	setge	%dl
	andb	%cl, %dl
	cmpl	%r10d, %r9d
	setle	%cl
	andb	%dl, %cl
	andb	%al, %cl
	cmpl	%esi, %r9d
	setge	%al
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	testb	%al, %cl
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	$-1073741825, %r15d             ## imm = 0xBFFFFFFF
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %r12
	ja	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_65NM_CH0_BB1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	andl	$1073741823, %eax               ## imm = 0x3FFFFFFF
	addl	$1073741824, %r15d              ## imm = 0x40000000
	andl	$-1073741824, %r15d             ## imm = 0xC0000000
	orl	%eax, %r15d
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_REG_WRITE
	movq	_OFF_UPPER_LT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	andl	$31, %r8d
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%r10d, %ebx
	jle	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	cmpl	$-1073741825, %r14d             ## imm = 0xBFFFFFFF
	movq	%r12, %rbx
	jbe	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	cmpl	%r10d, %r8d
	jg	LBB0_22
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	shrl	$21, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	shrl	$26, %eax
	shrl	$21, %esi
	movl	-60(%rbp), %r11d                ## 4-byte Reload
	movl	%r11d, %edx
	shrl	$26, %edx
	shrl	$21, %r11d
	andl	$31, %edi
	andl	$31, %eax
	andl	$31, %esi
	andl	$31, %edx
	andl	$31, %r11d
	movq	_OFF_LOWER_LT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	setge	%r9b
	cmpl	%r10d, %eax
	setle	%bl
	andb	%r9b, %bl
	cmpl	%ecx, %eax
	setge	%r9b
	cmpl	%r10d, %edx
	setle	%al
	andb	%r9b, %al
	andb	%bl, %al
	cmpl	%ecx, %edx
	setge	%dl
	cmpl	%r10d, %edi
	setle	%bl
	andb	%dl, %bl
	cmpl	%ecx, %edi
	setge	%dl
	andb	%bl, %dl
	andb	%al, %dl
	cmpl	%r10d, %esi
	setle	%al
	cmpl	%ecx, %esi
	setge	%bl
	andb	%al, %bl
	cmpl	%r10d, %r11d
	setle	%al
	andb	%bl, %al
	andb	%dl, %al
	cmpl	%ecx, %r11d
	setge	%cl
	xorl	%r12d, %r12d
	testb	%cl, %al
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1073741825, %r14d             ## imm = 0xBFFFFFFF
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %rbx
	ja	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_65NM_CH1_BB1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%r8d, %r12d
	callq	_REG_READ
	andl	$1073741823, %eax               ## imm = 0x3FFFFFFF
	addl	$1073741824, %r14d              ## imm = 0x40000000
	andl	$-1073741824, %r14d             ## imm = 0xC0000000
	orl	%eax, %r14d
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_REG_WRITE
	movl	%r12d, %r8d
	movq	_OFF_UPPER_LT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movb	$1, %r12b
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r10d, %r8d
	jle	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpl	$-1073741825, %r14d             ## imm = 0xBFFFFFFF
	jbe	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	testb	%cl, %cl
	je	LBB0_27
	jmp	LBB0_3
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %rbx
	cmpl	%r10d, %r8d
	jg	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	shrl	$21, %esi
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	shrl	$26, %eax
	shrl	$21, %edi
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	movl	%r9d, %edx
	shrl	$26, %edx
	shrl	$21, %r9d
	andl	$31, %esi
	andl	$31, %eax
	andl	$31, %edi
	andl	$31, %edx
	andl	$31, %r9d
	movq	_OFF_LOWER_LT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r8d
	setge	%r8b
	cmpl	%r10d, %eax
	setle	%bl
	andb	%r8b, %bl
	cmpl	%ecx, %eax
	setge	%r8b
	cmpl	%r10d, %edx
	setle	%al
	andb	%r8b, %al
	andb	%bl, %al
	cmpl	%ecx, %edx
	setge	%dl
	cmpl	%r10d, %esi
	setle	%bl
	andb	%dl, %bl
	cmpl	%ecx, %esi
	setge	%dl
	andb	%bl, %dl
	andb	%al, %dl
	cmpl	%r10d, %edi
	setle	%al
	cmpl	%ecx, %edi
	setge	%bl
	andb	%al, %bl
	cmpl	%r10d, %r9d
	setle	%al
	andb	%bl, %al
	andb	%dl, %al
	cmpl	%ecx, %r9d
	setge	%dl
	xorl	%ecx, %ecx
	testb	%dl, %al
	jne	LBB0_21
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpl	$-1073741825, %r14d             ## imm = 0xBFFFFFFF
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %rbx
	ja	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_65NM_CH2_BB1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_REG_READ
	andl	$1073741823, %eax               ## imm = 0x3FFFFFFF
	addl	$1073741824, %r14d              ## imm = 0x40000000
	andl	$-1073741824, %r14d             ## imm = 0xC0000000
	orl	%eax, %r14d
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_REG_WRITE
	movb	$1, %cl
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	jne	LBB0_3
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	orb	-44(%rbp), %r12b                ## 1-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_28
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_AR_PHY_ACTIVE_EN@GOTPCREL(%rip), %rbx
	testb	%cl, %cl
	je	LBB0_27
	jmp	LBB0_3
LBB0_1:
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_ath_dbg
	jmp	LBB0_29
LBB0_4:
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_ath_dbg
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_28:
	movq	_AR_PHY_AGC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PHY_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_REG_SET_BIT
	movq	_AR_PHY_TX_IQCAL_CONTROL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_REG_SET_BIT
	movl	$1, %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_AGC_CONTROL,4,2         ## @AR_PHY_AGC_CONTROL
	.comm	_AR_PHY_AGC_CONTROL_OFFSET_CAL,4,2 ## @AR_PHY_AGC_CONTROL_OFFSET_CAL
	.comm	_AR_PHY_TX_IQCAL_CONTROL_0,4,2  ## @AR_PHY_TX_IQCAL_CONTROL_0
	.comm	_AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL,4,2 ## @AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL
	.comm	_AR_PHY_AGC_CONTROL_CAL,4,2     ## @AR_PHY_AGC_CONTROL_CAL
	.comm	_AH_WAIT_TIMEOUT,4,2            ## @AH_WAIT_TIMEOUT
	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AGC cal without offset cal failed to complete in 1ms"

	.comm	_AR_PHY_CL_CAL_CTL,4,2          ## @AR_PHY_CL_CAL_CTL
	.comm	_AR_PHY_CL_CAL_ENABLE,4,2       ## @AR_PHY_CL_CAL_ENABLE
	.comm	_AR_PHY_AGC_CONTROL_FLTR_CAL,4,2 ## @AR_PHY_AGC_CONTROL_FLTR_CAL
	.comm	_AR_PHY_AGC_CONTROL_PKDET_CAL,4,2 ## @AR_PHY_AGC_CONTROL_PKDET_CAL
	.comm	_AR_PHY_65NM_CH0_BB1,4,2        ## @AR_PHY_65NM_CH0_BB1
	.comm	_AR_PHY_65NM_CH1_BB1,4,2        ## @AR_PHY_65NM_CH1_BB1
	.comm	_AR_PHY_65NM_CH2_BB1,4,2        ## @AR_PHY_65NM_CH2_BB1
	.comm	_AR_PHY_ACTIVE,4,2              ## @AR_PHY_ACTIVE
	.comm	_AR_PHY_ACTIVE_EN,4,2           ## @AR_PHY_ACTIVE_EN
L_.str.1:                               ## @.str.1
	.asciz	"DC offset cal failed to complete in 1ms"

	.comm	_AR_PHY_65NM_CH0_BB3,4,2        ## @AR_PHY_65NM_CH0_BB3
	.comm	_AR_PHY_65NM_CH1_BB3,4,2        ## @AR_PHY_65NM_CH1_BB3
	.comm	_AR_PHY_65NM_CH2_BB3,4,2        ## @AR_PHY_65NM_CH2_BB3
	.comm	_OFF_UPPER_LT,4,2               ## @OFF_UPPER_LT
	.comm	_OFF_LOWER_LT,4,2               ## @OFF_LOWER_LT
	.no_dead_strip	_ar9003_hw_dynamic_osdac_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_dynamic_osdac_selection
_ar9003_hw_dynamic_osdac_selection:     ; @ar9003_hw_dynamic_osdac_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	bl	_ath9k_hw_common
	mov	x21, x0
Lloh0:
	adrp	x24, _AR_PHY_AGC_CONTROL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AR_PHY_AGC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x22, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_REG_CLR_BIT
Lloh4:
	adrp	x8, _AR_PHY_TX_IQCAL_CONTROL_0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CONTROL_0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w20, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
Lloh10:
	adrp	x23, _AR_PHY_AGC_CONTROL_CAL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _AR_PHY_AGC_CONTROL_CAL@GOTPAGEOFF]
	ldr	w8, [x23]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh12:
	adrp	x8, _AH_WAIT_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AH_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_26
; %bb.1:
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldr	w1, [x24]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_REG_SET_BIT
Lloh15:
	adrp	x8, _AR_PHY_CL_CAL_CTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_PHY_CL_CAL_CTL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AR_PHY_CL_CAL_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_PHY_CL_CAL_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x24]
Lloh21:
	adrp	x8, _AR_PHY_AGC_CONTROL_FLTR_CAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL_FLTR_CAL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x24]
Lloh24:
	adrp	x8, _AR_PHY_AGC_CONTROL_PKDET_CAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_PHY_AGC_CONTROL_PKDET_CAL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
Lloh27:
	adrp	x26, _AR_PHY_ACTIVE@GOTPAGE
Lloh28:
	ldr	x26, [x26, _AR_PHY_ACTIVE@GOTPAGEOFF]
Lloh29:
	adrp	x27, _AR_PHY_ACTIVE_EN@GOTPAGE
Lloh30:
	ldr	x27, [x27, _AR_PHY_ACTIVE_EN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh31:
	adrp	x8, _AR_PHY_65NM_CH0_BB1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AR_PHY_65NM_CH0_BB1@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	mov	x23, x0
Lloh34:
	adrp	x8, _AR_PHY_65NM_CH1_BB1@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR_PHY_65NM_CH1_BB1@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	mov	x25, x0
Lloh37:
	adrp	x8, _AR_PHY_65NM_CH2_BB1@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AR_PHY_65NM_CH2_BB1@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	mov	x22, x0
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_REG_SET_BIT
	ldr	w20, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
Lloh40:
	adrp	x21, _AR_PHY_AGC_CONTROL_CAL@GOTPAGE
Lloh41:
	ldr	x21, [x21, _AR_PHY_AGC_CONTROL_CAL@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	ldr	w1, [x24]
	ldr	w2, [x21]
Lloh42:
	adrp	x8, _AH_WAIT_TIMEOUT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AH_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh44:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_ath9k_hw_wait
	cbz	w0, LBB0_27
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	w25, w22, [sp, #24]             ; 8-byte Folded Spill
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_REG_CLR_BIT
Lloh45:
	adrp	x24, _AR_PHY_65NM_CH0_BB3@GOTPAGE
Lloh46:
	ldr	x24, [x24, _AR_PHY_65NM_CH0_BB3@GOTPAGEOFF]
	ldr	w20, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
	and	w8, w0, #0xfffffcff
	orr	w2, w8, #0x100
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
Lloh47:
	adrp	x27, _AR_PHY_65NM_CH1_BB3@GOTPAGE
Lloh48:
	ldr	x27, [x27, _AR_PHY_65NM_CH1_BB3@GOTPAGEOFF]
	ldr	w20, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
	and	w8, w0, #0xfffffcff
	orr	w2, w8, #0x100
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
Lloh49:
	adrp	x22, _AR_PHY_65NM_CH2_BB3@GOTPAGE
Lloh50:
	ldr	x22, [x22, _AR_PHY_65NM_CH2_BB3@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
	and	w8, w0, #0xfffffcff
	orr	w2, w8, #0x100
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_READ
	mov	x28, x0
	ubfx	w26, w0, #26, #5
	ldr	w1, [x27]
	mov	x0, x19
	bl	_REG_READ
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w20, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
	and	w8, w0, #0xfffffcff
	orr	w2, w8, #0x200
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	ldr	w20, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
	and	w8, w0, #0xfffffcff
	orr	w2, w8, #0x200
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	ldr	w20, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_READ
	and	w8, w0, #0xfffffcff
	orr	w2, w8, #0x200
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_READ
	mov	x25, x0
	ldr	w1, [x27]
	mov	x0, x19
	bl	_REG_READ
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w21, [x24]
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	orr	w2, w0, #0x300
	mov	x0, x19
	mov	x1, x21
	bl	_REG_WRITE
	ldr	w21, [x27]
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	orr	w2, w0, #0x300
	mov	x0, x19
	mov	x1, x21
	bl	_REG_WRITE
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	orr	w2, w0, #0x300
	mov	x0, x19
	mov	x1, x21
	bl	_REG_WRITE
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_READ
	mov	x21, x0
	ldr	w1, [x27]
	mov	x0, x19
	bl	_REG_READ
	mov	x24, x0
	ldr	w1, [x22]
Lloh51:
	adrp	x22, _OFF_UPPER_LT@GOTPAGE
Lloh52:
	ldr	x22, [x22, _OFF_UPPER_LT@GOTPAGEOFF]
	mov	x0, x19
	bl	_REG_READ
	mov	x27, x0
	ldr	w8, [x22]
	cmp	w26, w8
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w23, #30
	cmp	w9, #2
Lloh53:
	adrp	x25, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGE
Lloh54:
	ldr	x25, [x25, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGEOFF]
Lloh55:
	adrp	x26, _AR_PHY_ACTIVE@GOTPAGE
Lloh56:
	ldr	x26, [x26, _AR_PHY_ACTIVE@GOTPAGEOFF]
	ldr	w28, [sp, #24]                  ; 4-byte Folded Reload
	b.ls	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	ubfx	w9, w21, #21, #5
	ubfx	w10, w21, #26, #5
Lloh57:
	adrp	x11, _OFF_LOWER_LT@GOTPAGE
Lloh58:
	ldr	x11, [x11, _OFF_LOWER_LT@GOTPAGEOFF]
Lloh59:
	ldr	w11, [x11]
	cmp	w26, w11
	ubfx	w12, w25, #21, #5
	ubfx	w13, w25, #26, #5
	ubfx	w14, w28, #21, #5
	ccmp	w13, w8, #0, ge
	ccmp	w13, w11, #8, le
	ccmp	w10, w8, #0, ge
	ccmp	w10, w11, #8, le
	ccmp	w14, w8, #0, ge
	ccmp	w14, w11, #8, le
	ccmp	w12, w8, #0, ge
	ccmp	w12, w11, #8, le
	ccmp	w9, w8, #0, ge
	ccmp	w9, w11, #8, le
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w23, #30
	cmp	w9, #2
Lloh60:
	adrp	x25, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGE
Lloh61:
	ldr	x25, [x25, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGEOFF]
Lloh62:
	adrp	x26, _AR_PHY_ACTIVE@GOTPAGE
Lloh63:
	ldr	x26, [x26, _AR_PHY_ACTIVE@GOTPAGEOFF]
	ldr	w28, [sp, #24]                  ; 4-byte Folded Reload
	b.hi	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh64:
	adrp	x21, _AR_PHY_65NM_CH0_BB1@GOTPAGE
Lloh65:
	ldr	x21, [x21, _AR_PHY_65NM_CH0_BB1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_READ
	mov	w8, #1073741824
	add	w2, w23, w8
	bfxil	w2, w0, #0, #30
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_WRITE
	ldr	w8, [x22]
	mov	w9, #1
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
Lloh66:
	adrp	x25, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGE
Lloh67:
	ldr	x25, [x25, _AR_PHY_AGC_CONTROL_OFFSET_CAL@GOTPAGEOFF]
Lloh68:
	adrp	x26, _AR_PHY_ACTIVE@GOTPAGE
Lloh69:
	ldr	x26, [x26, _AR_PHY_ACTIVE@GOTPAGEOFF]
	ldr	w28, [sp, #24]                  ; 4-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [sp, #16]                  ; 4-byte Folded Reload
	ubfx	w9, w10, #26, #5
	cmp	w9, w8
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w28, #30
	cmp	w9, #2
Lloh70:
	adrp	x24, _AR_PHY_AGC_CONTROL@GOTPAGE
Lloh71:
	ldr	x24, [x24, _AR_PHY_AGC_CONTROL@GOTPAGEOFF]
	b.ls	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
	ubfx	w10, w10, #21, #5
	ubfx	w11, w20, #26, #5
	ubfx	w12, w20, #21, #5
Lloh72:
	adrp	x13, _OFF_LOWER_LT@GOTPAGE
Lloh73:
	ldr	x13, [x13, _OFF_LOWER_LT@GOTPAGEOFF]
Lloh74:
	ldr	w13, [x13]
	cmp	w9, w13
	ubfx	w9, w24, #26, #5
	ubfx	w14, w24, #21, #5
	ccmp	w11, w8, #0, ge
	ccmp	w11, w13, #8, le
	ccmp	w9, w8, #0, ge
	ccmp	w9, w13, #8, le
	ccmp	w10, w8, #0, ge
	ccmp	w10, w13, #8, le
	ccmp	w12, w8, #0, ge
	ccmp	w12, w13, #8, le
	ccmp	w14, w8, #0, ge
	ccmp	w14, w13, #8, le
	b.ge	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	lsr	w9, w28, #30
	cmp	w9, #2
Lloh75:
	adrp	x24, _AR_PHY_AGC_CONTROL@GOTPAGE
Lloh76:
	ldr	x24, [x24, _AR_PHY_AGC_CONTROL@GOTPAGEOFF]
	b.hi	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh77:
	adrp	x20, _AR_PHY_65NM_CH1_BB1@GOTPAGE
Lloh78:
	ldr	x20, [x20, _AR_PHY_65NM_CH1_BB1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
	mov	w8, #1073741824
	add	w2, w28, w8
	bfxil	w2, w0, #0, #30
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_WRITE
	ldr	w8, [x22]
	mov	w21, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh79:
	adrp	x24, _AR_PHY_AGC_CONTROL@GOTPAGE
Lloh80:
	ldr	x24, [x24, _AR_PHY_AGC_CONTROL@GOTPAGEOFF]
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	ubfx	w10, w11, #26, #5
	cmp	w10, w8
	b.le	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	lsr	w8, w22, #30
	cmp	w8, #2
Lloh81:
	adrp	x27, _AR_PHY_ACTIVE_EN@GOTPAGE
Lloh82:
	ldr	x27, [x27, _AR_PHY_ACTIVE_EN@GOTPAGEOFF]
	b.ls	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #0
	tbz	w9, #0, LBB0_24
	b	LBB0_2
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #0
	ubfx	w11, w11, #21, #5
	ldr	w13, [sp, #8]                   ; 4-byte Folded Reload
	ubfx	w12, w13, #26, #5
	ubfx	w13, w13, #21, #5
Lloh83:
	adrp	x14, _OFF_LOWER_LT@GOTPAGE
Lloh84:
	ldr	x14, [x14, _OFF_LOWER_LT@GOTPAGEOFF]
Lloh85:
	ldr	w14, [x14]
	cmp	w10, w14
	ubfx	w10, w27, #26, #5
	ubfx	w15, w27, #21, #5
	ccmp	w12, w8, #0, ge
	ccmp	w12, w14, #8, le
	ccmp	w10, w8, #0, ge
	ccmp	w10, w14, #8, le
	ccmp	w11, w8, #0, ge
	ccmp	w11, w14, #8, le
	ccmp	w13, w8, #0, ge
	ccmp	w13, w14, #8, le
	ccmp	w15, w8, #0, ge
	ccmp	w15, w14, #8, le
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	b.ge	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	lsr	w8, w22, #30
	cmp	w8, #2
Lloh86:
	adrp	x27, _AR_PHY_ACTIVE_EN@GOTPAGE
Lloh87:
	ldr	x27, [x27, _AR_PHY_ACTIVE_EN@GOTPAGEOFF]
	b.hi	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh88:
	adrp	x20, _AR_PHY_65NM_CH2_BB1@GOTPAGE
Lloh89:
	ldr	x20, [x20, _AR_PHY_65NM_CH2_BB1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
	mov	w8, #1073741824
	add	w2, w22, w8
	bfxil	w2, w0, #0, #30
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_WRITE
	mov	w9, #1
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w9, #0, LBB0_2
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	orr	w8, w21, w8
	tbnz	w8, #0, LBB0_2
	b	LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh90:
	adrp	x27, _AR_PHY_ACTIVE_EN@GOTPAGE
Lloh91:
	ldr	x27, [x27, _AR_PHY_ACTIVE_EN@GOTPAGEOFF]
	tbz	w9, #0, LBB0_24
	b	LBB0_2
LBB0_26:
Lloh92:
	adrp	x8, _CALIBRATE@GOTPAGE
Lloh93:
	ldr	x8, [x8, _CALIBRATE@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x2, l_.str@PAGE
Lloh96:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	b	LBB0_28
LBB0_27:
Lloh97:
	adrp	x8, _CALIBRATE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _CALIBRATE@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
Lloh100:
	adrp	x2, l_.str.1@PAGE
Lloh101:
	add	x2, x2, l_.str.1@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
LBB0_28:
	bl	_ath_dbg
	mov	w0, #0
	b	LBB0_30
LBB0_29:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_REG_CLR_BIT
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_REG_SET_BIT
Lloh102:
	adrp	x8, _AR_PHY_TX_IQCAL_CONTROL_0@GOTPAGE
Lloh103:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CONTROL_0@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
Lloh105:
	adrp	x8, _AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL@GOTPAGE
Lloh106:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	mov	w0, #1
LBB0_30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_AGC_CONTROL,4,2         ; @AR_PHY_AGC_CONTROL
	.comm	_AR_PHY_AGC_CONTROL_OFFSET_CAL,4,2 ; @AR_PHY_AGC_CONTROL_OFFSET_CAL
	.comm	_AR_PHY_TX_IQCAL_CONTROL_0,4,2  ; @AR_PHY_TX_IQCAL_CONTROL_0
	.comm	_AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL,4,2 ; @AR_PHY_TX_IQCAL_CONTROL_0_ENABLE_TXIQ_CAL
	.comm	_AR_PHY_AGC_CONTROL_CAL,4,2     ; @AR_PHY_AGC_CONTROL_CAL
	.comm	_AH_WAIT_TIMEOUT,4,2            ; @AH_WAIT_TIMEOUT
	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AGC cal without offset cal failed to complete in 1ms"

	.comm	_AR_PHY_CL_CAL_CTL,4,2          ; @AR_PHY_CL_CAL_CTL
	.comm	_AR_PHY_CL_CAL_ENABLE,4,2       ; @AR_PHY_CL_CAL_ENABLE
	.comm	_AR_PHY_AGC_CONTROL_FLTR_CAL,4,2 ; @AR_PHY_AGC_CONTROL_FLTR_CAL
	.comm	_AR_PHY_AGC_CONTROL_PKDET_CAL,4,2 ; @AR_PHY_AGC_CONTROL_PKDET_CAL
	.comm	_AR_PHY_65NM_CH0_BB1,4,2        ; @AR_PHY_65NM_CH0_BB1
	.comm	_AR_PHY_65NM_CH1_BB1,4,2        ; @AR_PHY_65NM_CH1_BB1
	.comm	_AR_PHY_65NM_CH2_BB1,4,2        ; @AR_PHY_65NM_CH2_BB1
	.comm	_AR_PHY_ACTIVE,4,2              ; @AR_PHY_ACTIVE
	.comm	_AR_PHY_ACTIVE_EN,4,2           ; @AR_PHY_ACTIVE_EN
l_.str.1:                               ; @.str.1
	.asciz	"DC offset cal failed to complete in 1ms"

	.comm	_AR_PHY_65NM_CH0_BB3,4,2        ; @AR_PHY_65NM_CH0_BB3
	.comm	_AR_PHY_65NM_CH1_BB3,4,2        ; @AR_PHY_65NM_CH1_BB3
	.comm	_AR_PHY_65NM_CH2_BB3,4,2        ; @AR_PHY_65NM_CH2_BB3
	.comm	_OFF_UPPER_LT,4,2               ; @OFF_UPPER_LT
	.comm	_OFF_LOWER_LT,4,2               ; @OFF_LOWER_LT
	.no_dead_strip	_ar9003_hw_dynamic_osdac_selection
.subsections_via_symbols
