	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_rx_iq_cal
_wlc_lcnphy_rx_iq_cal:                  ## @wlc_lcnphy_rx_iq_cal
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -156(%rbp)                ## 4-byte Spill
	movl	%ecx, -152(%rbp)                ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$131, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$2, %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_8
## %bb.3:
	movslq	%r13d, %rax
	leaq	1(%rax), %r14
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,8), %rbx
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decq	%r14
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-40(%rbx), %r15
	addq	$-24, %rbx
	movl	(%r12), %edi
	callq	_CHSPEC_CHANNEL
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.7:
	movl	-8(%rbx), %edx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_rx_iq_comp
	movl	$1, %r15d
	jmp	LBB0_27
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_8:
	movl	16(%rbp), %ebx
	xorl	%edi, %edi
	cmpl	$1, %r15d
	setne	%dil
	callq	_WARN_ON
	movq	%r12, %rdi
	callq	_wlc_lcnphy_get_tx_pwr_ctrl
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movq	_LCNPHY_TX_PWR_CTRL_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_tx_pwr_ctrl
	movq	_rxiq_cal_rf_reg@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -144(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	12(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	16(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	20(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	24(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	28(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	32(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -112(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	36(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movq	(%r13), %rax
	movl	40(%rax), %esi
	movq	%r12, %rdi
	callq	_read_radio_reg
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1585, %esi                     ## imm = 0x631
	callq	_read_phy_reg
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1585, %esi                     ## imm = 0x631
	movl	$21, %edx
	callq	_or_phy_reg
	movq	%r12, %rdi
	movl	$1100, %esi                     ## imm = 0x44C
	callq	_read_phy_reg
	movq	%r12, %rdi
	movl	$1101, %esi                     ## imm = 0x44D
	callq	_read_phy_reg
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1200, %esi                     ## imm = 0x4B0
	callq	_read_phy_reg
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	callq	_read_phy_reg
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1273, %esi                     ## imm = 0x4F9
	callq	_read_phy_reg
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1274, %esi                     ## imm = 0x4FA
	callq	_read_phy_reg
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	callq	_read_phy_reg
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	callq	_read_phy_reg
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1083, %esi                     ## imm = 0x43B
	callq	_read_phy_reg
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1084, %esi                     ## imm = 0x43C
	callq	_read_phy_reg
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	callq	_read_phy_reg
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1755, %esi                     ## imm = 0x6DB
	callq	_read_phy_reg
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_wlc_lcnphy_tx_gain_override_enabled
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	-160(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_get_tx_gain
	movl	(%r14), %r14d
	jmp	LBB0_11
LBB0_5:
	xorl	%r15d, %r15d
	jmp	LBB0_27
LBB0_9:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_wlc_lcnphy_set_tx_pwr_by_index
	movq	%r12, %rdi
	movl	$1273, %esi                     ## imm = 0x4F9
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1274, %esi                     ## imm = 0x4FA
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1083, %esi                     ## imm = 0x43B
	movl	$2, %edx
	movl	$2, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1084, %esi                     ## imm = 0x43C
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	_RADIO_2064_REG116@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG12C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG06A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$211, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG098@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %r15d
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG00B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$7, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG113@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	callq	_mod_radio_reg
	movq	_RADIO_2064_REG01D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG114@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG02E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_write_radio_reg
	movq	_RADIO_2064_REG12A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_write_radio_reg
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	movl	$2, %edx
	movl	$2, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	movl	$2, %edx
	movl	$2, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	movl	$8, %edx
	movl	$8, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	movl	$8, %edx
	movl	$8, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	movl	$32, %edx
	movl	$32, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1083, %esi                     ## imm = 0x43B
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1084, %esi                     ## imm = 0x43C
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1755, %esi                     ## imm = 0x6DB
	movl	$3, %edx
	callq	_or_phy_reg
	movq	%r12, %rdi
	movl	-152(%rbp), %esi                ## 4-byte Reload
	movl	-156(%rbp), %edx                ## 4-byte Reload
	callq	_wlc_lcnphy_set_trsw_override
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movl	$4, %ebx
LBB0_13:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	$6, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	movl	$5, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	movl	$4, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	callq	_wlc_lcnphy_rx_iq_cal_gain
	testl	%eax, %eax
	jne	LBB0_29
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=2
	addl	$-1, %ebx
	jb	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	subl	$1, %r15d
	jae	LBB0_12
## %bb.22:
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_29:
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_wlc_lcnphy_calc_rx_iq_comp
	movl	%eax, %r15d
LBB0_23:
	movq	%r12, %rdi
	callq	_wlc_lcnphy_stop_tx_tone
	movq	%r12, %rdi
	movl	$1585, %esi                     ## imm = 0x631
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1100, %esi                     ## imm = 0x44C
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1101, %esi                     ## imm = 0x44D
	movl	%ebx, %edx
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1200, %esi                     ## imm = 0x4B0
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1273, %esi                     ## imm = 0x4F9
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1274, %esi                     ## imm = 0x4FA
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$2360, %esi                     ## imm = 0x938
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$2361, %esi                     ## imm = 0x939
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1083, %esi                     ## imm = 0x43B
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1084, %esi                     ## imm = 0x43C
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1755, %esi                     ## imm = 0x6DB
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	callq	_wlc_lcnphy_clear_trsw_override
	movq	%r12, %rdi
	movl	$1100, %esi                     ## imm = 0x44C
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	(%r13), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	-144(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	4(%rax), %esi
	movq	%r12, %rdi
	movl	-140(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	movl	-136(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	12(%rax), %esi
	movq	%r12, %rdi
	movl	-132(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	16(%rax), %esi
	movq	%r12, %rdi
	movl	-128(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	20(%rax), %esi
	movq	%r12, %rdi
	movl	-124(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	24(%rax), %esi
	movq	%r12, %rdi
	movl	-120(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	28(%rax), %esi
	movq	%r12, %rdi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	32(%rax), %esi
	movq	%r12, %rdi
	movl	-112(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	36(%rax), %esi
	movq	%r12, %rdi
	movl	-108(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	movq	(%r13), %rax
	movl	40(%rax), %esi
	movq	%r12, %rdi
	movl	-104(%rbp), %edx                ## 4-byte Reload
	callq	_write_radio_reg
	cmpl	$0, -100(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wlc_lcnphy_set_tx_pwr_by_index
	jmp	LBB0_26
LBB0_25:
	movq	%r12, %rdi
	callq	_wlc_lcnphy_disable_tx_gain_override
LBB0_26:
	movq	%r12, %rdi
	movl	-148(%rbp), %esi                ## 4-byte Reload
	callq	_wlc_lcnphy_set_tx_pwr_ctrl
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_wlc_lcnphy_rx_gain_override_enable
LBB0_27:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_28:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_LCNPHY_TX_PWR_CTRL_OFF,4,2     ## @LCNPHY_TX_PWR_CTRL_OFF
	.comm	_rxiq_cal_rf_reg,8,3            ## @rxiq_cal_rf_reg
	.comm	_RADIO_2064_REG116,4,2          ## @RADIO_2064_REG116
	.comm	_RADIO_2064_REG12C,4,2          ## @RADIO_2064_REG12C
	.comm	_RADIO_2064_REG06A,4,2          ## @RADIO_2064_REG06A
	.comm	_RADIO_2064_REG098,4,2          ## @RADIO_2064_REG098
	.comm	_RADIO_2064_REG00B,4,2          ## @RADIO_2064_REG00B
	.comm	_RADIO_2064_REG113,4,2          ## @RADIO_2064_REG113
	.comm	_RADIO_2064_REG01D,4,2          ## @RADIO_2064_REG01D
	.comm	_RADIO_2064_REG114,4,2          ## @RADIO_2064_REG114
	.comm	_RADIO_2064_REG02E,4,2          ## @RADIO_2064_REG02E
	.comm	_RADIO_2064_REG12A,4,2          ## @RADIO_2064_REG12A
	.no_dead_strip	_wlc_lcnphy_rx_iq_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_rx_iq_cal
_wlc_lcnphy_rx_iq_cal:                  ; @wlc_lcnphy_rx_iq_cal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x24, x6
	mov	x26, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x27, [x0, #8]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #131
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	cmp	w26, #2
	b.ne	LBB0_7
; %bb.2:
	sxtw	x8, w21
	add	x22, x8, #1
	mov	w8, #24
	smaddl	x8, w21, w8, x25
	add	x8, x8, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x22, x22, #1
	cbz	x22, LBB0_26
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x8, #24
	ldur	x23, [x8, #-40]
	ldr	w0, [x20]
	bl	_CHSPEC_CHANNEL
	mov	x8, x21
	cmp	x23, x0
	b.ne	LBB0_3
; %bb.5:
	ldr	w1, [x21]
	ldur	w2, [x21, #-8]
	mov	x0, x20
	bl	_wlc_lcnphy_set_rx_iq_comp
	mov	w22, #1
	b	LBB0_26
LBB0_6:
	mov	w22, #0
	b	LBB0_27
LBB0_7:
	cmp	w26, #1
	cset	w0, ne
	bl	_WARN_ON
	mov	x0, x20
	bl	_wlc_lcnphy_get_tx_pwr_ctrl
	str	w0, [sp, #84]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _LCNPHY_TX_PWR_CTRL_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LCNPHY_TX_PWR_CTRL_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wlc_lcnphy_set_tx_pwr_ctrl
Lloh6:
	adrp	x26, _rxiq_cal_rf_reg@GOTPAGE
Lloh7:
	ldr	x26, [x26, _rxiq_cal_rf_reg@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #80]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #72]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #12]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #68]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #16]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #64]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #20]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #24]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #56]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #28]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #52]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #32]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #36]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
	ldr	w1, [x8, #40]
	mov	x0, x20
	bl	_read_radio_reg
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1585
	bl	_read_phy_reg
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1585
	mov	w2, #21
	bl	_or_phy_reg
	mov	x0, x20
	mov	w1, #1100
	bl	_read_phy_reg
	mov	x0, x20
	mov	w1, #1101
	bl	_read_phy_reg
	mov	x25, x0
	mov	x0, x20
	mov	w1, #1200
	bl	_read_phy_reg
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1201
	bl	_read_phy_reg
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1273
	bl	_read_phy_reg
	mov	x28, x0
	mov	x0, x20
	mov	w1, #1274
	bl	_read_phy_reg
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #2360
	bl	_read_phy_reg
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #2361
	bl	_read_phy_reg
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1083
	bl	_read_phy_reg
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1084
	bl	_read_phy_reg
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1754
	bl	_read_phy_reg
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	mov	x0, x20
	mov	w1, #1755
	bl	_read_phy_reg
	str	w0, [sp]                        ; 4-byte Folded Spill
	mov	x0, x20
	bl	_wlc_lcnphy_tx_gain_override_enabled
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.8:
	add	x1, sp, #88
	mov	x0, x20
	bl	_wlc_lcnphy_get_tx_gain
	ldr	w27, [x27]
	b	LBB0_10
LBB0_9:
	mov	w27, #0
LBB0_10:
	mov	x0, x20
	mov	x1, x24
	bl	_wlc_lcnphy_set_tx_pwr_by_index
	mov	x0, x20
	mov	w1, #1273
	mov	w2, #1
	mov	w3, #1
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1274
	mov	w2, #1
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1083
	mov	w2, #2
	mov	w3, #2
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1084
	mov	w2, #2
	mov	w3, #0
	bl	_mod_phy_reg
Lloh8:
	adrp	x8, _RADIO_2064_REG116@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADIO_2064_REG116@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #6
	bl	_write_radio_reg
Lloh11:
	adrp	x8, _RADIO_2064_REG12C@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RADIO_2064_REG12C@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #7
	bl	_write_radio_reg
Lloh14:
	adrp	x8, _RADIO_2064_REG06A@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RADIO_2064_REG06A@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #211
	bl	_write_radio_reg
Lloh17:
	adrp	x8, _RADIO_2064_REG098@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RADIO_2064_REG098@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w24, #3
	mov	x0, x20
	mov	w2, #3
	bl	_write_radio_reg
Lloh20:
	adrp	x8, _RADIO_2064_REG00B@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RADIO_2064_REG00B@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #7
	bl	_write_radio_reg
Lloh23:
	adrp	x8, _RADIO_2064_REG113@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RADIO_2064_REG113@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16
	mov	w3, #16
	bl	_mod_radio_reg
Lloh26:
	adrp	x8, _RADIO_2064_REG01D@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RADIO_2064_REG01D@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_write_radio_reg
Lloh29:
	adrp	x8, _RADIO_2064_REG114@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RADIO_2064_REG114@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_write_radio_reg
Lloh32:
	adrp	x8, _RADIO_2064_REG02E@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RADIO_2064_REG02E@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16
	bl	_write_radio_reg
Lloh35:
	adrp	x8, _RADIO_2064_REG12A@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RADIO_2064_REG12A@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_write_radio_reg
	mov	x0, x20
	mov	w1, #2360
	mov	w2, #1
	mov	w3, #1
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2361
	mov	w2, #1
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2360
	mov	w2, #2
	mov	w3, #2
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2361
	mov	w2, #2
	mov	w3, #2
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2360
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2361
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2360
	mov	w2, #8
	mov	w3, #8
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2361
	mov	w2, #8
	mov	w3, #8
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2360
	mov	w2, #32
	mov	w3, #32
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #2361
	mov	w2, #32
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1083
	mov	w2, #1
	mov	w3, #1
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1084
	mov	w2, #1
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x20
	mov	w1, #1754
	mov	w2, #65535
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1755
	mov	w2, #3
	bl	_or_phy_reg
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_wlc_lcnphy_set_trsw_override
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x22, x24
	mov	w23, #4
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	w1, #6
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	w1, #5
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	w1, #4
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	w1, #3
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	w1, #2
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	w1, #1
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	mov	x3, x22
	bl	_wlc_lcnphy_rx_iq_cal_gain
	cbnz	w0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	w23, w23, #1
	cmn	w23, #1
	b.ne	LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w24, w22, #1
	cbnz	w22, LBB0_11
	b	LBB0_22
LBB0_21:
	mov	x0, x20
	mov	w1, #1024
	bl	_wlc_lcnphy_calc_rx_iq_comp
	mov	x22, x0
LBB0_22:
	mov	x0, x20
	bl	_wlc_lcnphy_stop_tx_tone
	mov	x0, x20
	mov	w1, #1585
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1100
	mov	x2, x25
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1101
	mov	x2, x25
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1200
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1201
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1273
	mov	x2, x28
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1274
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #2360
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #2361
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1083
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1084
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1754
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	mov	w1, #1755
	ldr	w2, [sp]                        ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x20
	bl	_wlc_lcnphy_clear_trsw_override
	mov	x0, x20
	mov	w1, #1100
	mov	w2, #4
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	x8, [x26]
	ldr	w1, [x8]
	mov	x0, x20
	ldr	w2, [sp, #80]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #4]
	mov	x0, x20
	ldr	w2, [sp, #76]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #8]
	mov	x0, x20
	ldr	w2, [sp, #72]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #12]
	mov	x0, x20
	ldr	w2, [sp, #68]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #16]
	mov	x0, x20
	ldr	w2, [sp, #64]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #20]
	mov	x0, x20
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #24]
	mov	x0, x20
	ldr	w2, [sp, #56]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #28]
	mov	x0, x20
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #32]
	mov	x0, x20
	ldr	w2, [sp, #48]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #36]
	mov	x0, x20
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	ldr	x8, [x26]
	ldr	w1, [x8, #40]
	mov	x0, x20
	ldr	w2, [sp, #40]                   ; 4-byte Folded Reload
	bl	_write_radio_reg
	mov	x0, x20
	cbz	w21, LBB0_24
; %bb.23:
	mov	x1, x27
	bl	_wlc_lcnphy_set_tx_pwr_by_index
	b	LBB0_25
LBB0_24:
	bl	_wlc_lcnphy_disable_tx_gain_override
LBB0_25:
	mov	x0, x20
	ldr	w1, [sp, #84]                   ; 4-byte Folded Reload
	bl	_wlc_lcnphy_set_tx_pwr_ctrl
	mov	x0, x20
	mov	w1, #0
	bl	_wlc_lcnphy_rx_gain_override_enable
LBB0_26:
	mov	x0, x19
	bl	_kfree
LBB0_27:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_LCNPHY_TX_PWR_CTRL_OFF,4,2     ; @LCNPHY_TX_PWR_CTRL_OFF
	.comm	_rxiq_cal_rf_reg,8,3            ; @rxiq_cal_rf_reg
	.comm	_RADIO_2064_REG116,4,2          ; @RADIO_2064_REG116
	.comm	_RADIO_2064_REG12C,4,2          ; @RADIO_2064_REG12C
	.comm	_RADIO_2064_REG06A,4,2          ; @RADIO_2064_REG06A
	.comm	_RADIO_2064_REG098,4,2          ; @RADIO_2064_REG098
	.comm	_RADIO_2064_REG00B,4,2          ; @RADIO_2064_REG00B
	.comm	_RADIO_2064_REG113,4,2          ; @RADIO_2064_REG113
	.comm	_RADIO_2064_REG01D,4,2          ; @RADIO_2064_REG01D
	.comm	_RADIO_2064_REG114,4,2          ; @RADIO_2064_REG114
	.comm	_RADIO_2064_REG02E,4,2          ; @RADIO_2064_REG02E
	.comm	_RADIO_2064_REG12A,4,2          ; @RADIO_2064_REG12A
	.no_dead_strip	_wlc_lcnphy_rx_iq_cal
.subsections_via_symbols
