	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_txpwrctrl_idle_tssi_nphy
_wlc_phy_txpwrctrl_idle_tssi_nphy:      ## @wlc_phy_txpwrctrl_idle_tssi_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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_SCAN_RM_IN_PROGRESS
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movq	%rbx, %rdi
	callq	_PLT_INPROG_PHY
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movq	%rbx, %rdi
	callq	_PHY_MUTED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:
	movq	%rbx, %rdi
	callq	_PHY_IPA
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_wlc_phy_ipa_internal_tssi_setup_nphy
LBB0_5:
	movl	8(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	jmp	LBB0_9
LBB0_7:
	movl	8(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
LBB0_9:
	movq	%rbx, %rdi
	callq	_wlc_phy_stopplayback_nphy
	movq	%rbx, %rdi
	movl	$4000, %esi                     ## imm = 0xFA0
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wlc_phy_tx_tone_nphy
	movl	$20, %edi
	callq	_udelay
	movq	_NPHY_RSSI_SEL_TSSI_2G@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_wlc_phy_poll_rssi_nphy
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_wlc_phy_stopplayback_nphy
	movq	_RADIO_MIMO_CORESEL_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wlc_phy_rssisel_nphy
	movl	8(%rbx), %edi
	movl	$7, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_wlc_phy_rfctrl_override_nphy_rev7
	jmp	LBB0_13
LBB0_11:
	movl	8(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_wlc_phy_rfctrl_override_nphy
LBB0_13:
	movl	8(%rbx), %edi
	movl	$3, %esi
	callq	_NREV_GE
	movl	%r14d, %edi
	movl	%r14d, %esi
	shrl	$24, %esi
	movq	_PHY_CORE_0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	shlq	$4, %rdx
	movq	(%rbx), %rcx
	movq	%rsi, 8(%rcx,%rdx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rsi, (%rcx,%rdx)
	movl	%edi, %eax
	movzbl	%ah, %edx
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	shlq	$4, %rsi
	movq	%rdx, 8(%rcx,%rsi)
	jmp	LBB0_16
LBB0_15:
	movl	%edi, %ebx
	movzbl	%bh, %esi
	movq	_PHY_CORE_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	shlq	$4, %rdi
	movq	%rsi, 8(%rcx,%rdi)
	movl	%ebx, %esi
	shrl	$16, %esi
	movzbl	%sil, %esi
	movq	%rsi, (%rcx,%rdx)
	movzbl	%bl, %edx
LBB0_16:
	shlq	$4, %rax
	movq	%rdx, (%rcx,%rax)
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID0,4,2 ## @NPHY_REV7_RFCTRLOVERRIDE_ID0
	.comm	_NPHY_RSSI_SEL_TSSI_2G,8,3      ## @NPHY_RSSI_SEL_TSSI_2G
	.comm	_RADIO_MIMO_CORESEL_OFF,4,2     ## @RADIO_MIMO_CORESEL_OFF
	.comm	_PHY_CORE_0,8,3                 ## @PHY_CORE_0
	.comm	_PHY_CORE_1,8,3                 ## @PHY_CORE_1
	.no_dead_strip	_wlc_phy_txpwrctrl_idle_tssi_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_txpwrctrl_idle_tssi_nphy
_wlc_phy_txpwrctrl_idle_tssi_nphy:      ; @wlc_phy_txpwrctrl_idle_tssi_nphy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_SCAN_RM_IN_PROGRESS
	cbnz	x0, LBB0_17
; %bb.1:
	mov	x0, x19
	bl	_PLT_INPROG_PHY
	cbnz	x0, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_PHY_MUTED
	cbnz	x0, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_PHY_IPA
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_wlc_phy_ipa_internal_tssi_setup_nphy
LBB0_5:
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_GE
Lloh3:
	adrp	x21, _NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NPHY_REV7_RFCTRLOVERRIDE_ID0@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w5, [x21]
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #8]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #8192
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	bl	_wlc_phy_rfctrl_override_nphy
LBB0_9:
	mov	x0, x19
	bl	_wlc_phy_stopplayback_nphy
	mov	x0, x19
	mov	w1, #4000
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_wlc_phy_tx_tone_nphy
	mov	w0, #20
	bl	_udelay
Lloh5:
	adrp	x8, _NPHY_RSSI_SEL_TSSI_2G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NPHY_RSSI_SEL_TSSI_2G@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_wlc_phy_poll_rssi_nphy
	mov	x20, x0
	mov	x0, x19
	bl	_wlc_phy_stopplayback_nphy
Lloh8:
	adrp	x8, _RADIO_MIMO_CORESEL_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADIO_MIMO_CORESEL_OFF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wlc_phy_rssisel_nphy
	ldr	w0, [x19, #8]
	mov	w1, #7
	bl	_NREV_GE
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w5, [x21]
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #1
	bl	_wlc_phy_rfctrl_override_nphy_rev7
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19, #8]
	mov	w1, #3
	bl	_NREV_GE
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #8192
	mov	w2, #0
	mov	w3, #3
	mov	w4, #1
	bl	_wlc_phy_rfctrl_override_nphy
LBB0_13:
	ldr	w0, [x19, #8]
	mov	w1, #3
	bl	_NREV_GE
	lsr	w9, w20, #24
	ldr	x8, [x19]
Lloh11:
	adrp	x10, _PHY_CORE_0@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PHY_CORE_0@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x11, x8, x10, lsl #4
	str	x9, [x11, #8]
	cbz	x0, LBB0_15
; %bb.14:
	lsl	x10, x10, #4
	str	x9, [x8, x10]
	ubfx	w10, w20, #8, #8
Lloh14:
	adrp	x9, _PHY_CORE_1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PHY_CORE_1@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x11, x8, x9, lsl #4
	str	x10, [x11, #8]
	b	LBB0_16
LBB0_15:
	ubfx	w11, w20, #8, #8
Lloh17:
	adrp	x9, _PHY_CORE_1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PHY_CORE_1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x12, x8, x9, lsl #4
	str	x11, [x12, #8]
	ubfx	w11, w20, #16, #8
	lsl	x10, x10, #4
	str	x11, [x8, x10]
	and	w10, w20, #0xff
LBB0_16:
	lsl	x9, x9, #4
	str	x10, [x8, x9]
LBB0_17:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NPHY_REV7_RFCTRLOVERRIDE_ID0,4,2 ; @NPHY_REV7_RFCTRLOVERRIDE_ID0
	.comm	_NPHY_RSSI_SEL_TSSI_2G,8,3      ; @NPHY_RSSI_SEL_TSSI_2G
	.comm	_RADIO_MIMO_CORESEL_OFF,4,2     ; @RADIO_MIMO_CORESEL_OFF
	.comm	_PHY_CORE_0,8,3                 ; @PHY_CORE_0
	.comm	_PHY_CORE_1,8,3                 ; @PHY_CORE_1
	.no_dead_strip	_wlc_phy_txpwrctrl_idle_tssi_nphy
.subsections_via_symbols
