	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_restore_rssi_cal
_b43_nphy_restore_rssi_cal:             ## @b43_nphy_restore_rssi_cal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	16(%rdi), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 36(%rbx)
	je	LBB0_11
## %bb.2:
	leaq	24(%rbx), %rax
	addq	$16, %rbx
	jmp	LBB0_5
LBB0_3:
	cmpl	$0, 32(%rbx)
	je	LBB0_11
## %bb.4:
	leaq	8(%rbx), %rax
LBB0_5:
	movq	(%rbx), %r14
	movl	(%r12), %ecx
	cmpl	$18, %ecx
	jg	LBB0_10
## %bb.6:
	movq	(%rax), %r15
	cmpl	$7, %ecx
	jl	LBB0_8
## %bb.7:
	movq	_R2057_NB_MASTER_CORE0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R2057_VCM_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	notl	%edx
	movl	(%r15), %ecx
	movq	%r12, %rdi
	callq	_b43_radio_maskset
	movq	_R2057_NB_MASTER_CORE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	notl	%edx
	movl	4(%r15), %ecx
	movq	%r12, %rdi
	jmp	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_B2056_RX0@GOTPCREL(%rip), %rax
	movq	_B2056_RX_RSSI_MISC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movl	(%r15), %ecx
	movq	%r12, %rdi
	movl	$227, %edx
	callq	_b43_radio_maskset
	movq	_B2056_RX1@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movl	4(%r15), %ecx
	movq	%r12, %rdi
	movl	$227, %edx
LBB0_9:
	callq	_b43_radio_maskset
LBB0_10:
	movq	_B43_NPHY_RSSIMC_0I_RSSI_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_0Q_RSSI_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_1I_RSSI_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_1Q_RSSI_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_0I_RSSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_0Q_RSSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_1I_RSSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_1Q_RSSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_0I_RSSI_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_0Q_RSSI_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_1I_RSSI_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	40(%r14), %edx
	movq	%r12, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_RSSIMC_1Q_RSSI_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	44(%r14), %edx
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_R2057_NB_MASTER_CORE0,4,2      ## @R2057_NB_MASTER_CORE0
	.comm	_R2057_VCM_MASK,4,2             ## @R2057_VCM_MASK
	.comm	_R2057_NB_MASTER_CORE1,4,2      ## @R2057_NB_MASTER_CORE1
	.comm	_B2056_RX0,4,2                  ## @B2056_RX0
	.comm	_B2056_RX_RSSI_MISC,4,2         ## @B2056_RX_RSSI_MISC
	.comm	_B2056_RX1,4,2                  ## @B2056_RX1
	.comm	_B43_NPHY_RSSIMC_0I_RSSI_Z,4,2  ## @B43_NPHY_RSSIMC_0I_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_0Q_RSSI_Z,4,2  ## @B43_NPHY_RSSIMC_0Q_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_1I_RSSI_Z,4,2  ## @B43_NPHY_RSSIMC_1I_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_1Q_RSSI_Z,4,2  ## @B43_NPHY_RSSIMC_1Q_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_0I_RSSI_X,4,2  ## @B43_NPHY_RSSIMC_0I_RSSI_X
	.comm	_B43_NPHY_RSSIMC_0Q_RSSI_X,4,2  ## @B43_NPHY_RSSIMC_0Q_RSSI_X
	.comm	_B43_NPHY_RSSIMC_1I_RSSI_X,4,2  ## @B43_NPHY_RSSIMC_1I_RSSI_X
	.comm	_B43_NPHY_RSSIMC_1Q_RSSI_X,4,2  ## @B43_NPHY_RSSIMC_1Q_RSSI_X
	.comm	_B43_NPHY_RSSIMC_0I_RSSI_Y,4,2  ## @B43_NPHY_RSSIMC_0I_RSSI_Y
	.comm	_B43_NPHY_RSSIMC_0Q_RSSI_Y,4,2  ## @B43_NPHY_RSSIMC_0Q_RSSI_Y
	.comm	_B43_NPHY_RSSIMC_1I_RSSI_Y,4,2  ## @B43_NPHY_RSSIMC_1I_RSSI_Y
	.comm	_B43_NPHY_RSSIMC_1Q_RSSI_Y,4,2  ## @B43_NPHY_RSSIMC_1Q_RSSI_Y
	.no_dead_strip	_b43_nphy_restore_rssi_cal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_restore_rssi_cal
_b43_nphy_restore_rssi_cal:             ; @b43_nphy_restore_rssi_cal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #16]
	bl	_b43_current_band
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x20, #36]
	cbz	w8, LBB0_8
; %bb.2:
	add	x8, x20, #24
	add	x20, x20, #16
	b	LBB0_5
LBB0_3:
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_8
; %bb.4:
	add	x8, x20, #8
LBB0_5:
	ldr	x20, [x20]
	ldr	w9, [x19]
	cmp	w9, #18
	b.gt	LBB0_11
; %bb.6:
	ldr	x21, [x8]
	cmp	w9, #7
	b.lt	LBB0_9
; %bb.7:
Lloh3:
	adrp	x8, _R2057_NB_MASTER_CORE0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R2057_NB_MASTER_CORE0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x22, _R2057_VCM_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _R2057_VCM_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	mvn	w2, w8
	ldr	w3, [x21]
	mov	x0, x19
	bl	_b43_radio_maskset
