	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_restore_cal
_b43_nphy_restore_cal:                  ## @b43_nphy_restore_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r12
	movl	(%rdi), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 52(%r12)
	je	LBB0_18
## %bb.2:
	leaq	40(%r12), %rax
	jmp	LBB0_5
LBB0_3:
	cmpl	$0, 48(%r12)
	je	LBB0_18
## %bb.4:
	leaq	32(%r12), %rax
LBB0_5:
	movq	(%rax), %rbx
	movl	$15, %edi
	movl	$80, %esi
	callq	_B43_NTAB16
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	movq	%rbx, %rcx
	callq	_b43_ntab_write_bulk
	cmpl	$2, 8(%r15)
	jle	LBB0_6
## %bb.7:
	movq	-72(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_8
LBB0_6:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
LBB0_8:
	addq	$40, %rbx
	movl	$15, %edi
	movl	$88, %esi
	callq	_B43_NTAB16
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_b43_ntab_write_bulk
	movl	$15, %edi
	movl	$85, %esi
	callq	_B43_NTAB16
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$2, %edx
	movq	%rbx, %rcx
	callq	_b43_ntab_write_bulk
	movl	$15, %edi
	movl	$93, %esi
	callq	_B43_NTAB16
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$2, %edx
	movq	%rbx, %rcx
	callq	_b43_ntab_write_bulk
	cmpl	$1, 8(%r15)
	jg	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_b43_nphy_tx_iq_workaround
LBB0_10:
	movl	(%r15), %edi
	callq	_b43_current_band
	leaq	16(%r12), %r14
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	sete	%dl
	cmovneq	%r12, %r14
	movl	8(%r15), %eax
	cmpl	$18, %eax
	jg	LBB0_17
## %bb.11:
	movb	%dl, %cl
	shlq	$4, %rcx
	movq	8(%rcx,%r12), %rbx
	cmpl	$7, %eax
	jl	LBB0_13
## %bb.12:
	movq	_R2057_TX0_LOFT_FINE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX0_LOFT_FINE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX0_LOFT_COARSE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX0_LOFT_COARSE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX1_LOFT_FINE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX1_LOFT_FINE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX1_LOFT_COARSE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	48(%rbx), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
	movq	_R2057_TX1_LOFT_COARSE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %eax
	jmp	LBB0_16
LBB0_13:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.14:
	movl	$8225, %esi                     ## imm = 0x2021
	callq	_b43_radio_write
	movq	8(%rbx), %rdx
	movq	%r15, %rdi
	movl	$8226, %esi                     ## imm = 0x2022
	callq	_b43_radio_write
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movl	$12321, %esi                    ## imm = 0x3021
	callq	_b43_radio_write
	movq	24(%rbx), %rdx
	movq	%r15, %rdi
	movl	$12322, %esi                    ## imm = 0x3022
	callq	_b43_radio_write
	movq	32(%rbx), %rdx
	movq	%r15, %rdi
	movl	$8227, %esi                     ## imm = 0x2023
	callq	_b43_radio_write
	movq	40(%rbx), %rdx
	movq	%r15, %rdi
	movl	$8228, %esi                     ## imm = 0x2024
	callq	_b43_radio_write
	movq	48(%rbx), %rdx
	movq	%r15, %rdi
	movl	$12323, %esi                    ## imm = 0x3023
	callq	_b43_radio_write
	movl	$12324, %esi                    ## imm = 0x3024
	movl	$7, %eax
	jmp	LBB0_16
LBB0_15:
	movl	$139, %esi
	callq	_b43_radio_write
	movq	8(%rbx), %rdx
	movq	%r15, %rdi
	movl	$186, %esi
	callq	_b43_radio_write
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movl	$141, %esi
	callq	_b43_radio_write
	movl	$188, %esi
	movl	$3, %eax
LBB0_16:
	movq	(%rbx,%rax,8), %rdx
	movq	%r15, %rdi
	callq	_b43_radio_write
LBB0_17:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_b43_nphy_rx_iq_coeffs
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_R2057_TX0_LOFT_FINE_I,4,2      ## @R2057_TX0_LOFT_FINE_I
	.comm	_R2057_TX0_LOFT_FINE_Q,4,2      ## @R2057_TX0_LOFT_FINE_Q
	.comm	_R2057_TX0_LOFT_COARSE_I,4,2    ## @R2057_TX0_LOFT_COARSE_I
	.comm	_R2057_TX0_LOFT_COARSE_Q,4,2    ## @R2057_TX0_LOFT_COARSE_Q
	.comm	_R2057_TX1_LOFT_FINE_I,4,2      ## @R2057_TX1_LOFT_FINE_I
	.comm	_R2057_TX1_LOFT_FINE_Q,4,2      ## @R2057_TX1_LOFT_FINE_Q
	.comm	_R2057_TX1_LOFT_COARSE_I,4,2    ## @R2057_TX1_LOFT_COARSE_I
	.comm	_R2057_TX1_LOFT_COARSE_Q,4,2    ## @R2057_TX1_LOFT_COARSE_Q
	.no_dead_strip	_b43_nphy_restore_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_cal
_b43_nphy_restore_cal:                  ; @b43_nphy_restore_cal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, #40]
	ldr	x21, [x0, #16]
	ldr	w0, [x0]
	bl	_b43_current_band
Lloh3:
	adrp	x22, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #52]
	cbz	w8, LBB0_18
; %bb.2:
	add	x8, x21, #40
	b	LBB0_5
LBB0_3:
	ldr	w8, [x21, #48]
	cbz	w8, LBB0_18
; %bb.4:
	add	x8, x21, #32
LBB0_5:
	ldr	x20, [x8]
	mov	w0, #15
	mov	w1, #80
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	mov	x3, x20
	bl	_b43_ntab_write_bulk
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.le	LBB0_7
; %bb.6:
	ldr	x8, [sp, #8]
	str	x8, [x20, #8]
	ldr	x8, [sp, #16]
	str	x8, [x20, #16]
	ldr	x8, [sp, #24]
	str	x8, [x20, #24]
	b	LBB0_8
LBB0_7:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
LBB0_8:
	add	x20, x20, #40
	mov	w0, #15
	mov	w1, #88
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x3, sp
	mov	x0, x19
	mov	w2, #4
	bl	_b43_ntab_write_bulk
	mov	w0, #15
	mov	w1, #85
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	bl	_b43_ntab_write_bulk
	mov	w0, #15
	mov	w1, #93
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	bl	_b43_ntab_write_bulk
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.gt	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_b43_nphy_tx_iq_workaround
LBB0_10:
	ldr	w0, [x19]
	bl	_b43_current_band
	ldr	x8, [x22]
	add	x10, x21, #16
	mov	w9, #8
	mov	w11, #24
	cmp	x0, x8
	csel	x9, x11, x9, eq
	csel	x20, x10, x21, eq
	ldr	w8, [x19, #8]
	cmp	w8, #18
	b.gt	LBB0_17
; %bb.11:
	ldr	x21, [x21, x9]
	cmp	w8, #7
	b.lt	LBB0_13
; %bb.12:
Lloh5:
	adrp	x8, _R2057_TX0_LOFT_FINE_I@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R2057_TX0_LOFT_FINE_I@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x2, [x21]
	mov	x0, x19
	bl	_b43_radio_write
Lloh8:
	adrp	x8, _R2057_TX0_LOFT_FINE_Q@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R2057_TX0_LOFT_FINE_Q@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x2, [x21, #8]
	mov	x0, x19
	bl	_b43_radio_write
Lloh11:
	adrp	x8, _R2057_TX0_LOFT_COARSE_I@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R2057_TX0_LOFT_COARSE_I@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x2, [x21, #32]
	mov	x0, x19
	bl	_b43_radio_write
Lloh14:
	adrp	x8, _R2057_TX0_LOFT_COARSE_Q@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R2057_TX0_LOFT_COARSE_Q@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x2, [x21, #40]
	mov	x0, x19
	bl	_b43_radio_write
Lloh17:
	adrp	x8, _R2057_TX1_LOFT_FINE_I@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R2057_TX1_LOFT_FINE_I@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x2, [x21, #16]
	mov	x0, x19
	bl	_b43_radio_write
Lloh20:
	adrp	x8, _R2057_TX1_LOFT_FINE_Q@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R2057_TX1_LOFT_FINE_Q@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x2, [x21, #24]
	mov	x0, x19
	bl	_b43_radio_write
Lloh23:
	adrp	x8, _R2057_TX1_LOFT_COARSE_I@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R2057_TX1_LOFT_COARSE_I@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x2, [x21, #48]
	mov	x0, x19
	bl	_b43_radio_write
Lloh26:
	adrp	x8, _R2057_TX1_LOFT_COARSE_Q@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R2057_TX1_LOFT_COARSE_Q@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w8, #7
	b	LBB0_16
LBB0_13:
	ldr	x2, [x21]
	mov	x0, x19
	cmp	w8, #3
	b.lt	LBB0_15
; %bb.14:
	mov	w1, #8225
	bl	_b43_radio_write
	ldr	x2, [x21, #8]
	mov	x0, x19
	mov	w1, #8226
	bl	_b43_radio_write
	ldr	x2, [x21, #16]
	mov	x0, x19
	mov	w1, #12321
	bl	_b43_radio_write
	ldr	x2, [x21, #24]
	mov	x0, x19
	mov	w1, #12322
	bl	_b43_radio_write
	ldr	x2, [x21, #32]
	mov	x0, x19
	mov	w1, #8227
	bl	_b43_radio_write
	ldr	x2, [x21, #40]
	mov	x0, x19
	mov	w1, #8228
	bl	_b43_radio_write
	ldr	x2, [x21, #48]
	mov	x0, x19
	mov	w1, #12323
	bl	_b43_radio_write
	mov	w1, #12324
	mov	w8, #7
	b	LBB0_16
LBB0_15:
	mov	w1, #139
	bl	_b43_radio_write
	ldr	x2, [x21, #8]
	mov	x0, x19
	mov	w1, #186
	bl	_b43_radio_write
	ldr	x2, [x21, #16]
	mov	x0, x19
	mov	w1, #141
	bl	_b43_radio_write
	mov	w1, #188
	mov	w8, #3
LBB0_16:
	ldr	x2, [x21, x8, lsl #3]
	mov	x0, x19
	bl	_b43_radio_write
LBB0_17:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_b43_nphy_rx_iq_coeffs
LBB0_18:
	ldr	x8, [sp, #40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_R2057_TX0_LOFT_FINE_I,4,2      ; @R2057_TX0_LOFT_FINE_I
	.comm	_R2057_TX0_LOFT_FINE_Q,4,2      ; @R2057_TX0_LOFT_FINE_Q
	.comm	_R2057_TX0_LOFT_COARSE_I,4,2    ; @R2057_TX0_LOFT_COARSE_I
	.comm	_R2057_TX0_LOFT_COARSE_Q,4,2    ; @R2057_TX0_LOFT_COARSE_Q
	.comm	_R2057_TX1_LOFT_FINE_I,4,2      ; @R2057_TX1_LOFT_FINE_I
	.comm	_R2057_TX1_LOFT_FINE_Q,4,2      ; @R2057_TX1_LOFT_FINE_Q
	.comm	_R2057_TX1_LOFT_COARSE_I,4,2    ; @R2057_TX1_LOFT_COARSE_I
	.comm	_R2057_TX1_LOFT_COARSE_Q,4,2    ; @R2057_TX1_LOFT_COARSE_Q
	.no_dead_strip	_b43_nphy_restore_cal
.subsections_via_symbols
