	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_tx_iq_cal_outlier_detection
_ar9003_hw_tx_iq_cal_outlier_detection: ## @ar9003_hw_tx_iq_cal_outlier_detection
	.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, -92(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MEASUREMENT@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	imulq	%rcx, %r14
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	shll	$2, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	cmpl	$2, (%r12)
	jl	LBB0_5
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movl	(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rax
	addq	%r15, %r13
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_AR_PHY_TX_IQCAL_CORR_COEFF_B0
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, -8(%r13,%rcx,4)
	movl	%eax, -8(%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_SREV_9485
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_AR_PHY_TX_IQCAL_CORR_COEFF_B1
	movq	%r15, %r12
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, -4(%r13,%r15,4)
	movl	%eax, -4(%r13)
	movl	%r14d, %edi
	callq	_AR_PHY_TX_IQCAL_CORR_COEFF_B2
	movl	%eax, (%r13,%r15,4)
	movq	%r12, %r15
	movq	_MAX_MEASUREMENT@GOTPCREL(%rip), %r12
	movl	%eax, (%r13)
	jmp	LBB0_4
LBB0_5:
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_21
## %bb.6:
	shlq	$2, -64(%rbp)                   ## 8-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movq	_AR9300_MAX_CHAINS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rcx
	cmpq	%rax, %r14
	jge	LBB0_21
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	btl	%r14d, %eax
	jae	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_AR_PHY_TX_IQCAL_STATUS_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_CALIBRATED_GAINS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_REG_READ_FIELD
	movl	(%r12), %r12d
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	movq	%r15, %rdi
	callq	_AR_SREV_9550
	testl	%eax, %eax
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$2, %r12d
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	movq	_MAX_MAG_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_ar9003_hw_detect_outlier
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rdi
	movq	_MAX_PHS_DELTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	callq	_ar9003_hw_detect_outlier
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r12
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	cmpq	%r12, %r13
	je	LBB0_18
LBB0_13:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %ecx
	movq	(%rdx,%r14,8), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %eax
	andl	$127, %eax
	andl	$127, %ecx
	shll	$7, %ecx
	orl	%eax, %ecx
	movq	16(%rbx), %rax
	movl	%ecx, (%rax)
	movl	(%r15), %esi
	movq	_AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE@GOTPCREL(%rip), %rax
	testb	$1, %r12b
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE@GOTPCREL(%rip), %rax
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_REG_RMW_FIELD
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	movq	_MAX_MEASUREMENT@GOTPCREL(%rip), %r12
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rax), %rax
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rax,%r14,4)
	jmp	LBB0_20
LBB0_21:
	movq	_AR_PHY_TX_IQCAL_CONTROL_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_RX_IQCAL_CORR_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.22:
	addq	$16, %rsi
	movq	_TXIQCAL_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	callq	_set_bit
	jmp	LBB0_25
LBB0_24:
	callq	_clear_bit
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MEASUREMENT,4,2            ## @MAX_MEASUREMENT
	.comm	_AR9300_MAX_CHAINS,4,2          ## @AR9300_MAX_CHAINS
	.comm	_AR_PHY_TX_IQCAL_STATUS_B0,4,2  ## @AR_PHY_TX_IQCAL_STATUS_B0
	.comm	_AR_PHY_CALIBRATED_GAINS_0,4,2  ## @AR_PHY_CALIBRATED_GAINS_0
	.comm	_MAX_MAG_DELTA,4,2              ## @MAX_MAG_DELTA
	.comm	_MAX_PHS_DELTA,4,2              ## @MAX_PHS_DELTA
	.comm	_AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE,4,2 ## @AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE
	.comm	_AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE,4,2 ## @AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE
	.comm	_AR_PHY_TX_IQCAL_CONTROL_3,4,2  ## @AR_PHY_TX_IQCAL_CONTROL_3
	.comm	_AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN,4,2 ## @AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN
	.comm	_AR_PHY_RX_IQCAL_CORR_B0,4,2    ## @AR_PHY_RX_IQCAL_CORR_B0
	.comm	_AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN,4,2 ## @AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN
	.comm	_TXIQCAL_DONE,4,2               ## @TXIQCAL_DONE
	.no_dead_strip	_ar9003_hw_tx_iq_cal_outlier_detection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_tx_iq_cal_outlier_detection
_ar9003_hw_tx_iq_cal_outlier_detection: ; @ar9003_hw_tx_iq_cal_outlier_detection
	.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	w2, [x29, #-100]                ; 4-byte Folded Spill
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _MAX_MEASUREMENT@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_MEASUREMENT@GOTPAGEOFF]
Lloh5:
	adrp	x9, _AR9300_MAX_CHAINS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR9300_MAX_CHAINS@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh7:
	ldr	w19, [x9]
	mul	x8, x19, x8
	lsl	x9, x8, #2
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x0, x9, x12
	mov	sp, x0
	ldr	x24, [x20, #8]
	lsl	w2, w8, #2
	mov	x28, x0
	mov	w1, #0
	bl	_memset
	ldr	w8, [x26]
	lsl	x27, x19, #2
	cmp	w8, #1
	b.le	LBB0_5
; %bb.1:
	mov	x23, #0
	lsl	x19, x19, #3
	mov	x25, x28
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	w8, [x26]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x25, x25, x19
	cmp	x23, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_AR_PHY_TX_IQCAL_CORR_COEFF_B0
	str	w0, [x25, x27]
	str	w0, [x25]
	mov	x0, x20
	bl	_AR_SREV_9485
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_AR_PHY_TX_IQCAL_CORR_COEFF_B1
	add	x22, x25, x27
	str	w0, [x22, #4]
	str	w0, [x25, #4]
	mov	x0, x23
	bl	_AR_PHY_TX_IQCAL_CORR_COEFF_B2
	str	w0, [x22, #8]
	str	w0, [x25, #8]
	b	LBB0_2
LBB0_5:
Lloh10:
	adrp	x8, _AR9300_MAX_CHAINS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR9300_MAX_CHAINS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.6:
	mov	x9, x28
	mov	x28, #0
Lloh13:
	adrp	x26, _AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE@GOTPAGE
Lloh14:
	ldr	x26, [x26, _AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
Lloh15:
	adrp	x8, _AR9300_MAX_CHAINS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR9300_MAX_CHAINS@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	add	x9, x9, #4
	cmp	x28, x8
	b.ge	LBB0_19
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w8, [x20]
	lsr	w8, w8, w28
	tbz	w8, #0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
Lloh18:
	adrp	x8, _AR_PHY_TX_IQCAL_STATUS_B0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_STATUS_B0@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _AR_PHY_CALIBRATED_GAINS_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_PHY_CALIBRATED_GAINS_0@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_READ_FIELD
Lloh24:
	adrp	x8, _MAX_MEASUREMENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_MEASUREMENT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w23, w0, w8, lt
	mov	x0, x20
	bl	_AR_SREV_9550
	lsl	x25, x28, #3
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w23, #1
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x25]
Lloh27:
	adrp	x8, _MAX_MAG_DELTA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX_MAG_DELTA@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_ar9003_hw_detect_outlier
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x25]
Lloh30:
	adrp	x8, _MAX_PHS_DELTA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAX_PHS_DELTA@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_ar9003_hw_detect_outlier
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w23, #1
	b.lt	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
	ldur	x19, [x29, #-96]                ; 8-byte Folded Reload
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x22, x22, #1
	add	x19, x19, x27
	cmp	x23, x22
	b.eq	LBB0_17
LBB0_15:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x8, x9, [x21]
	ldr	x8, [x8, x25]
	lsl	x10, x22, #3
	ldr	x8, [x8, x10]
	ldr	x9, [x9, x25]
	ldr	w8, [x8]
	ldr	x9, [x9, x10]
	ldr	w9, [x9]
	and	w3, w9, #0x7f
	bfi	w3, w8, #7, #7
	ldr	x8, [x21, #16]
	str	w3, [x8]
	ldr	w1, [x19]
	tst	x22, #0x1
Lloh33:
	adrp	x8, _AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_RMW_FIELD
	cbz	x24, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	ldr	x9, [x24]
	ldr	x9, [x9, x22, lsl #3]
	str	w8, [x9, x28, lsl #2]
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	cbz	x24, LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24, #8]
	str	w23, [x8, x28, lsl #2]
	b	LBB0_7
LBB0_19:
Lloh35:
	adrp	x8, _AR_PHY_TX_IQCAL_CONTROL_3@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CONTROL_3@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_REG_RMW_FIELD
Lloh41:
	adrp	x8, _AR_PHY_RX_IQCAL_CORR_B0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AR_PHY_RX_IQCAL_CORR_B0@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_REG_RMW_FIELD
	cbz	x24, LBB0_23
; %bb.20:
Lloh47:
	adrp	x8, _TXIQCAL_DONE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TXIQCAL_DONE@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	add	x1, x24, #16
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cbz	w8, LBB0_22
; %bb.21:
	bl	_set_bit
	b	LBB0_23
LBB0_22:
	bl	_clear_bit
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	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_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MEASUREMENT,4,2            ; @MAX_MEASUREMENT
	.comm	_AR9300_MAX_CHAINS,4,2          ; @AR9300_MAX_CHAINS
	.comm	_AR_PHY_TX_IQCAL_STATUS_B0,4,2  ; @AR_PHY_TX_IQCAL_STATUS_B0
	.comm	_AR_PHY_CALIBRATED_GAINS_0,4,2  ; @AR_PHY_CALIBRATED_GAINS_0
	.comm	_MAX_MAG_DELTA,4,2              ; @MAX_MAG_DELTA
	.comm	_MAX_PHS_DELTA,4,2              ; @MAX_PHS_DELTA
	.comm	_AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE,4,2 ; @AR_PHY_TX_IQCAL_CORR_COEFF_00_COEFF_TABLE
	.comm	_AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE,4,2 ; @AR_PHY_TX_IQCAL_CORR_COEFF_01_COEFF_TABLE
	.comm	_AR_PHY_TX_IQCAL_CONTROL_3,4,2  ; @AR_PHY_TX_IQCAL_CONTROL_3
	.comm	_AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN,4,2 ; @AR_PHY_TX_IQCAL_CONTROL_3_IQCORR_EN
	.comm	_AR_PHY_RX_IQCAL_CORR_B0,4,2    ; @AR_PHY_RX_IQCAL_CORR_B0
	.comm	_AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN,4,2 ; @AR_PHY_RX_IQCAL_CORR_B0_LOOPBACK_IQCORR_EN
	.comm	_TXIQCAL_DONE,4,2               ; @TXIQCAL_DONE
	.no_dead_strip	_ar9003_hw_tx_iq_cal_outlier_detection
.subsections_via_symbols
