	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_run_samples
_b43_nphy_run_samples:                  ## @b43_nphy_run_samples
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	16(%rbp), %ebx
	movq	16(%rdi), %r12
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
	cmpl	$7, 8(%r13)
	jl	LBB0_6
## %bb.1:
	movq	_B43_NPHY_REV7_RF_CTL_OVER3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	movl	%eax, %r15d
	movq	_B43_NPHY_REV7_RF_CTL_OVER4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	orl	%r15d, %eax
	testb	$-128, %al
	jne	LBB0_6
## %bb.2:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_read_lpf_ctl
	cmpl	$19, 8(%r13)
	jl	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$128, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_b43_nphy_rf_ctl_override_rev19
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movl	$128, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_b43_nphy_rf_ctl_override_rev7
LBB0_5:
	movl	$1, (%r12)
LBB0_6:
	cmpl	$0, 4(%r12)
	js	LBB0_8
## %bb.7:
	movl	$15, %edi
	movl	$87, %esi
	callq	_B43_NTAB16
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_b43_ntab_read
	movzwl	%ax, %eax
	orl	$-2147483648, %eax              ## imm = 0x80000000
	movl	%eax, 4(%r12)
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_b43_is_40mhz
	testl	%eax, %eax
	movl	$25700, %eax                    ## imm = 0x6464
	movl	$18247, %r15d                   ## imm = 0x4747
	cmovel	%eax, %r15d
	movl	$15, %edi
	movl	$87, %esi
	callq	_B43_NTAB16
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_b43_ntab_write
LBB0_10:
	movq	_B43_NPHY_SAMP_DEPCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%r14d
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_b43_phy_write
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leal	-1(%rcx), %edx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	movq	_B43_NPHY_SAMP_LOOPCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmovel	%ecx, %edx
	movq	%r13, %rdi
	callq	_b43_phy_write
	movq	_B43_NPHY_SAMP_WAITCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_b43_phy_write
	movq	_B43_NPHY_RFSEQMODE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	movl	%eax, %r14d
	movl	(%r15), %esi
	movq	_B43_NPHY_RFSEQMODE_CAOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_b43_phy_set
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	_B43_NPHY_IQLOCAL_CMDGCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$32767, %edx                    ## imm = 0x7FFF
	callq	_b43_phy_mask
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_b43_phy_set
	jmp	LBB0_13
LBB0_12:
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	leal	1(,%rax,4), %edx
	movq	_B43_NPHY_SAMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_phy_write
LBB0_13:
	movl	$100, %ebx
	movq	_B43_NPHY_RFSEQST@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_b43_phy_read
	testb	$1, %al
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_14
## %bb.16:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_17:
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_b43_phy_write
	movq	%r13, %rdi
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_nphy_stay_in_carrier_search ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_NPHY_REV7_RF_CTL_OVER3,4,2 ## @B43_NPHY_REV7_RF_CTL_OVER3
	.comm	_B43_NPHY_REV7_RF_CTL_OVER4,4,2 ## @B43_NPHY_REV7_RF_CTL_OVER4
	.comm	_B43_NPHY_SAMP_DEPCNT,4,2       ## @B43_NPHY_SAMP_DEPCNT
	.comm	_B43_NPHY_SAMP_LOOPCNT,4,2      ## @B43_NPHY_SAMP_LOOPCNT
	.comm	_B43_NPHY_SAMP_WAITCNT,4,2      ## @B43_NPHY_SAMP_WAITCNT
	.comm	_B43_NPHY_RFSEQMODE,4,2         ## @B43_NPHY_RFSEQMODE
	.comm	_B43_NPHY_RFSEQMODE_CAOVER,4,2  ## @B43_NPHY_RFSEQMODE_CAOVER
	.comm	_B43_NPHY_IQLOCAL_CMDGCTL,4,2   ## @B43_NPHY_IQLOCAL_CMDGCTL
	.comm	_B43_NPHY_SAMP_CMD,4,2          ## @B43_NPHY_SAMP_CMD
	.comm	_B43_NPHY_RFSEQST,4,2           ## @B43_NPHY_RFSEQST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"run samples timeout\n"

	.no_dead_strip	_b43_nphy_run_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_run_samples
