	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_stopplayback_nphy      ## -- Begin function wlc_phy_stopplayback_nphy
	.p2align	4, 0x90
_wlc_phy_stopplayback_nphy:             ## @wlc_phy_stopplayback_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_2:
	movq	%rbx, %rdi
	movl	$199, %esi
	callq	_read_phy_reg
	testb	$1, %al
	jne	LBB0_3
## %bb.4:
	testb	$2, %al
	je	LBB0_6
## %bb.5:
	movq	_NPHY_iqloCalCmdGctl_IQLO_CAL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%rbx, %rdi
	movl	$194, %esi
	callq	_and_phy_reg
	jmp	LBB0_6
LBB0_3:
	movq	_NPHY_sampleCmd_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$195, %esi
	callq	_or_phy_reg
LBB0_6:
	movq	%rbx, %rdi
	movl	$195, %esi
	movl	$-5, %edx
	callq	_and_phy_reg
	movl	(%rbx), %eax
	movq	_BB_MULT_VALID_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_BB_MULT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -12(%rbp)
	movq	_NPHY_TBL_ID_IQLOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$87, %ecx
	movl	$16, %r8d
	callq	_wlc_phy_table_write_nphy
	movl	$0, (%rbx)
LBB0_8:
	movl	16(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_IS
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	16(%rbx), %edi
	movl	$8, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_12
LBB0_10:
	cmpl	$0, 4(%rbx)
	je	LBB0_12
## %bb.11:
	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
	movl	$0, 4(%rbx)
LBB0_12:
	cmpq	$0, 8(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wlc_phy_stay_in_carriersearch_nphy
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_sampleCmd_STOP,4,2        ## @NPHY_sampleCmd_STOP
	.comm	_NPHY_iqloCalCmdGctl_IQLO_CAL_EN,8,3 ## @NPHY_iqloCalCmdGctl_IQLO_CAL_EN
	.comm	_BB_MULT_VALID_MASK,4,2         ## @BB_MULT_VALID_MASK
	.comm	_BB_MULT_MASK,4,2               ## @BB_MULT_MASK
	.comm	_NPHY_TBL_ID_IQLOCAL,4,2        ## @NPHY_TBL_ID_IQLOCAL
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID1,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlc_phy_stopplayback_nphy      ; -- Begin function wlc_phy_stopplayback_nphy
	.p2align	2
_wlc_phy_stopplayback_nphy:             ; @wlc_phy_stopplayback_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_2:
	mov	x0, x19
	mov	w1, #199
	bl	_read_phy_reg
	tbnz	w0, #0, LBB0_5
; %bb.3:
	tbz	w0, #1, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _NPHY_iqloCalCmdGctl_IQLO_CAL_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPHY_iqloCalCmdGctl_IQLO_CAL_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	mov	w1, #194
	bl	_and_phy_reg
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _NPHY_sampleCmd_STOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPHY_sampleCmd_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #195
	bl	_or_phy_reg
LBB0_6:
	mov	x0, x19
	mov	w1, #195
	mov	w2, #-5
	bl	_and_phy_reg
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _BB_MULT_VALID_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BB_MULT_VALID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh9:
	adrp	x9, _BB_MULT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BB_MULT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [sp, #12]
Lloh12:
	adrp	x8, _NPHY_TBL_ID_IQLOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NPHY_TBL_ID_IQLOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x19
	mov	w2, #1
	mov	w3, #87
	mov	w4, #16
	bl	_wlc_phy_table_write_nphy
	str	wzr, [x19]
LBB0_8:
	ldr	w0, [x19, #16]
	mov	w1, #7
	bl	_NREV_IS
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #16]
	mov	w1, #8
	bl	_NREV_GE
	cbz	x0, LBB0_12
LBB0_10:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NPHY_REV7_RFCTRLOVERRIDE_ID1@GOTPAGEOFF]
Lloh17:
	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
	str	wzr, [x19, #4]
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #0
	bl	_wlc_phy_stay_in_carriersearch_nphy
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_sampleCmd_STOP,4,2        ; @NPHY_sampleCmd_STOP
	.comm	_NPHY_iqloCalCmdGctl_IQLO_CAL_EN,8,3 ; @NPHY_iqloCalCmdGctl_IQLO_CAL_EN
	.comm	_BB_MULT_VALID_MASK,4,2         ; @BB_MULT_VALID_MASK
	.comm	_BB_MULT_MASK,4,2               ; @BB_MULT_MASK
	.comm	_NPHY_TBL_ID_IQLOCAL,4,2        ; @NPHY_TBL_ID_IQLOCAL
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID1,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID1
.subsections_via_symbols
