	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_tx_power_ctl_idle_tssi
_b43_nphy_tx_power_ctl_idle_tssi:       ## @b43_nphy_tx_power_ctl_idle_tssi
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_20
## %bb.1:
	movq	%rdi, %rbx
	callq	_b43_nphy_ipa
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_b43_nphy_ipa_internal_tssi_setup
LBB0_3:
	movl	(%rbx), %eax
	cmpl	$19, %eax
	jl	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_b43_nphy_rf_ctl_override_rev19
	jmp	LBB0_9
LBB0_5:
	cmpl	$7, %eax
	jl	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_b43_nphy_rf_ctl_override_rev7
	jmp	LBB0_9
LBB0_7:
	cmpl	$3, %eax
	jl	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	xorl	%edx, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_b43_nphy_rf_ctl_override
LBB0_9:
	movq	%rbx, %rdi
	callq	_b43_nphy_stop_playback
	movq	%rbx, %rdi
	movl	$4000, %esi                     ## imm = 0xFA0
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_b43_nphy_tx_tone
	movl	$20, %edi
	callq	_udelay
	movq	_N_RSSI_TSSI_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_b43_nphy_poll_rssi
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_b43_nphy_stop_playback
	movq	_N_RSSI_W1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_rssi_select
	movl	(%rbx), %eax
	cmpl	$19, %eax
	jl	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_b43_nphy_rf_ctl_override_rev19
	jmp	LBB0_15
LBB0_11:
	cmpl	$7, %eax
	jl	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_b43_nphy_rf_ctl_override_rev7
	jmp	LBB0_15
LBB0_13:
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	xorl	%edx, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_b43_nphy_rf_ctl_override
LBB0_15:
	movl	(%rbx), %eax
	cmpl	$18, %eax
	jg	LBB0_20
## %bb.16:
	movl	%r15d, %edx
	cmpl	$3, %eax
	jl	LBB0_18
## %bb.17:
	movl	%r15d, %ecx
	shrl	$24, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movzbl	%dh, %edx
	movl	%edx, 8(%rax)
	jmp	LBB0_19
LBB0_18:
	movl	%r15d, %eax
	shrl	$16, %eax
	movzbl	%al, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movzbl	%dl, %ecx
	movl	%ecx, 8(%rax)
	movl	%r15d, %ecx
	shrl	$24, %ecx
	movzbl	%dh, %edx
LBB0_19:
	movl	%ecx, 4(%rax)
	movl	%edx, 12(%rax)
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.comm	_N_RSSI_TSSI_2G,4,2             ## @N_RSSI_TSSI_2G
	.comm	_N_RSSI_W1,4,2                  ## @N_RSSI_W1
	.no_dead_strip	_b43_nphy_tx_power_ctl_idle_tssi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_tx_power_ctl_idle_tssi
_b43_nphy_tx_power_ctl_idle_tssi:       ; @b43_nphy_tx_power_ctl_idle_tssi
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	stp	xzr, xzr, [sp, #8]
	ldp	x8, x21, [x0, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.1:
	mov	x19, x0
	bl	_b43_nphy_ipa
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_b43_nphy_ipa_internal_tssi_setup
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #19
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	mov	w5, #0
	bl	_b43_nphy_rf_ctl_override_rev19
	b	LBB0_9
LBB0_5:
	cmp	w8, #7
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	mov	w5, #0
	bl	_b43_nphy_rf_ctl_override_rev7
	b	LBB0_9
LBB0_7:
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #8192
	mov	w2, #0
	mov	w3, #3
	mov	w4, #0
	bl	_b43_nphy_rf_ctl_override
LBB0_9:
	mov	x0, x19
	bl	_b43_nphy_stop_playback
	mov	x0, x19
	mov	w1, #4000
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_b43_nphy_tx_tone
	mov	w0, #20
	bl	_udelay
Lloh6:
	adrp	x8, _N_RSSI_TSSI_2G@GOTPAGE
Lloh7:
	ldr	x8, [x8, _N_RSSI_TSSI_2G@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_b43_nphy_poll_rssi
	mov	x20, x0
	mov	x0, x19
	bl	_b43_nphy_stop_playback
Lloh9:
	adrp	x8, _N_RSSI_W1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _N_RSSI_W1@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_rssi_select
	ldr	w8, [x19]
	cmp	w8, #19
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #1
	mov	w5, #0
	bl	_b43_nphy_rf_ctl_override_rev19
	b	LBB0_15
LBB0_11:
	cmp	w8, #7
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #0
	mov	w3, #3
	mov	w4, #1
	mov	w5, #0
	bl	_b43_nphy_rf_ctl_override_rev7
	b	LBB0_15
LBB0_13:
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #8192
	mov	w2, #0
	mov	w3, #3
	mov	w4, #1
	bl	_b43_nphy_rf_ctl_override
LBB0_15:
	ldr	w8, [x19]
	cmp	w8, #18
	b.gt	LBB0_20
; %bb.16:
	cmp	w8, #3
	b.lt	LBB0_18
; %bb.17:
	lsr	w9, w20, #24
	ldr	x8, [x21]
	str	w9, [x8]
	ubfx	w10, w20, #8, #8
	str	w10, [x8, #8]
	b	LBB0_19
LBB0_18:
	ubfx	w9, w20, #16, #8
	ldr	x8, [x21]
	str	w9, [x8]
	and	w9, w20, #0xff
	str	w9, [x8, #8]
	lsr	w9, w20, #24
	ubfx	w10, w20, #8, #8
LBB0_19:
	str	w9, [x8, #4]
	str	w10, [x8, #12]
LBB0_20:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.comm	_N_RSSI_TSSI_2G,4,2             ; @N_RSSI_TSSI_2G
	.comm	_N_RSSI_W1,4,2                  ; @N_RSSI_W1
	.no_dead_strip	_b43_nphy_tx_power_ctl_idle_tssi
.subsections_via_symbols