_b43_nphy_run_samples:                  ; @b43_nphy_run_samples
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x27, [x0, #16]
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
	ldr	w8, [x19, #8]
	cmp	w8, #7
	b.lt	LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _B43_NPHY_REV7_RF_CTL_OVER3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_NPHY_REV7_RF_CTL_OVER3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x26, x0
Lloh3:
	adrp	x8, _B43_NPHY_REV7_RF_CTL_OVER4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_NPHY_REV7_RF_CTL_OVER4@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_read
	orr	w8, w26, w0
	tbnz	w8, #7, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_read_lpf_ctl
	mov	x2, x0
	ldr	w8, [x19, #8]
	mov	x0, x19
	mov	w1, #128
	cmp	w8, #19
	b.lt	LBB0_4
; %bb.3:
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_b43_nphy_rf_ctl_override_rev19
	b	LBB0_5
LBB0_4:
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	bl	_b43_nphy_rf_ctl_override_rev7
LBB0_5:
	mov	w8, #1
	str	w8, [x27]
LBB0_6:
	ldr	w8, [x27, #4]
	tbnz	w8, #31, LBB0_8
; %bb.7:
	mov	w0, #15
	mov	w1, #87
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	bl	_b43_ntab_read
	mov	w8, #-2147483648
	bfxil	w8, w0, #0, #16
	str	w8, [x27, #4]
LBB0_8:
	cbz	w25, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_b43_is_40mhz
	mov	w8, #18247
	mov	w9, #25700
	cmp	w0, #0
	csel	w25, w9, w8, eq
	mov	w0, #15
	mov	w1, #87
	bl	_B43_NTAB16
	mov	x1, x0
	mov	x0, x19
	mov	x2, x25
	bl	_b43_ntab_write
LBB0_10:
Lloh6:
	adrp	x8, _B43_NPHY_SAMP_DEPCNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_NPHY_SAMP_DEPCNT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	sub	w2, w24, #1
	mov	x0, x19
	bl	_b43_phy_write
Lloh9:
	adrp	x8, _B43_NPHY_SAMP_LOOPCNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_NPHY_SAMP_LOOPCNT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	sub	w8, w23, #1
	mov	w9, #65535
	cmp	w23, w9
	csel	w2, w23, w8, eq
	mov	x0, x19
	bl	_b43_phy_write
Lloh12:
	adrp	x8, _B43_NPHY_SAMP_WAITCNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43_NPHY_SAMP_WAITCNT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_b43_phy_write
Lloh15:
	adrp	x23, _B43_NPHY_RFSEQMODE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _B43_NPHY_RFSEQMODE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x22, x0
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _B43_NPHY_RFSEQMODE_CAOVER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _B43_NPHY_RFSEQMODE_CAOVER@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_phy_set
	cbz	w21, LBB0_12
; %bb.11:
Lloh20:
	adrp	x20, _B43_NPHY_IQLOCAL_CMDGCTL@GOTPAGE
Lloh21:
	ldr	x20, [x20, _B43_NPHY_IQLOCAL_CMDGCTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #32767
	bl	_b43_phy_mask
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #32768
	bl	_b43_phy_set
	b	LBB0_13
LBB0_12:
	cmp	w20, #0
	mov	w8, #5
	csinc	w2, w8, wzr, ne
Lloh22:
	adrp	x8, _B43_NPHY_SAMP_CMD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B43_NPHY_SAMP_CMD@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_write
LBB0_13:
	mov	w20, #100
Lloh25:
	adrp	x21, _B43_NPHY_RFSEQST@GOTPAGE
Lloh26:
	ldr	x21, [x21, _B43_NPHY_RFSEQST@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_phy_read
	tbz	w0, #0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w20, w20, #1
	b.ne	LBB0_14
; %bb.16:
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_17:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_b43_phy_write
	mov	x0, x19
	mov	w1, #0
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_b43_nphy_stay_in_carrier_search
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_NPHY_REV7_RF_CTL_OVER3,4,2 ; @B43_NPHY_REV7_RF_CTL_OVER3
	.comm	_B43_NPHY_REV7_RF_CTL_OVER4,4,2 ; @B43_NPHY_REV7_RF_CTL_OVER4
	.comm	_B43_NPHY_SAMP_DEPCNT,4,2       ; @B43_NPHY_SAMP_DEPCNT
	.comm	_B43_NPHY_SAMP_LOOPCNT,4,2      ; @B43_NPHY_SAMP_LOOPCNT
	.comm	_B43_NPHY_SAMP_WAITCNT,4,2      ; @B43_NPHY_SAMP_WAITCNT
	.comm	_B43_NPHY_RFSEQMODE,4,2         ; @B43_NPHY_RFSEQMODE
	.comm	_B43_NPHY_RFSEQMODE_CAOVER,4,2  ; @B43_NPHY_RFSEQMODE_CAOVER
	.comm	_B43_NPHY_IQLOCAL_CMDGCTL,4,2   ; @B43_NPHY_IQLOCAL_CMDGCTL
	.comm	_B43_NPHY_SAMP_CMD,4,2          ; @B43_NPHY_SAMP_CMD
	.comm	_B43_NPHY_RFSEQST,4,2           ; @B43_NPHY_RFSEQST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"run samples timeout\n"

	.no_dead_strip	_b43_nphy_run_samples
.subsections_via_symbols
