	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_papd_cal_setup_nphy
_wlc_phy_papd_cal_setup_nphy:           ## @wlc_phy_papd_cal_setup_nphy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %r13d
	xorl	$1, %r15d
	movl	8(%rdi), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.1:
	movl	8(%r14), %edi
	movl	$7, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	8(%r14), %edi
	movl	$8, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_read_lpf_bw_ctl_nphy
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	movl	$128, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
LBB0_4:
	movl	(%r14), %edi
	callq	_CHSPEC_IS2G
	movl	4(%r14), %ecx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	xorl	%edx, %edx
	cmpl	$5, %ecx
	jne	LBB0_9
## %bb.6:
	xorl	%edx, %edx
	testl	%r13d, %r13d
	sete	%dl
	shll	$5, %edx
	jmp	LBB0_9
LBB0_22:
	movq	%r14, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	%r13d, %ebx
	cmpl	%r13d, (%rax)
	movq	%rax, %r13
	sete	%sil
	xorl	$167, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	32(%r12), %rcx
	movl	%ebx, %esi
	movslq	%ebx, %rbx
	movq	%rax, (%rcx,%rbx,8)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	%esi, (%r13)
	movl	%esi, %r13d
	movl	$143, %eax
	movl	$165, %esi
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	24(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	xorl	%esi, %esi
	movl	%r13d, %r12d
	movq	_PHY_CORE_0@GOTPCREL(%rip), %r13
	cmpl	%r12d, (%r13)
	sete	%sil
	xorl	$167, %esi
	movq	%r14, %rdi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	cmpl	%r12d, (%r13)
	movl	$165, %esi
	movl	$143, %eax
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	$7, %edx
	movl	$7, %ecx
	callq	_mod_phy_reg
	movq	_RADIO_2056@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_VGA_MASTER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_READ_RADIO_REG2
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	_RADIO_2056@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	$43, %r9d
	callq	_WRITE_RADIO_REG2
	movl	(%r14), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	movq	_RADIO_2056@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_TXFBMIX_G@GOTPCREL(%rip), %rbx
	cmoveq	_TXFBMIX_A@GOTPCREL(%rip), %rbx
	movq	_INTPAG_MASTER@GOTPCREL(%rip), %r13
	cmoveq	_INTPAA_MASTER@GOTPCREL(%rip), %r13
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_READ_RADIO_REG2
	movq	8(%r15), %rcx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	movq	_RADIO_2056@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_READ_RADIO_REG2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_RADIO_2056@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	$3, %r9d
	callq	_WRITE_RADIO_REG2
	movq	_RADIO_2056@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	$4, %r9d
	callq	_WRITE_RADIO_REG2
	movq	%r14, %rdi
	movl	$4000, %esi                     ## imm = 0xFA0
	movl	$181, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	xorl	%eax, %eax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rbx
	cmpl	%r12d, (%rbx)
	setne	%al
	leal	663(,%rax,4), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rbx), %ecx
	setne	%al
	leal	663(,%rax,4), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r14, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlc_phy_rfctrl_override_nphy   ## TAILCALL
LBB0_7:
	addl	$-3, %ecx
	xorl	%edx, %edx
	cmpl	$5, %ecx
	ja	LBB0_9
