	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_save_cal
_b43_nphy_save_cal:                     ## @b43_nphy_save_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_2:
	movl	24(%r12), %edi
	callq	_b43_current_band
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	48(%r15), %rdx
	leaq	40(%r15), %rax
	leaq	64(%r15), %rbx
	leaq	32(%r15), %rcx
	jmp	LBB0_5
LBB0_4:
	leaq	24(%r15), %rdx
	leaq	8(%r15), %rcx
	leaq	16(%r15), %rax
	leaq	56(%r15), %rbx
LBB0_5:
	movq	(%rcx), %r14
	movq	(%rax), %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_rx_iq_coeffs
	movl	(%r12), %eax
	cmpl	$18, %eax
	jg	LBB0_12
## %bb.6:
	cmpl	$7, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	jl	LBB0_8
## %bb.7:
	movq	_R2057_TX0_LOFT_FINE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, (%r13)
	movq	_R2057_TX0_LOFT_FINE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, 4(%r13)
	movq	_R2057_TX0_LOFT_COARSE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, 16(%r13)
	movq	_R2057_TX0_LOFT_COARSE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, 20(%r13)
	movq	_R2057_TX1_LOFT_FINE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, 8(%r13)
	movq	_R2057_TX1_LOFT_FINE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, 12(%r13)
	movq	_R2057_TX1_LOFT_COARSE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, 24(%r13)
	movq	_R2057_TX1_LOFT_COARSE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %r14d
	jmp	LBB0_11
LBB0_8:
	movq	%r12, %rdi
	cmpl	$3, %eax
	jl	LBB0_10
## %bb.9:
	movl	$8225, %esi                     ## imm = 0x2021
	callq	_b43_radio_read
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movl	$8226, %esi                     ## imm = 0x2022
	callq	_b43_radio_read
	movl	%eax, 4(%r13)
	movq	%r12, %rdi
	movl	$12321, %esi                    ## imm = 0x3021
	callq	_b43_radio_read
	movl	%eax, 8(%r13)
	movq	%r12, %rdi
	movl	$12322, %esi                    ## imm = 0x3022
	callq	_b43_radio_read
	movl	%eax, 12(%r13)
	movq	%r12, %rdi
	movl	$8227, %esi                     ## imm = 0x2023
	callq	_b43_radio_read
	movl	%eax, 16(%r13)
	movq	%r12, %rdi
	movl	$8228, %esi                     ## imm = 0x2024
	callq	_b43_radio_read
	movl	%eax, 20(%r13)
	movq	%r12, %rdi
	movl	$12323, %esi                    ## imm = 0x3023
	callq	_b43_radio_read
	movl	%eax, 24(%r13)
	movl	$7, %r14d
	movl	$12324, %esi                    ## imm = 0x3024
	jmp	LBB0_11
LBB0_10:
	movl	$139, %esi
	callq	_b43_radio_read
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movl	$186, %esi
	callq	_b43_radio_read
	movl	%eax, 4(%r13)
	movq	%r12, %rdi
	movl	$141, %esi
	callq	_b43_radio_read
	movl	%eax, 8(%r13)
	movl	$3, %r14d
	movl	$188, %esi
LBB0_11:
	movq	%r12, %rdi
	callq	_b43_radio_read
	movl	%eax, (%r13,%r14,4)
	movq	%rbx, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movq	8(%r12), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	callq	_cfg80211_get_chandef_type
	movl	%eax, (%rbx)
	movl	$15, %edi
	movl	$80, %esi
	callq	_B43_NTAB16
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$8, %edx
	movq	%r14, %rcx
	callq	_b43_ntab_read_bulk
	cmpq	$0, (%r15)
	je	LBB0_13
## %bb.14:
	movq	%r12, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_nphy_stay_in_carrier_search ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_save_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_save_cal
_b43_nphy_save_cal:                     ; @b43_nphy_save_cal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_b43_current_band
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x21, #24
	add	x10, x21, #8
	add	x11, x21, #16
	add	x12, x21, #56
	add	x13, x21, #48
	add	x14, x21, #40
	add	x15, x21, #64
	add	x16, x21, #32
	cmp	x0, x8
	csel	x2, x9, x13, ne
	csel	x8, x11, x14, ne
	csel	x22, x12, x15, ne
	csel	x9, x10, x16, ne
	ldr	x20, [x9]
	ldr	x23, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_rx_iq_coeffs
	ldr	w8, [x19]
	cmp	w8, #18
	b.gt	LBB0_9
; %bb.3:
	cmp	w8, #7
	b.lt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _R2057_TX0_LOFT_FINE_I@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R2057_TX0_LOFT_FINE_I@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23]
Lloh6:
	adrp	x8, _R2057_TX0_LOFT_FINE_Q@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R2057_TX0_LOFT_FINE_Q@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, #4]
Lloh9:
	adrp	x8, _R2057_TX0_LOFT_COARSE_I@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R2057_TX0_LOFT_COARSE_I@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, #16]
Lloh12:
	adrp	x8, _R2057_TX0_LOFT_COARSE_Q@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R2057_TX0_LOFT_COARSE_Q@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, #20]
Lloh15:
	adrp	x8, _R2057_TX1_LOFT_FINE_I@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R2057_TX1_LOFT_FINE_I@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, #8]
Lloh18:
	adrp	x8, _R2057_TX1_LOFT_FINE_Q@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R2057_TX1_LOFT_FINE_Q@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, #12]
Lloh21:
	adrp	x8, _R2057_TX1_LOFT_COARSE_I@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R2057_TX1_LOFT_COARSE_I@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, #24]
Lloh24:
	adrp	x8, _R2057_TX1_LOFT_COARSE_Q@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R2057_TX1_LOFT_COARSE_Q@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w24, #7
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.6:
	mov	w1, #8225
	bl	_b43_radio_read
	str	w0, [x23]
	mov	x0, x19
	mov	w1, #8226
	bl	_b43_radio_read
	str	w0, [x23, #4]
	mov	x0, x19
	mov	w1, #12321
	bl	_b43_radio_read
	str	w0, [x23, #8]
	mov	x0, x19
	mov	w1, #12322
	bl	_b43_radio_read
	str	w0, [x23, #12]
	mov	x0, x19
	mov	w1, #8227
	bl	_b43_radio_read
	str	w0, [x23, #16]
	mov	x0, x19
	mov	w1, #8228
	bl	_b43_radio_read
	str	w0, [x23, #20]
	mov	x0, x19
	mov	w1, #12323
	bl	_b43_radio_read
	str	w0, [x23, #24]
	mov	w1, #12324
	mov	w24, #7
	b	LBB0_8
LBB0_7:
	mov	w1, #139
	bl	_b43_radio_read
	str	w0, [x23]
	mov	x0, x19
	mov	w1, #186
	bl	_b43_radio_read
	str	w0, [x23, #4]
	mov	x0, x19
	mov	w1, #141
	bl	_b43_radio_read
	str	w0, [x23, #8]
	mov	w1, #188
	mov	w24, #3
LBB0_8:
	mov	x0, x19
	bl	_b43_radio_read
	str	w0, [x23, x24, lsl #2]
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	w8, [x8]
	str	w8, [x22, #4]
	bl	_cfg80211_get_chandef_type
	str	w0, [x22]
	mov	w0, #15
	mov	w1, #80
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8
	mov	x3, x20
	bl	_b43_ntab_read_bulk
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_b43_nphy_stay_in_carrier_search
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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_save_cal
.subsections_via_symbols