Lloh8:
	adrp	x8, _R2057_NB_MASTER_CORE1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R2057_NB_MASTER_CORE1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x22]
	mvn	w2, w8
	ldr	w3, [x21, #4]
	mov	x0, x19
	b	LBB0_10
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh11:
	adrp	x8, _B2056_RX0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B2056_RX0@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x22, _B2056_RX_RSSI_MISC@GOTPAGE
Lloh15:
	ldr	x22, [x22, _B2056_RX_RSSI_MISC@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w1, w9, w8
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #227
	bl	_b43_radio_maskset
Lloh16:
	adrp	x8, _B2056_RX1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B2056_RX1@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w1, w9, w8
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	w2, #227
LBB0_10:
	bl	_b43_radio_maskset
LBB0_11:
Lloh19:
	adrp	x8, _B43_NPHY_RSSIMC_0I_RSSI_Z@GOTPAGE
Lloh20:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_0I_RSSI_Z@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_b43_phy_write
Lloh22:
	adrp	x8, _B43_NPHY_RSSIMC_0Q_RSSI_Z@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_0Q_RSSI_Z@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_b43_phy_write
Lloh25:
	adrp	x8, _B43_NPHY_RSSIMC_1I_RSSI_Z@GOTPAGE
Lloh26:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_1I_RSSI_Z@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_b43_phy_write
Lloh28:
	adrp	x8, _B43_NPHY_RSSIMC_1Q_RSSI_Z@GOTPAGE
Lloh29:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_1Q_RSSI_Z@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_b43_phy_write
Lloh31:
	adrp	x8, _B43_NPHY_RSSIMC_0I_RSSI_X@GOTPAGE
Lloh32:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_0I_RSSI_X@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_b43_phy_write
Lloh34:
	adrp	x8, _B43_NPHY_RSSIMC_0Q_RSSI_X@GOTPAGE
Lloh35:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_0Q_RSSI_X@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w2, [x20, #20]
	mov	x0, x19
	bl	_b43_phy_write
Lloh37:
	adrp	x8, _B43_NPHY_RSSIMC_1I_RSSI_X@GOTPAGE
Lloh38:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_1I_RSSI_X@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x20, #24]
	mov	x0, x19
	bl	_b43_phy_write
Lloh40:
	adrp	x8, _B43_NPHY_RSSIMC_1Q_RSSI_X@GOTPAGE
Lloh41:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_1Q_RSSI_X@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_b43_phy_write
Lloh43:
	adrp	x8, _B43_NPHY_RSSIMC_0I_RSSI_Y@GOTPAGE
Lloh44:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_0I_RSSI_Y@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w2, [x20, #32]
	mov	x0, x19
	bl	_b43_phy_write
Lloh46:
	adrp	x8, _B43_NPHY_RSSIMC_0Q_RSSI_Y@GOTPAGE
Lloh47:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_0Q_RSSI_Y@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w2, [x20, #36]
	mov	x0, x19
	bl	_b43_phy_write
Lloh49:
	adrp	x8, _B43_NPHY_RSSIMC_1I_RSSI_Y@GOTPAGE
Lloh50:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_1I_RSSI_Y@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w2, [x20, #40]
	mov	x0, x19
	bl	_b43_phy_write
Lloh52:
	adrp	x8, _B43_NPHY_RSSIMC_1Q_RSSI_Y@GOTPAGE
Lloh53:
	ldr	x8, [x8, _B43_NPHY_RSSIMC_1Q_RSSI_Y@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w2, [x20, #44]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_b43_phy_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_R2057_NB_MASTER_CORE0,4,2      ; @R2057_NB_MASTER_CORE0
	.comm	_R2057_VCM_MASK,4,2             ; @R2057_VCM_MASK
	.comm	_R2057_NB_MASTER_CORE1,4,2      ; @R2057_NB_MASTER_CORE1
	.comm	_B2056_RX0,4,2                  ; @B2056_RX0
	.comm	_B2056_RX_RSSI_MISC,4,2         ; @B2056_RX_RSSI_MISC
	.comm	_B2056_RX1,4,2                  ; @B2056_RX1
	.comm	_B43_NPHY_RSSIMC_0I_RSSI_Z,4,2  ; @B43_NPHY_RSSIMC_0I_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_0Q_RSSI_Z,4,2  ; @B43_NPHY_RSSIMC_0Q_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_1I_RSSI_Z,4,2  ; @B43_NPHY_RSSIMC_1I_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_1Q_RSSI_Z,4,2  ; @B43_NPHY_RSSIMC_1Q_RSSI_Z
	.comm	_B43_NPHY_RSSIMC_0I_RSSI_X,4,2  ; @B43_NPHY_RSSIMC_0I_RSSI_X
	.comm	_B43_NPHY_RSSIMC_0Q_RSSI_X,4,2  ; @B43_NPHY_RSSIMC_0Q_RSSI_X
	.comm	_B43_NPHY_RSSIMC_1I_RSSI_X,4,2  ; @B43_NPHY_RSSIMC_1I_RSSI_X
	.comm	_B43_NPHY_RSSIMC_1Q_RSSI_X,4,2  ; @B43_NPHY_RSSIMC_1Q_RSSI_X
	.comm	_B43_NPHY_RSSIMC_0I_RSSI_Y,4,2  ; @B43_NPHY_RSSIMC_0I_RSSI_Y
	.comm	_B43_NPHY_RSSIMC_0Q_RSSI_Y,4,2  ; @B43_NPHY_RSSIMC_0Q_RSSI_Y
	.comm	_B43_NPHY_RSSIMC_1I_RSSI_Y,4,2  ; @B43_NPHY_RSSIMC_1I_RSSI_Y
	.comm	_B43_NPHY_RSSIMC_1Q_RSSI_Y,4,2  ; @B43_NPHY_RSSIMC_1Q_RSSI_Y
	.no_dead_strip	_b43_nphy_restore_rssi_cal
.subsections_via_symbols
