	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_tx_iqlo_cal
_wlc_lcnphy_tx_iqlo_cal:                ## @wlc_lcnphy_tx_iqlo_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	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -100(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	l___const.wlc_lcnphy_tx_iqlo_cal.commands_recal+16(%rip), %rax
	movq	%rax, -144(%rbp)
	movaps	l___const.wlc_lcnphy_tx_iqlo_cal.commands_recal(%rip), %xmm0
	movaps	%xmm0, -160(%rbp)
	movq	%rax, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movq	l___const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal+16(%rip), %rax
	movq	%rax, -208(%rbp)
	movaps	l___const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal(%rip), %xmm0
	movaps	%xmm0, -224(%rbp)
	movq	%rax, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movq	16(%rdi), %rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$20, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_32
## %bb.1:
	movq	%rax, %r13
	movq	%r12, %rdi
	movl	$1755, %esi                     ## imm = 0x6DB
	callq	_read_phy_reg
	movl	%eax, -368(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	callq	_read_phy_reg
	movl	%eax, -360(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	$64, %edx
	callq	_or_phy_reg
	movq	%r12, %rdi
	movl	$1755, %esi                     ## imm = 0x6DB
	movl	$3, %edx
	callq	_or_phy_reg
	leaq	-224(%rbp), %rax
	movq	%rax, -384(%rbp)                ## 8-byte Spill
	cmpl	$129, %r15d
	je	LBB0_2
## %bb.3:
	cmpl	$128, %r15d
	jne	LBB0_4
## %bb.5:
	leaq	-256(%rbp), %rax
	movq	%rax, -384(%rbp)                ## 8-byte Spill
	leaq	-192(%rbp), %rdi
	jmp	LBB0_6
LBB0_2:
	leaq	-160(%rbp), %rdi
LBB0_6:
	leaq	-128(%rbp), %r15
	movq	%rdi, -320(%rbp)                ## 8-byte Spill
	callq	_ARRAY_SIZE
	cltq
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -320(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, -312(%rbp)                ## 8-byte Spill
	movq	_LCNPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	$11, %ecx
	movl	$16, %r8d
	movl	$64, %r9d
	callq	_wlc_lcnphy_common_write_table
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1283, %esi                     ## imm = 0x503
	movl	$8, %edx
	movl	$8, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	callq	_wlc_lcnphy_get_tx_pwr_ctrl
	movl	%eax, -356(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1188, %esi                     ## imm = 0x4A4
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_mod_phy_reg
	movq	_LCNPHY_TX_PWR_CTRL_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_tx_pwr_ctrl
	movq	%r12, %rdi
	movl	$1243, %esi                     ## imm = 0x4DB
	callq	_read_phy_reg
	movl	%eax, -352(%rbp)                ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1243, %esi                     ## imm = 0x4DB
	movl	$1023, %edx                     ## imm = 0x3FF
	movl	$678, %ecx                      ## imm = 0x2A6
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1243, %esi                     ## imm = 0x4DB
	movl	$28672, %edx                    ## imm = 0x7000
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_wlc_lcnphy_tx_iqlo_loopback
	movq	%r12, %rdi
	callq	_wlc_lcnphy_tx_gain_override_enabled
	movl	%eax, -348(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	movl	%ebx, -364(%rbp)                ## 4-byte Spill
	je	LBB0_8
## %bb.34:
	leaq	-416(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_get_tx_gain
	testq	%r14, %r14
	jne	LBB0_11
	jmp	LBB0_10
LBB0_8:
	testq	%r14, %r14
	jne	LBB0_11
## %bb.9:
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movl	16(%rax), %esi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_tx_pwr_by_index
LBB0_10:
	leaq	-432(%rbp), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_wlc_lcnphy_get_tx_gain
LBB0_11:
	movl	(%r14), %eax
	movl	4(%r14), %ebx
	shll	$8, %eax
	shll	$4, %ebx
	orl	%eax, %ebx
	orl	8(%r14), %ebx
	movl	8(%r12), %edi
	callq	_CHSPEC_IS5G
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
	movq	(%r14), %rax
	movq	%rax, -344(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -336(%rbp)
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_iqcal_gainparams_numgains_lcnphy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	movq	_tbl_iqcal_gainparams_lcnphy@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpl	(%rsi), %ebx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
	jmp	LBB0_16
LBB0_15:
	movl	4(%rsi), %eax
	movl	%eax, -344(%rbp)
	movl	8(%rsi), %eax
	movl	%eax, -340(%rbp)
	movl	12(%rsi), %eax
	addq	$12, %rsi
	movl	%eax, -336(%rbp)
	leaq	-80(%rbp), %rdi
	movl	$20, %edx
	callq	_memcpy
LBB0_16:
	movq	%r13, -392(%rbp)                ## 8-byte Spill
	leaq	-344(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_tx_gain
	movq	%r12, %rdi
	movl	$1107, %esi                     ## imm = 0x453
	movl	$2729, %edx                     ## imm = 0xAA9
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$2365, %esi                     ## imm = 0x93D
	movl	$192, %edx
	callq	_write_phy_reg
	movq	_LCNPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	_lcnphy_iqcal_loft_gainladder@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movl	$16, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_lcnphy_common_write_table
	movl	(%rbx), %r14d
	movq	_lcnphy_iqcal_ir_gainladder@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movl	$16, %r8d
	movl	$32, %r9d
	callq	_wlc_lcnphy_common_write_table
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_wlc_lcnphy_stop_tx_tone
	movl	$5, %edi
	callq	_udelay
LBB0_18:
	movq	%r12, %rdi
	movl	$3750, %esi                     ## imm = 0xEA6
	movl	$88, %edx
	movl	$1, %ecx
	callq	_wlc_lcnphy_start_tx_tone
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_write_phy_reg
	cmpq	$0, -312(%rbp)                  ## 8-byte Folded Reload
	movq	-320(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_26
## %bb.19:
	xorl	%r14d, %r14d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15), %r15d
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	movl	$16, %r8d
	movl	$96, %r9d
	callq	_wlc_lcnphy_common_read_table
	movq	-400(%rbp), %r14                ## 8-byte Reload
	incq	%r14
	cmpq	%r14, -312(%rbp)                ## 8-byte Folded Reload
	movq	-320(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_26
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -372(%rbp)
	movl	(%rbx,%r14,4), %r13d
	shrl	$8, %r13d
	andl	$15, %r13d
	movq	-384(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movl	-80(%rbp,%r13,4), %ecx
	movl	%ecx, %esi
	shll	$8, %esi
	movzbl	%al, %edx
	orl	%esi, %edx
	testl	%ecx, %ecx
	cmovel	%eax, %edx
	movq	%r12, %rdi
	movl	$1106, %esi                     ## imm = 0x452
	callq	_write_phy_reg
	addl	$-3, %r13d
	cmpl	$1, %r13d
	movq	_LCNPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %r15
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	leaq	-376(%rbp), %rdx
	movl	$1, %ecx
	movl	$16, %r8d
	movl	$69, %r9d
	callq	_wlc_lcnphy_common_read_table
	movl	(%r15), %esi
	movq	%r12, %rdi
	leaq	-372(%rbp), %rdx
	movl	$1, %ecx
	movl	$16, %r8d
	movl	$69, %r9d
	callq	_wlc_lcnphy_common_write_table
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	(%rbx,%r14,4), %edx
	movq	%r12, %rdi
	movl	$1105, %esi                     ## imm = 0x451
	callq	_write_phy_reg
	movq	%r12, %rdi
	callq	_wlc_lcnphy_iqcal_wait
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r14, -400(%rbp)                ## 8-byte Spill
	movq	_LCNPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %r14
	leaq	-304(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	_LCNPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %r15
	movq	%r12, %rdx
	movl	%eax, %ecx
	movl	$16, %r8d
	movl	$96, %r9d
	callq	_wlc_lcnphy_common_read_table
	movl	(%r15), %ebx
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movq	%r14, %r12
	movl	%eax, %ecx
	movl	$16, %r8d
	movl	$64, %r9d
	callq	_wlc_lcnphy_common_write_table
	cmpl	$1, %r13d
	ja	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	leaq	-376(%rbp), %rdx
	movl	$1, %ecx
	movl	$16, %r8d
	movl	$69, %r9d
	callq	_wlc_lcnphy_common_write_table
	jmp	LBB0_25
LBB0_26:
	movq	_LCNPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	-328(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	movl	$16, %r8d
	movl	$96, %r9d
	callq	_wlc_lcnphy_common_read_table
	movl	$1, 8(%rbx)
	movl	(%r13), %esi
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movl	$4, %ecx
	movl	$16, %r8d
	movl	$80, %r9d
	callq	_wlc_lcnphy_common_write_table
	movl	(%r13), %esi
	movq	(%rbx), %rdx
	addq	$20, %rdx
	movq	%r12, %rdi
	movl	$2, %ecx
	movl	$16, %r8d
	movl	$85, %r9d
	callq	_wlc_lcnphy_common_write_table
LBB0_27:
	movq	%r12, %rdi
	movq	-392(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_wlc_lcnphy_tx_iqlo_loopback_cleanup
	movq	%rbx, %rdi
	callq	_kfree
	cmpl	$0, -364(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.28:
	movq	%r12, %rdi
	callq	_wlc_lcnphy_stop_tx_tone
LBB0_29:
	movq	%r12, %rdi
	movl	$1243, %esi                     ## imm = 0x4DB
	movl	-352(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1107, %esi                     ## imm = 0x453
	xorl	%edx, %edx
	callq	_write_phy_reg
	cmpl	$0, -348(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_31
## %bb.30:
	leaq	-416(%rbp), %rsi
	movq	%r12, %rdi
	callq	_wlc_lcnphy_set_tx_gain
LBB0_31:
	movq	%r12, %rdi
	movl	-356(%rbp), %esi                ## 4-byte Reload
	callq	_wlc_lcnphy_set_tx_pwr_ctrl
	movq	%r12, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	-360(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
	movq	%r12, %rdi
	movl	$1755, %esi                     ## imm = 0x6DB
	movl	-368(%rbp), %edx                ## 4-byte Reload
	callq	_write_phy_reg
LBB0_32:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.33:
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.wlc_lcnphy_tx_iqlo_cal.commands_recal
l___const.wlc_lcnphy_tx_iqlo_cal.commands_recal:
	.long	33844                           ## 0x8434
	.long	33588                           ## 0x8334
	.long	32900                           ## 0x8084
	.long	33383                           ## 0x8267
	.long	32854                           ## 0x8056
	.long	33332                           ## 0x8234

	.p2align	4                               ## @__const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal
l___const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal:
	.long	31383                           ## 0x7a97
	.long	31383                           ## 0x7a97
	.long	31383                           ## 0x7a97
	.long	31367                           ## 0x7a87
	.long	31367                           ## 0x7a87
	.long	31639                           ## 0x7b97

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_LCNPHY_TBL_ID_IQLOCAL,4,2      ## @LCNPHY_TBL_ID_IQLOCAL
	.comm	_LCNPHY_TX_PWR_CTRL_OFF,4,2     ## @LCNPHY_TX_PWR_CTRL_OFF
	.comm	_iqcal_gainparams_numgains_lcnphy,8,3 ## @iqcal_gainparams_numgains_lcnphy
	.comm	_tbl_iqcal_gainparams_lcnphy,8,3 ## @tbl_iqcal_gainparams_lcnphy
	.comm	_lcnphy_iqcal_loft_gainladder,8,3 ## @lcnphy_iqcal_loft_gainladder
	.comm	_lcnphy_iqcal_ir_gainladder,8,3 ## @lcnphy_iqcal_ir_gainladder
	.no_dead_strip	_wlc_lcnphy_tx_iqlo_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_tx_iqlo_cal
_wlc_lcnphy_tx_iqlo_cal:                ; @wlc_lcnphy_tx_iqlo_cal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #368]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #384]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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, x3
	mov	x24, x2
	mov	x28, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	add	x8, sp, #176
	movi.2d	v0, #0000000000000000
	stur	q0, [x8, #124]
	stp	q0, q0, [x8, #96]
Lloh3:
	adrp	x9, l___const.wlc_lcnphy_tx_iqlo_cal.commands_recal@PAGE
Lloh4:
	add	x9, x9, l___const.wlc_lcnphy_tx_iqlo_cal.commands_recal@PAGEOFF
	ldr	q0, [x9]
	str	q0, [x8, #64]
	ldr	x9, [x9, #16]
	str	x9, [x8, #80]
	str	q0, [x8, #32]
	str	x9, [x8, #48]
Lloh5:
	adrp	x9, l___const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal@PAGE
Lloh6:
	add	x9, x9, l___const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal@PAGEOFF
	ldr	q0, [x9]
	str	q0, [sp, #176]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [sp, #144]
	str	x9, [sp, #160]
	ldr	x20, [x0, #16]
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w0, #20
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_33
; %bb.1:
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x19
	mov	w1, #1755
	bl	_read_phy_reg
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1754
	bl	_read_phy_reg
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1754
	mov	w2, #64
	bl	_or_phy_reg
	mov	x0, x19
	mov	w1, #1755
	mov	w2, #3
	bl	_or_phy_reg
	add	x21, sp, #176
	cmp	w24, #129
	stp	w22, w20, [sp, #24]             ; 8-byte Folded Spill
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	b.eq	LBB0_4
; %bb.2:
	cmp	w24, #128
	b.ne	LBB0_6
; %bb.3:
	add	x21, sp, #144
	add	x25, sp, #208
	b	LBB0_5
LBB0_4:
	sub	x25, x29, #208
LBB0_5:
	sub	x24, x29, #176
	mov	x0, x25
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	b	LBB0_7
LBB0_6:
	mov	x25, #0
	mov	x24, #0
	mov	x27, #0
LBB0_7:
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
Lloh10:
	adrp	x26, _LCNPHY_TBL_ID_IQLOCAL@GOTPAGE
Lloh11:
	ldr	x26, [x26, _LCNPHY_TBL_ID_IQLOCAL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x24
	mov	w3, #11
	mov	w4, #16
	mov	w5, #64
	bl	_wlc_lcnphy_common_write_table
	mov	x0, x19
	mov	w1, #1754
	mov	w2, #65535
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1283
	mov	w2, #8
	mov	w3, #8
	bl	_mod_phy_reg
	mov	x0, x19
	bl	_wlc_lcnphy_get_tx_pwr_ctrl
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1188
	mov	w2, #4096
	mov	w3, #4096
	bl	_mod_phy_reg
Lloh12:
	adrp	x8, _LCNPHY_TX_PWR_CTRL_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LCNPHY_TX_PWR_CTRL_OFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wlc_lcnphy_set_tx_pwr_ctrl
	mov	x0, x19
	mov	w1, #1243
	bl	_read_phy_reg
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	mov	w1, #1243
	mov	w2, #1023
	mov	w3, #678
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1243
	mov	w2, #28672
	mov	w3, #8192
	bl	_mod_phy_reg
	mov	x0, x19
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	bl	_wlc_lcnphy_tx_iqlo_loopback
	mov	x0, x19
	bl	_wlc_lcnphy_tx_gain_override_enabled
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	cbz	w0, LBB0_9
; %bb.8:
	add	x1, sp, #56
	mov	x0, x19
	bl	_wlc_lcnphy_get_tx_gain
	cbnz	x28, LBB0_12
	b	LBB0_11
LBB0_9:
	cbnz	x28, LBB0_12
; %bb.10:
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_wlc_lcnphy_set_tx_pwr_by_index
LBB0_11:
	add	x28, sp, #72
	add	x1, sp, #72
	mov	x0, x19
	bl	_wlc_lcnphy_get_tx_gain
LBB0_12:
	ldp	w20, w23, [x28]
	ldr	w24, [x28, #8]
	ldr	w0, [x19, #8]
	bl	_CHSPEC_IS5G
	cmp	x0, #0
	cset	w22, ne
	ldr	x8, [x28]
	str	x8, [sp, #88]
	ldr	w8, [x28, #8]
	str	w8, [sp, #96]
	sub	x0, x29, #124
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh15:
	adrp	x8, _iqcal_gainparams_numgains_lcnphy@GOTPAGE
Lloh16:
	ldr	x8, [x8, _iqcal_gainparams_numgains_lcnphy@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w8, [x8, w22, uxtw #2]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.13:
	lsl	w9, w23, #4
	orr	w9, w9, w20, lsl #8
	orr	w9, w9, w24
Lloh18:
	adrp	x10, _tbl_iqcal_gainparams_lcnphy@GOTPAGE
Lloh19:
	ldr	x10, [x10, _tbl_iqcal_gainparams_lcnphy@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	x10, [x10, x22, lsl #3]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x10]
	ldr	w11, [x1]
	cmp	w9, w11
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_14
	b	LBB0_17
LBB0_16:
	ldr	w8, [x1, #12]!
	ldur	d0, [x1, #-8]
	str	d0, [sp, #88]
	str	w8, [sp, #96]
	sub	x0, x29, #124
	mov	w2, #20
	bl	_memcpy
LBB0_17:
	add	x1, sp, #88
	mov	x0, x19
	bl	_wlc_lcnphy_set_tx_gain
	mov	x0, x19
	mov	w1, #1107
	mov	w2, #2729
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #2365
	mov	w2, #192
	bl	_write_phy_reg
	ldr	w28, [x26]
Lloh21:
	adrp	x8, _lcnphy_iqcal_loft_gainladder@GOTPAGE
Lloh22:
	ldr	x8, [x8, _lcnphy_iqcal_loft_gainladder@GOTPAGEOFF]
Lloh23:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x28
	mov	x2, x20
	mov	w4, #16
	mov	w5, #0
	bl	_wlc_lcnphy_common_write_table
	ldr	w20, [x26]
Lloh24:
	adrp	x8, _lcnphy_iqcal_ir_gainladder@GOTPAGE
Lloh25:
	ldr	x8, [x8, _lcnphy_iqcal_ir_gainladder@GOTPAGEOFF]
Lloh26:
	ldr	x28, [x8]
	mov	x0, x28
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x28
	mov	w4, #16
	mov	w5, #32
	bl	_wlc_lcnphy_common_write_table
	ldr	x8, [x19]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_wlc_lcnphy_stop_tx_tone
	mov	w0, #5
	bl	_udelay
LBB0_19:
	mov	w23, #1
	mov	x0, x19
	mov	w1, #3750
	mov	w2, #88
	mov	w3, #1
	bl	_wlc_lcnphy_start_tx_tone
	mov	x0, x19
	mov	w1, #1754
	mov	w2, #65535
	bl	_write_phy_reg
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x27, LBB0_27
; %bb.20:
	sub	x24, x29, #124
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w20, [x26]
	ldr	x28, [x22]
	mov	x0, x28
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x28
	mov	w4, #16
	mov	w5, #96
	bl	_wlc_lcnphy_common_read_table
	add	x25, x25, #4
	add	x21, x21, #4
	subs	x27, x27, #1
	b.eq	LBB0_27
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #52]
	ldr	w8, [x25]
	ubfx	x20, x8, #8, #4
	ldr	w8, [x21]
	ldr	w9, [x24, x20, lsl #2]
	mov	x10, x8
	bfi	w10, w9, #8, #24
	cmp	w9, #0
	csel	w2, w8, w10, eq
	mov	x0, x19
	mov	w1, #1106
	bl	_write_phy_reg
	sub	w28, w20, #3
	cmp	w28, #1
	b.hi	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w1, [x26]
	add	x2, sp, #68
	mov	x0, x19
	mov	w3, #1
	mov	w4, #16
	mov	w5, #69
	bl	_wlc_lcnphy_common_read_table
	ldr	w1, [x26]
	add	x2, sp, #52
	mov	x0, x19
	mov	w3, #1
	mov	w4, #16
	mov	w5, #69
	bl	_wlc_lcnphy_common_write_table
LBB0_24:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #1105
	bl	_write_phy_reg
	mov	x0, x19
	bl	_wlc_lcnphy_iqcal_wait
	cbz	w0, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w20, [x26]
	add	x0, sp, #100
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #100
	mov	x0, x19
	mov	x1, x20
	mov	w4, #16
	mov	w5, #96
	bl	_wlc_lcnphy_common_read_table
	ldr	w20, [x26]
	add	x0, sp, #100
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #100
	mov	x0, x19
	mov	x1, x20
	mov	w4, #16
	mov	w5, #64
	bl	_wlc_lcnphy_common_write_table
	cmp	w28, #1
	b.hi	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w1, [x26]
	add	x2, sp, #68
	mov	x0, x19
	mov	w3, #1
	mov	w4, #16
	mov	w5, #69
	bl	_wlc_lcnphy_common_write_table
	b	LBB0_21
LBB0_27:
	ldr	w20, [x26]
	ldr	x25, [x22]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	mov	w4, #16
	mov	w5, #96
	bl	_wlc_lcnphy_common_read_table
	str	w23, [x22, #8]
	ldr	w1, [x26]
	ldr	x2, [x22]
	mov	x0, x19
	mov	w3, #4
	mov	w4, #16
	mov	w5, #80
	bl	_wlc_lcnphy_common_write_table
	ldr	w1, [x26]
	ldr	x8, [x22]
	add	x2, x8, #20
	mov	x0, x19
	mov	w3, #2
	mov	w4, #16
	mov	w5, #85
	bl	_wlc_lcnphy_common_write_table
LBB0_28:
	mov	x0, x19
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x1, x20
	bl	_wlc_lcnphy_tx_iqlo_loopback_cleanup
	mov	x0, x20
	bl	_kfree
	ldp	w8, w20, [sp, #24]              ; 8-byte Folded Reload
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	cbnz	w8, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_wlc_lcnphy_stop_tx_tone
LBB0_30:
	mov	x0, x19
	mov	w1, #1243
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1107
	mov	w2, #0
	bl	_write_phy_reg
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_32
; %bb.31:
	add	x1, sp, #56
	mov	x0, x19
	bl	_wlc_lcnphy_set_tx_gain
LBB0_32:
	mov	x0, x19
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	bl	_wlc_lcnphy_set_tx_pwr_ctrl
	mov	x0, x19
	mov	w1, #1754
	mov	x2, x21
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #1755
	mov	x2, x20
	bl	_write_phy_reg
LBB0_33:
	ldur	x8, [x29, #-104]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #400]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #384]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.wlc_lcnphy_tx_iqlo_cal.commands_recal
l___const.wlc_lcnphy_tx_iqlo_cal.commands_recal:
	.long	33844                           ; 0x8434
	.long	33588                           ; 0x8334
	.long	32900                           ; 0x8084
	.long	33383                           ; 0x8267
	.long	32854                           ; 0x8056
	.long	33332                           ; 0x8234

	.p2align	2                               ; @__const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal
l___const.wlc_lcnphy_tx_iqlo_cal.command_nums_recal:
	.long	31383                           ; 0x7a97
	.long	31383                           ; 0x7a97
	.long	31383                           ; 0x7a97
	.long	31367                           ; 0x7a87
	.long	31367                           ; 0x7a87
	.long	31639                           ; 0x7b97

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_LCNPHY_TBL_ID_IQLOCAL,4,2      ; @LCNPHY_TBL_ID_IQLOCAL
	.comm	_LCNPHY_TX_PWR_CTRL_OFF,4,2     ; @LCNPHY_TX_PWR_CTRL_OFF
	.comm	_iqcal_gainparams_numgains_lcnphy,8,3 ; @iqcal_gainparams_numgains_lcnphy
	.comm	_tbl_iqcal_gainparams_lcnphy,8,3 ; @tbl_iqcal_gainparams_lcnphy
	.comm	_lcnphy_iqcal_loft_gainladder,8,3 ; @lcnphy_iqcal_loft_gainladder
	.comm	_lcnphy_iqcal_ir_gainladder,8,3 ; @lcnphy_iqcal_ir_gainladder
	.no_dead_strip	_wlc_lcnphy_tx_iqlo_cal
.subsections_via_symbols
