	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_txcal_phycleanup_nphy
_wlc_phy_txcal_phycleanup_nphy:         ## @wlc_phy_txcal_phycleanup_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movq	(%rbx), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	$166, %esi
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	%ecx, %edx
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movl	$167, %esi
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$143, %esi
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	12(%rax), %edx
	movq	%rbx, %rdi
	movl	$165, %esi
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	16(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_write_phy_reg
	movq	_NPHY_TBL_ID_AFECTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	(%rbx), %r9
	addq	$20, %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$3, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movl	(%r14), %esi
	movq	(%rbx), %r9
	addq	$24, %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$19, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	(%rbx), %rax
	movl	28(%rax), %edx
	movq	%rbx, %rdi
	movl	$145, %esi
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	32(%rax), %edx
	movq	%rbx, %rdi
	movl	$146, %esi
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	36(%rax), %edx
	movq	%rbx, %rdi
	movl	$663, %esi                      ## imm = 0x297
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	40(%rax), %edx
	movq	%rbx, %rdi
	movl	$667, %esi                      ## imm = 0x29B
	callq	_write_phy_reg
	movl	8(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movl	$8, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	$128, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
LBB0_4:
	movq	%rbx, %rdi
	callq	_wlc_phy_resetcca_nphy
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.5:
	cmpl	$0, 16(%rbx)
	je	LBB0_6
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	$61440, %edx                    ## imm = 0xF000
	callq	_mod_phy_reg
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movq	%rbx, %rdi
	movl	$167, %esi
	movl	$61440, %edx                    ## imm = 0xF000
	callq	_mod_phy_reg
	movq	(%rbx), %rax
	movl	8(%rax), %edx
	movq	%rbx, %rdi
	movl	$165, %esi
	callq	_write_phy_reg
	movq	_NPHY_TBL_ID_AFECTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	(%rbx), %r9
	addq	$12, %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$2, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movl	(%r14), %esi
	movq	(%rbx), %r9
	addq	$16, %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$18, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movq	(%rbx), %rax
	movl	20(%rax), %edx
	movq	%rbx, %rdi
	movl	$145, %esi
	callq	_write_phy_reg
	movq	(%rbx), %rax
	movl	24(%rax), %edx
	movq	%rbx, %rdi
	movl	$146, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_write_phy_reg                  ## TAILCALL
LBB0_6:
	movl	8(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	je	LBB0_7
## %bb.11:
	movl	12(%rbx), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	movq	_RADIO_2057_PAD2G_TUNE_PUS_CORE0@GOTPCREL(%rip), %rax
	cmoveq	_RADIO_2057_IPA5G_CASCOFFV_PU_CORE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RADIO_2057_PAD2G_TUNE_PUS_CORE1@GOTPCREL(%rip), %r14
	cmoveq	_RADIO_2057_IPA5G_CASCOFFV_PU_CORE1@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_radio_reg
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_mod_radio_reg
	movq	_RADIO_2057_OVR_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_radio_reg                  ## TAILCALL
LBB0_7:
	movl	8(%rbx), %edi
	movl	$8, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wlc_phy_rfctrl_override_nphy_rev7 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_TBL_ID_AFECTRL,4,2        ## @NPHY_TBL_ID_AFECTRL
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID1,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID1
	.comm	_RADIO_2057_PAD2G_TUNE_PUS_CORE0,4,2 ## @RADIO_2057_PAD2G_TUNE_PUS_CORE0
	.comm	_RADIO_2057_PAD2G_TUNE_PUS_CORE1,4,2 ## @RADIO_2057_PAD2G_TUNE_PUS_CORE1
	.comm	_RADIO_2057_IPA5G_CASCOFFV_PU_CORE0,4,2 ## @RADIO_2057_IPA5G_CASCOFFV_PU_CORE0
	.comm	_RADIO_2057_IPA5G_CASCOFFV_PU_CORE1,4,2 ## @RADIO_2057_IPA5G_CASCOFFV_PU_CORE1
	.comm	_RADIO_2057_OVR_REG0,4,2        ## @RADIO_2057_OVR_REG0
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID0,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID0
	.no_dead_strip	_wlc_phy_txcal_phycleanup_nphy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_txcal_phycleanup_nphy
_wlc_phy_txcal_phycleanup_nphy:         ; @wlc_phy_txcal_phycleanup_nphy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	w1, #3
	bl	_NREV_GE
	ldr	x8, [x19]
	ldr	w3, [x8]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #166
	mov	x2, x3
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #167
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #143
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #12]
	mov	x0, x19
	mov	w1, #165
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #16]
	mov	x0, x19
	mov	w1, #1
	bl	_write_phy_reg
Lloh0:
	adrp	x20, _NPHY_TBL_ID_AFECTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NPHY_TBL_ID_AFECTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [x19]
	add	x5, x8, #20
	mov	x0, x19
	mov	w2, #1
	mov	w3, #3
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	w1, [x20]
	ldr	x8, [x19]
	add	x5, x8, #24
	mov	x0, x19
	mov	w2, #1
	mov	w3, #19
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	x8, [x19]
	ldr	w2, [x8, #28]
	mov	x0, x19
	mov	w1, #145
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #32]
	mov	x0, x19
	mov	w1, #146
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #36]
	mov	x0, x19
	mov	w1, #663
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #40]
	mov	x0, x19
	mov	w1, #667
	bl	_write_phy_reg
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_IS
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #8
	bl	_NREV_GE
	cbz	x0, LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w1, #128
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_wlc_phy_rfctrl_override_nphy_rev7
LBB0_4:
	mov	x0, x19
	bl	_wlc_phy_resetcca_nphy
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	w1, #166
	mov	w2, #61440
	bl	_mod_phy_reg
	ldr	x8, [x19]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w1, #167
	mov	w2, #61440
	bl	_mod_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #165
	bl	_write_phy_reg
Lloh5:
	adrp	x20, _NPHY_TBL_ID_AFECTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NPHY_TBL_ID_AFECTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x8, [x19]
	add	x5, x8, #12
	mov	x0, x19
	mov	w2, #1
	mov	w3, #2
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	w1, [x20]
	ldr	x8, [x19]
	add	x5, x8, #16
	mov	x0, x19
	mov	w2, #1
	mov	w3, #18
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	ldr	x8, [x19]
	ldr	w2, [x8, #20]
	mov	x0, x19
	mov	w1, #145
	bl	_write_phy_reg
	ldr	x8, [x19]
	ldr	w2, [x8, #24]
	mov	x0, x19
	mov	w1, #146
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_write_phy_reg
LBB0_8:
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_IS
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #12]
	bl	_CHSPEC_IS2G
Lloh7:
	adrp	x8, _RADIO_2057_IPA5G_CASCOFFV_PU_CORE0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RADIO_2057_IPA5G_CASCOFFV_PU_CORE0@GOTPAGEOFF]
Lloh9:
	adrp	x9, _RADIO_2057_PAD2G_TUNE_PUS_CORE0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADIO_2057_PAD2G_TUNE_PUS_CORE0@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _RADIO_2057_IPA5G_CASCOFFV_PU_CORE1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RADIO_2057_IPA5G_CASCOFFV_PU_CORE1@GOTPAGEOFF]
Lloh13:
	adrp	x9, _RADIO_2057_PAD2G_TUNE_PUS_CORE1@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RADIO_2057_PAD2G_TUNE_PUS_CORE1@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	bl	_mod_radio_reg
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	bl	_mod_radio_reg
Lloh15:
	adrp	x8, _RADIO_2057_OVR_REG0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RADIO_2057_OVR_REG0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #16
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_radio_reg
LBB0_10:
	ldr	w0, [x19, #8]
	mov	w1, #8
	bl	_NREV_GE
	cbz	x0, LBB0_6
; %bb.11:
Lloh18:
	adrp	x8, _NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	mov	w3, #3
	mov	w4, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wlc_phy_rfctrl_override_nphy_rev7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_TBL_ID_AFECTRL,4,2        ; @NPHY_TBL_ID_AFECTRL
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID1,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID1
	.comm	_RADIO_2057_PAD2G_TUNE_PUS_CORE0,4,2 ; @RADIO_2057_PAD2G_TUNE_PUS_CORE0
	.comm	_RADIO_2057_PAD2G_TUNE_PUS_CORE1,4,2 ; @RADIO_2057_PAD2G_TUNE_PUS_CORE1
	.comm	_RADIO_2057_IPA5G_CASCOFFV_PU_CORE0,4,2 ; @RADIO_2057_IPA5G_CASCOFFV_PU_CORE0
	.comm	_RADIO_2057_IPA5G_CASCOFFV_PU_CORE1,4,2 ; @RADIO_2057_IPA5G_CASCOFFV_PU_CORE1
	.comm	_RADIO_2057_OVR_REG0,4,2        ; @RADIO_2057_OVR_REG0
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID0,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID0
	.no_dead_strip	_wlc_phy_txcal_phycleanup_nphy
.subsections_via_symbols