## %bb.8:
	movslq	%ecx, %rax
	leaq	l_switch.table.wlc_phy_papd_cal_setup_nphy(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
LBB0_9:
	movl	$1, %ebx
	movl	%r13d, %r15d
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movl	$1, %r13d
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movq	_NPHY_REV7_RfctrlOverride_cmd_tx_pu@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_1tomany_nphy
	movl	(%r12), %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_1tomany_nphy
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPCREL(%rip), %r12
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$1, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$32, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movl	(%r12), %r9d
	movq	%r14, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpl	%r15d, (%rax)
	movq	%rax, %r12
	sete	%sil
	xorl	$167, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	32(%r13), %rcx
	movslq	%r15d, %rbx
	movq	%rax, (%rcx,%rbx,8)
	cmpl	%r15d, (%r12)
	movl	$143, %eax
	movl	$165, %esi
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	24(%r13), %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx,%rbx,8)
	xorl	%esi, %esi
	movq	%r12, %rbx
	cmpl	%r15d, (%r12)
	sete	%sil
	orl	$166, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	32(%r13), %rcx
	movslq	-44(%rbp), %r12                 ## 4-byte Folded Reload
	movq	%rax, (%rcx,%r12,8)
	cmpl	%r15d, (%rbx)
	movl	$143, %esi
	movl	$165, %eax
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_read_phy_reg
	movq	24(%r13), %rcx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rcx,%r12,8)
	xorl	%esi, %esi
	cmpl	%r15d, (%rbx)
	sete	%sil
	xorl	$167, %esi
	movq	%r14, %rdi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	cmpl	%r15d, (%rbx)
	movl	$165, %esi
	movl	$143, %eax
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
	xorl	%esi, %esi
	cmpl	%r15d, (%rbx)
	sete	%sil
	orl	$166, %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
	cmpl	%r15d, (%rbx)
	movl	$143, %esi
	movl	$165, %eax
	cmovel	%eax, %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_mod_phy_reg
	movl	(%r14), %edi
	callq	_CHSPEC_IS2G
	movq	_RADIO_2057@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testq	%rax, %rax
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	je	LBB0_20
## %bb.10:
	movq	_TXRXCOUPLE_2G_PWRUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_READ_RADIO_REG3
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	48(%r12), %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_TXRXCOUPLE_2G_ATTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_READ_RADIO_REG3
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	_TXRXCOUPLE_2G_PWRUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_READ_RADIO_REG3
	movq	48(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_TXRXCOUPLE_2G_ATTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_READ_RADIO_REG3
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %r12
	movl	(%r13), %edx
	movq	_TXRXCOUPLE_2G_PWRUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %r13d
	movl	%r15d, %ecx
	movl	$12, %r9d
	callq	_WRITE_RADIO_REG3
	movl	4(%r14), %eax
	cmpl	$8, %eax
	ja	LBB0_11
## %bb.12:
	movl	$88, %ecx
	btl	%eax, %ecx
	jb	LBB0_17
## %bb.13:
	movl	$384, %ecx                      ## imm = 0x180
	btl	%eax, %ecx
	movq	_RADIO_2057@GOTPCREL(%rip), %rbx
	jb	LBB0_18
## %bb.14:
	cmpl	$5, %eax
	jne	LBB0_15
## %bb.16:
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	_TXRXCOUPLE_2G_ATTEN@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	xorl	%eax, %eax
	movl	%r13d, %ecx
	testl	%r13d, %r13d
	sete	%al
	leal	(%rax,%rax,4), %r9d
	addl	$242, %r9d
	movq	%r14, %rdi
	jmp	LBB0_19
LBB0_20:
	movq	_TXRXCOUPLE_5G_PWRUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_READ_RADIO_REG3
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	48(%r12), %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%rcx,%r13,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	%r15d, %ecx
	movq	_TXRXCOUPLE_5G_ATTEN@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	%r14, %rdi
	callq	_READ_RADIO_REG3
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	_TXRXCOUPLE_5G_PWRUP@GOTPCREL(%rip), %r13
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_READ_RADIO_REG3
	movq	48(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_READ_RADIO_REG3
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	_RADIO_2057@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	movl	$12, %r9d
	callq	_WRITE_RADIO_REG3
	movl	4(%r14), %eax
	addl	$-7, %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	setb	%cl
	movl	(%rbx), %esi
	movq	_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	leal	240(,%rcx,4), %r9d
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_WRITE_RADIO_REG3
	movq	_TX@GOTPCREL(%rip), %r12
	jmp	LBB0_21
LBB0_17:
	movq	_RADIO_2057@GOTPCREL(%rip), %rbx
LBB0_18:
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	_TXRXCOUPLE_2G_ATTEN@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	$240, %r9d
LBB0_19:
	callq	_WRITE_RADIO_REG3
	movq	_TXRXCOUPLE_2G_PWRUP@GOTPCREL(%rip), %r13
LBB0_21:
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	xorl	%r9d, %r9d
	callq	_WRITE_RADIO_REG3
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	$255, %r9d
	callq	_WRITE_RADIO_REG3
	movq	%r14, %rdi
	movl	$4000, %esi                     ## imm = 0xFA0
	movl	$181, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	xorl	%eax, %eax
	movq	_PHY_CORE_0@GOTPCREL(%rip), %r15
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, (%r15)
	setne	%al
	leal	663(,%rax,4), %esi
	movq	_NPHY_PAPD_COMP_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpl	%ebx, (%r15)
	sete	%al
	movl	$676, %ebx                      ## imm = 0x2A4
	movl	$676, %esi                      ## imm = 0x2A4
	subl	%eax, %esi
	movq	%r14, %rdi
	movl	$8192, %edx                     ## imm = 0x2000
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpl	(%r15), %r13d
	setne	%al
	leal	663(,%rax,4), %esi
	movq	_NPHY_PAPD_COMP_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_mod_phy_reg
	xorl	%eax, %eax
	cmpl	(%r15), %r13d
	sete	%al
	subl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	xorl	%ecx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_phy_reg                    ## TAILCALL
LBB0_11:
	movq	_RADIO_2057@GOTPCREL(%rip), %rbx
LBB0_15:
	movq	_TXRXCOUPLE_2G_PWRUP@GOTPCREL(%rip), %r13
	movq	_TXRXCOUPLE_2G_ATTEN@GOTPCREL(%rip), %r15
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID1,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID1
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID0,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID0
	.comm	_NPHY_REV7_RfctrlOverride_cmd_tx_pu,4,2 ## @NPHY_REV7_RfctrlOverride_cmd_tx_pu
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID2,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID2
	.comm	_PHY_CORE_0,4,2                 ## @PHY_CORE_0
	.comm	_RADIO_2057,4,2                 ## @RADIO_2057
	.comm	_TX,4,2                         ## @TX
	.comm	_TXRXCOUPLE_2G_PWRUP,4,2        ## @TXRXCOUPLE_2G_PWRUP
	.comm	_TXRXCOUPLE_2G_ATTEN,4,2        ## @TXRXCOUPLE_2G_ATTEN
	.comm	_TXRXCOUPLE_5G_PWRUP,4,2        ## @TXRXCOUPLE_5G_PWRUP
	.comm	_TXRXCOUPLE_5G_ATTEN,4,2        ## @TXRXCOUPLE_5G_ATTEN
	.comm	_NPHY_PAPD_COMP_ON,4,2          ## @NPHY_PAPD_COMP_ON
	.comm	_NPHY_PAPD_COMP_OFF,4,2         ## @NPHY_PAPD_COMP_OFF
	.comm	_RADIO_2056,4,2                 ## @RADIO_2056
	.comm	_RX,4,2                         ## @RX
	.comm	_VGA_MASTER,4,2                 ## @VGA_MASTER
	.comm	_TXFBMIX_G,4,2                  ## @TXFBMIX_G
	.comm	_INTPAG_MASTER,4,2              ## @INTPAG_MASTER
	.comm	_TXFBMIX_A,4,2                  ## @TXFBMIX_A
	.comm	_INTPAA_MASTER,4,2              ## @INTPAA_MASTER
	.no_dead_strip	_wlc_phy_papd_cal_setup_nphy
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.wlc_phy_papd_cal_setup_nphy
l_switch.table.wlc_phy_papd_cal_setup_nphy:
	.long	0                               ## 0x0
	.long	80                              ## 0x50
	.long	0                               ## 0x0
	.long	80                              ## 0x50
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_papd_cal_setup_nphy
_wlc_phy_papd_cal_setup_nphy:           ; @wlc_phy_papd_cal_setup_nphy
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	sxtw	x24, w21
	eor	x28, x24, #0x1
	ldr	w0, [x0, #8]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_IS
Lloh0:
	adrp	x25, _NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #8
	bl	_NREV_GE
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_wlc_phy_read_lpf_bw_ctl_nphy
	mov	x2, x0
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #128
	mov	w3, #0
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
LBB0_4:
	ldr	w0, [x19]
	bl	_CHSPEC_IS2G
	ldr	w8, [x19, #4]
	cbz	x0, LBB0_7
; %bb.5:
	cmp	w21, #0
	cset	w9, eq
	lsl	w9, w9, #5
	cmp	w8, #5
	csel	w2, wzr, w9, ne
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
	mov	x0, x19
	mov	w1, #8
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
Lloh2:
	adrp	x9, _PHY_CORE_0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PHY_CORE_0@GOTPAGEOFF]
	ldr	w8, [x9]
	mov	x23, x9
	cmp	w8, w21
	mov	w25, #166
	cinc	w1, w25, ne
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x22, #32]
	lsl	x20, x24, #3
	str	x0, [x8, x20]
	ldr	w8, [x23]
	mov	w24, #165
	mov	w26, #143
	cmp	w8, w21
	csel	w1, w26, w24, eq
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x22, #24]
	str	x0, [x8, x20]
	ldr	w8, [x23]
	cmp	w8, w21
	cinc	w1, w25, ne
	mov	x0, x19
	mov	w2, #7
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	w8, [x23]
	cmp	w8, w21
	csel	w1, w26, w24, eq
	mov	x0, x19
	mov	w2, #7
	mov	w3, #7
	bl	_mod_phy_reg
Lloh4:
	adrp	x24, _RADIO_2056@GOTPAGE
Lloh5:
	ldr	x24, [x24, _RADIO_2056@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh6:
	adrp	x25, _RX@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RX@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh8:
	adrp	x26, _VGA_MASTER@GOTPAGE
Lloh9:
	ldr	x26, [x26, _VGA_MASTER@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG2
	ldr	x8, [x22, #16]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #43
	bl	_WRITE_RADIO_REG2
	ldr	w0, [x19]
	bl	_CHSPEC_IS2G
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh10:
	adrp	x8, _TXFBMIX_G@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TXFBMIX_G@GOTPAGEOFF]
Lloh12:
	adrp	x9, _TXFBMIX_A@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TXFBMIX_A@GOTPAGEOFF]
	cmp	x0, #0
	csel	x26, x9, x8, eq
Lloh14:
	adrp	x8, _INTPAG_MASTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTPAG_MASTER@GOTPAGEOFF]
Lloh16:
	adrp	x9, _INTPAA_MASTER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INTPAA_MASTER@GOTPAGEOFF]
	csel	x27, x9, x8, eq
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG2
	ldr	x8, [x22, #8]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	mov	x23, x28
Lloh18:
	adrp	x28, _TX@GOTPAGE
Lloh19:
	ldr	x28, [x28, _TX@GOTPAGEOFF]
	ldr	w2, [x28]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG2
	ldr	x8, [x22]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #3
	bl	_WRITE_RADIO_REG2
	ldr	w1, [x24]
	ldr	w2, [x28]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #4
	bl	_WRITE_RADIO_REG2
	mov	x0, x19
	mov	w1, #4000
	mov	w2, #181
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
Lloh20:
	adrp	x24, _PHY_CORE_0@GOTPAGE
Lloh21:
	ldr	x24, [x24, _PHY_CORE_0@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w20, #667
	mov	w22, #663
	cmp	w8, w21
	csel	w1, w22, w20, eq
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	bl	_mod_phy_reg
	ldr	w8, [x24]
	cmp	w23, w8
	csel	w1, w22, w20, eq
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	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
	b	_wlc_phy_rfctrl_override_nphy
LBB0_7:
	sub	w8, w8, #3
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.8:
Lloh22:
	adrp	x9, l_switch.table.wlc_phy_papd_cal_setup_nphy@PAGE
Lloh23:
	add	x9, x9, l_switch.table.wlc_phy_papd_cal_setup_nphy@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
	b	LBB0_10
LBB0_9:
	mov	w2, #0
LBB0_10:
	mov	w20, #1
	lsl	w23, w20, w21
Lloh24:
	adrp	x26, _NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPAGE
Lloh25:
	ldr	x26, [x26, _NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPAGEOFF]
	ldr	w5, [x26]
	mov	x0, x19
	mov	w1, #2048
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
Lloh26:
	adrp	x27, _NPHY_REV7_RfctrlOverride_cmd_tx_pu@GOTPAGE
Lloh27:
	ldr	x27, [x27, _NPHY_REV7_RfctrlOverride_cmd_tx_pu@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_1tomany_nphy
	ldr	w1, [x27]
	lsl	w3, w20, w28
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_1tomany_nphy
	ldr	w5, [x26]
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
Lloh28:
	adrp	x8, _NPHY_REV7_RFCTRLOVERRIDE_ID2@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NPHY_REV7_RFCTRLOVERRIDE_ID2@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #1
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #256
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #512
	mov	w2, #1
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #8
	mov	w2, #1
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #32
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	ldr	w5, [x25]
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
Lloh31:
	adrp	x27, _PHY_CORE_0@GOTPAGE
Lloh32:
	ldr	x27, [x27, _PHY_CORE_0@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w21
	mov	w25, #166
	cinc	w1, w25, ne
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x22, #32]
	lsl	x20, x24, #3
	str	x0, [x8, x20]
	ldr	w8, [x27]
	mov	w24, #165
	mov	w26, #143
	cmp	w8, w21
	csel	w1, w26, w24, eq
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x22, #24]
	str	x0, [x8, x20]
	ldr	w8, [x27]
	cmp	w8, w21
	cinc	w1, w25, eq
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x22, #32]
	mov	x23, x28
	lsl	x28, x28, #3
	str	x0, [x8, x28]
	ldr	w8, [x27]
	cmp	w8, w21
	csel	w1, w24, w26, eq
	mov	x0, x19
	bl	_read_phy_reg
	ldr	x8, [x22, #24]
	str	x0, [x8, x28]
	ldr	w8, [x27]
	cmp	w8, w21
	cinc	w1, w25, ne
	mov	x0, x19
	mov	w2, #4
	mov	w3, #0
	bl	_mod_phy_reg
	ldr	w8, [x27]
	cmp	w8, w21
	csel	w1, w26, w24, eq
	mov	x0, x19
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	ldr	w8, [x27]
	cmp	w8, w21
	cinc	w1, w25, eq
	mov	x0, x19
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	ldr	w8, [x27]
	cmp	w8, w21
	csel	w1, w24, w26, eq
	mov	x0, x19
	mov	w2, #4
	mov	w3, #4
	bl	_mod_phy_reg
	ldr	w0, [x19]
	bl	_CHSPEC_IS2G
Lloh33:
	adrp	x24, _RADIO_2057@GOTPAGE
Lloh34:
	ldr	x24, [x24, _RADIO_2057@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh35:
	adrp	x25, _TX@GOTPAGE
Lloh36:
	ldr	x25, [x25, _TX@GOTPAGEOFF]
	ldr	w2, [x25]
	cbz	x0, LBB0_15
; %bb.11:
Lloh37:
	adrp	x27, _TXRXCOUPLE_2G_PWRUP@GOTPAGE
Lloh38:
	ldr	x27, [x27, _TXRXCOUPLE_2G_PWRUP@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #48]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh39:
	adrp	x26, _TXRXCOUPLE_2G_ATTEN@GOTPAGE
Lloh40:
	ldr	x26, [x26, _TXRXCOUPLE_2G_ATTEN@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #40]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x23
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #48]
	str	x0, [x8, x28]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x20, x23
	mov	x3, x23
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #40]
	str	x0, [x8, x28]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #12
	bl	_WRITE_RADIO_REG3
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.hi	LBB0_21
; %bb.12:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #88
	tst	w9, w10
	b.ne	LBB0_16
; %bb.13:
	tst	w9, #0x180
	mov	x23, x20
	b.eq	LBB0_17
; %bb.14:
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #240
	b	LBB0_19
LBB0_15:
Lloh41:
	adrp	x27, _TXRXCOUPLE_5G_PWRUP@GOTPAGE
Lloh42:
	ldr	x27, [x27, _TXRXCOUPLE_5G_PWRUP@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #48]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh43:
	adrp	x26, _TXRXCOUPLE_5G_ATTEN@GOTPAGE
Lloh44:
	ldr	x26, [x26, _TXRXCOUPLE_5G_ATTEN@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #40]
	str	x0, [x8, x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x23
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #48]
	str	x0, [x8, x28]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x23
	bl	_READ_RADIO_REG3
	ldr	x8, [x22, #40]
	str	x0, [x8, x28]
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #12
	bl	_WRITE_RADIO_REG3
	ldr	w8, [x19, #4]
	sub	w8, w8, #7
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	w9, #240
	mov	w10, #244
	cmp	w8, #2
	csel	w5, w10, w9, lo
	mov	x0, x19
	mov	x3, x21
	bl	_WRITE_RADIO_REG3
	b	LBB0_20
LBB0_16:
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x21
	mov	w5, #240
	bl	_WRITE_RADIO_REG3
Lloh45:
	adrp	x27, _TXRXCOUPLE_2G_PWRUP@GOTPAGE
Lloh46:
	ldr	x27, [x27, _TXRXCOUPLE_2G_PWRUP@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_20
LBB0_17:
	cmp	w8, #5
	b.ne	LBB0_20
; %bb.18:
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	w8, #242
	mov	w9, #247
	cmp	w21, #0
	csel	w5, w9, w8, eq
	mov	x0, x19
	mov	x3, x21
LBB0_19:
	bl	_WRITE_RADIO_REG3
Lloh47:
	adrp	x27, _TXRXCOUPLE_2G_PWRUP@GOTPAGE
Lloh48:
	ldr	x27, [x27, _TXRXCOUPLE_2G_PWRUP@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x27]
	mov	x0, x19
	mov	x3, x23
	mov	w5, #0
	bl	_WRITE_RADIO_REG3
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w4, [x26]
	mov	x0, x19
	mov	x3, x23
	mov	w5, #255
	bl	_WRITE_RADIO_REG3
	mov	x0, x19
	mov	w1, #4000
	mov	w2, #181
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
Lloh49:
	adrp	x24, _PHY_CORE_0@GOTPAGE
Lloh50:
	ldr	x24, [x24, _PHY_CORE_0@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w20, #667
	mov	w22, #663
	cmp	w8, w21
	csel	w1, w22, w20, eq
Lloh51:
	adrp	x8, _NPHY_PAPD_COMP_ON@GOTPAGE
Lloh52:
	ldr	x8, [x8, _NPHY_PAPD_COMP_ON@GOTPAGEOFF]
Lloh53:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mod_phy_reg
	ldr	w8, [x24]
	cmp	w8, w21
	mov	w21, #675
	cinc	w1, w21, ne
	mov	x0, x19
	mov	w2, #8192
	mov	w3, #8192
	bl	_mod_phy_reg
	ldr	w8, [x24]
	cmp	w23, w8
	csel	w1, w22, w20, eq
Lloh54:
	adrp	x8, _NPHY_PAPD_COMP_OFF@GOTPAGE
Lloh55:
	ldr	x8, [x8, _NPHY_PAPD_COMP_OFF@GOTPAGEOFF]
Lloh56:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mod_phy_reg
	ldr	w8, [x24]
	cmp	w23, w8
	cinc	w1, w21, ne
	mov	x0, x19
	mov	w2, #8192
	mov	w3, #0
	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
	b	_mod_phy_reg
LBB0_21:
	mov	x23, x20
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID1,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID1
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID0,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID0
	.comm	_NPHY_REV7_RfctrlOverride_cmd_tx_pu,4,2 ; @NPHY_REV7_RfctrlOverride_cmd_tx_pu
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID2,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID2
	.comm	_PHY_CORE_0,4,2                 ; @PHY_CORE_0
	.comm	_RADIO_2057,4,2                 ; @RADIO_2057
	.comm	_TX,4,2                         ; @TX
	.comm	_TXRXCOUPLE_2G_PWRUP,4,2        ; @TXRXCOUPLE_2G_PWRUP
	.comm	_TXRXCOUPLE_2G_ATTEN,4,2        ; @TXRXCOUPLE_2G_ATTEN
	.comm	_TXRXCOUPLE_5G_PWRUP,4,2        ; @TXRXCOUPLE_5G_PWRUP
	.comm	_TXRXCOUPLE_5G_ATTEN,4,2        ; @TXRXCOUPLE_5G_ATTEN
	.comm	_NPHY_PAPD_COMP_ON,4,2          ; @NPHY_PAPD_COMP_ON
	.comm	_NPHY_PAPD_COMP_OFF,4,2         ; @NPHY_PAPD_COMP_OFF
	.comm	_RADIO_2056,4,2                 ; @RADIO_2056
	.comm	_RX,4,2                         ; @RX
	.comm	_VGA_MASTER,4,2                 ; @VGA_MASTER
	.comm	_TXFBMIX_G,4,2                  ; @TXFBMIX_G
	.comm	_INTPAG_MASTER,4,2              ; @INTPAG_MASTER
	.comm	_TXFBMIX_A,4,2                  ; @TXFBMIX_A
	.comm	_INTPAA_MASTER,4,2              ; @INTPAA_MASTER
	.no_dead_strip	_wlc_phy_papd_cal_setup_nphy
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.wlc_phy_papd_cal_setup_nphy
l_switch.table.wlc_phy_papd_cal_setup_nphy:
	.long	0                               ; 0x0
	.long	80                              ; 0x50
	.long	0                               ; 0x0
	.long	80                              ; 0x50
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
