	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_iqcalibrate
_ar9003_hw_iqcalibrate:                 ## @ar9003_hw_iqcalibrate
	.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	%esi, %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ath9k_hw_common
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.1:
	movl	%ebx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	_ar9003_hw_iqcalibrate.offset_array(%rip), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %ecx
	callq	_REG_RMW_FIELD
	movq	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_REG_RMW_FIELD
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %esi
	leaq	L_.str.9(%rip), %rdx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	movq	%r12, %rdi
	movl	%r14d, %esi
	leaq	L_.str.10(%rip), %rdx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	L_.str.11(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	$4, -88(%rbp)                   ## 8-byte Folded Spill
	cmpq	%r13, -96(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%r13,4), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	(%rcx,%r13,4), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CALIBRATE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	(%r12), %esi
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %r8d
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	xorl	%r14d, %r14d
	cmpl	$-2147483647, -44(%rbp)         ## 4-byte Folded Reload
                                        ## imm = 0x80000001
	setae	%r14b
	movq	%r12, %rbx
	movl	(%r12), %esi
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	%r13d, %ecx
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	(%rbx), %esi
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%r13d, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	leal	(%rcx,%rax), %edx
	addl	$-256, %edx
	cmpl	$-512, %edx                     ## imm = 0xFE00
	ja	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-64(%rbx), %edx
	cmpl	$-128, %edx
	ja	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	negl	%eax
	cmpl	$-2147483647, %edi              ## imm = 0x80000001
	cmovbl	%edi, %eax
	leal	255(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$8, %esi
	cltd
	idivl	%esi
	movl	%eax, %r8d
	cmpl	$-62, %eax
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-63, %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$63, %eax
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$63, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	negl	%r14d
	cmpl	$-2147483647, %edi              ## imm = 0x80000001
	cmovael	%eax, %r14d
	leal	63(%rbx), %ecx
	testl	%ebx, %ebx
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovnsl	%ebx, %ecx
	sarl	$6, %ecx
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	leal	-64(%r12), %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rdx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	$65, %eax
	cmpl	$2, %r12d
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$127, %r15d
	movl	%r15d, %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	andl	$127, %r14d
	cmpl	$127, %r12d
	movl	$63, %ebx
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_CALIBRATE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str.7(%rip), %rdx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	(%r15), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	movq	%r12, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.8(%rip), %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	%r15, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$63, %r14d
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$63, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_15
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_REG_SET_BIT
	movq	_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	movl	$130, %esi
	callq	_REG_READ
	leaq	L_.str.12(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	$130, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ar9003_hw_iqcalibrate.offset_array
_ar9003_hw_iqcalibrate.offset_array:
	.long	130                             ## 0x82
	.long	129                             ## 0x81
	.long	128                             ## 0x80

	.comm	_CALIBRATE,4,2                  ## @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting IQ Cal and Correction for Chain %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Original: Chn %d iq_corr_meas = 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Chn %d pwr_meas_i = 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"Chn %d pwr_meas_q = 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"iqCorrNeg is 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Chn %d iCoff = 0x%08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Chn %d qCoff = 0x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Chn %d : iCoff = 0x%x  qCoff = 0x%x\n"

L_.str.8:                               ## @.str.8
	.asciz	"Register offset (0x%04x) before update = 0x%x\n"

	.comm	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF,4,2 ## @AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF
	.comm	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF,4,2 ## @AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF
L_.str.9:                               ## @.str.9
	.asciz	"Register offset (0x%04x) QI COFF (bitfields 0x%08x) after update = 0x%x\n"

L_.str.10:                              ## @.str.10
	.asciz	"Register offset (0x%04x) QQ COFF (bitfields 0x%08x) after update = 0x%x\n"

L_.str.11:                              ## @.str.11
	.asciz	"IQ Cal and Correction done for Chain %d\n"

	.comm	_AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE,4,2 ## @AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE
L_.str.12:                              ## @.str.12
	.asciz	"IQ Cal and Correction (offset 0x%04x) enabled (bit position 0x%08x). New Value 0x%08x\n"

	.no_dead_strip	_ar9003_hw_iqcalibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_iqcalibrate
_ar9003_hw_iqcalibrate:                 ; @ar9003_hw_iqcalibrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x20, x0
	bl	_ath9k_hw_common
	mov	x19, x0
Lloh0:
	adrp	x24, _CALIBRATE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CALIBRATE@GOTPAGEOFF]
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
	mov	w26, w22
	mov	w25, #-2147483648
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x23, _AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x27
	mov	x3, x22
	bl	_REG_RMW_FIELD
Lloh4:
	adrp	x25, _AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF@GOTPAGE
Lloh5:
	ldr	x25, [x25, _AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x27
	mov	x3, x28
	bl	_REG_RMW_FIELD
	ldr	w22, [x24]
	ldr	w23, [x23]
	mov	x0, x20
	mov	x1, x27
	bl	_REG_READ
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
	mov	x0, x19
	mov	x1, x22
Lloh6:
	adrp	x2, l_.str.9@PAGE
Lloh7:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x3, x27
	bl	_ath_dbg
	ldr	w22, [x24]
	ldr	w23, [x25]
	mov	x0, x20
	mov	x1, x27
	bl	_REG_READ
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
	mov	x0, x19
	mov	x1, x22
Lloh8:
	adrp	x2, l_.str.10@PAGE
Lloh9:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x3, x27
	bl	_ath_dbg
	ldr	w1, [x24]
	mov	x0, x19
Lloh10:
	adrp	x2, l_.str.11@PAGE
Lloh11:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	mov	w25, #-2147483648
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x26, x21
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #2
	ldp	x8, x9, [x20]
	ldr	w23, [x8, x22]
	ldr	w27, [x9, x22]
	ldr	x8, [x20, #16]
	ldr	w28, [x8, x22]
	ldr	w1, [x24]
	mov	x0, x19
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	ldr	w1, [x24]
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x22]
	str	x8, [sp]
	mov	x0, x19
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	cmp	w28, w25
	cset	w22, hi
	ldr	w1, [x24]
	str	x23, [sp]
	mov	x0, x19
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	ldr	w1, [x24]
	str	x27, [sp]
	mov	x0, x19
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	ldr	w1, [x24]
	mov	x0, x19
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, x22
	bl	_ath_dbg
	cmp	w23, #0
	cinc	w8, w23, lt
	cmp	w27, #0
	cinc	w9, w27, lt
	asr	w9, w9, #1
	add	w8, w9, w8, asr #1
	sub	w9, w8, #256
	cmn	w9, #512
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w27, #64
	cmn	w9, #128
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w25
	cneg	w9, w28, hi
	add	w10, w8, #255
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #8
	sdiv	w8, w9, w8
	cmn	w8, #63
	mov	w9, #-63
	csel	w9, w8, w9, gt
	cmp	w9, #63
	mov	w10, #-2147483648
	mov	w25, #63
	csel	w9, w9, w25, lt
	cmp	w28, w10
	add	w10, w27, #63
	cneg	w22, w9, ls
	cmp	w27, #0
	csel	w9, w10, w27, lt
	asr	w9, w9, #6
	ldr	w1, [x24]
	sdiv	w23, w23, w9
	str	x8, [sp]
	sub	w27, w23, #64
	mov	x0, x19
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	ldr	w1, [x24]
	str	x27, [sp]
	mov	x0, x19
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	and	w22, w22, #0x7f
	and	w8, w27, #0x7f
	cmp	w23, #2
	mov	w9, #65
	csel	w8, w9, w8, lt
	cmp	w23, #126
	csel	w28, w25, w8, gt
	ldr	w1, [x24]
	stp	x22, x28, [sp]
	mov	x0, x19
Lloh26:
	adrp	x2, l_.str.7@PAGE
Lloh27:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x3, x21
	bl	_ath_dbg
	ldr	w23, [x24]
Lloh28:
	adrp	x8, _ar9003_hw_iqcalibrate.offset_array@PAGE
Lloh29:
	add	x8, x8, _ar9003_hw_iqcalibrate.offset_array@PAGEOFF
	ldr	w27, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x27
	bl	_REG_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x23
Lloh30:
	adrp	x2, l_.str.8@PAGE
Lloh31:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, x27
	bl	_ath_dbg
	mov	x0, x20
	bl	_AR_SREV_9565
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, #63
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #63
	b.ne	LBB0_2
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x22, _AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE@GOTPAGE
Lloh33:
	ldr	x22, [x22, _AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #130
	bl	_REG_SET_BIT
	ldr	w21, [x24]
	ldr	w22, [x22]
	mov	x0, x20
	mov	w1, #130
	bl	_REG_READ
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh34:
	adrp	x2, l_.str.12@PAGE
Lloh35:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w3, #130
	bl	_ath_dbg
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ar9003_hw_iqcalibrate.offset_array
_ar9003_hw_iqcalibrate.offset_array:
	.long	130                             ; 0x82
	.long	129                             ; 0x81
	.long	128                             ; 0x80

	.comm	_CALIBRATE,4,2                  ; @CALIBRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting IQ Cal and Correction for Chain %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Original: Chn %d iq_corr_meas = 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Chn %d pwr_meas_i = 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"Chn %d pwr_meas_q = 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"iqCorrNeg is 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Chn %d iCoff = 0x%08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Chn %d qCoff = 0x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Chn %d : iCoff = 0x%x  qCoff = 0x%x\n"

l_.str.8:                               ; @.str.8
	.asciz	"Register offset (0x%04x) before update = 0x%x\n"

	.comm	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF,4,2 ; @AR_PHY_RX_IQCAL_CORR_IQCORR_Q_I_COFF
	.comm	_AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF,4,2 ; @AR_PHY_RX_IQCAL_CORR_IQCORR_Q_Q_COFF
l_.str.9:                               ; @.str.9
	.asciz	"Register offset (0x%04x) QI COFF (bitfields 0x%08x) after update = 0x%x\n"

l_.str.10:                              ; @.str.10
	.asciz	"Register offset (0x%04x) QQ COFF (bitfields 0x%08x) after update = 0x%x\n"

l_.str.11:                              ; @.str.11
	.asciz	"IQ Cal and Correction done for Chain %d\n"

	.comm	_AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE,4,2 ; @AR_PHY_RX_IQCAL_CORR_IQCORR_ENABLE
l_.str.12:                              ; @.str.12
	.asciz	"IQ Cal and Correction (offset 0x%04x) enabled (bit position 0x%08x). New Value 0x%08x\n"

	.no_dead_strip	_ar9003_hw_iqcalibrate
.subsections_via_symbols
