	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_phy_ht_run_samples
_b43_phy_ht_run_samples:                ## @b43_phy_ht_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	(%r13), %rcx
	cmpq	$0, (%rcx)
	js	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rcx)
	js	LBB0_3
LBB0_4:
	cmpq	$0, 16(%rcx)
	js	LBB0_5
LBB0_6:
	movq	_B43_PHY_HT_SAMP_DEP_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_b43_phy_write
	leal	-1(%r15), %edx
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	cmovel	%r15d, %edx
	movq	_B43_PHY_HT_SAMP_LOOP_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_phy_write
	movq	_B43_PHY_HT_SAMP_WAIT_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_b43_phy_write
	movq	_B43_PHY_HT_RF_SEQ_MODE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_b43_phy_read
	movl	%eax, %r12d
	movl	(%r15), %esi
	movq	_B43_PHY_HT_RF_SEQ_MODE_CA_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_b43_phy_set
	movq	_B43_PHY_HT_SAMP_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_b43_phy_mask
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_b43_phy_mask
	movq	_B43_PHY_HT_IQLOCAL_CMDGCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_b43_phy_mask
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_b43_phy_set
	movl	$100, %ebx
	movq	_B43_PHY_HT_RF_SEQ_STATUS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_b43_phy_read
	testb	$1, %al
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_7
## %bb.9:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
LBB0_10:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_write                  ## TAILCALL
LBB0_1:
	movl	$13, %edi
	movl	$99, %esi
	callq	_B43_HTTAB16
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_b43_httab_read
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	cmpq	$0, 8(%rcx)
	jns	LBB0_4
LBB0_3:
	movl	$13, %edi
	movl	$103, %esi
	callq	_B43_HTTAB16
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_b43_httab_read
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	cmpq	$0, 16(%rcx)
	jns	LBB0_6
LBB0_5:
	movl	$13, %edi
	movl	$107, %esi
	callq	_B43_HTTAB16
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_b43_httab_read
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_PHY_HT_SAMP_DEP_CNT,4,2    ## @B43_PHY_HT_SAMP_DEP_CNT
	.comm	_B43_PHY_HT_SAMP_LOOP_CNT,4,2   ## @B43_PHY_HT_SAMP_LOOP_CNT
	.comm	_B43_PHY_HT_SAMP_WAIT_CNT,4,2   ## @B43_PHY_HT_SAMP_WAIT_CNT
	.comm	_B43_PHY_HT_RF_SEQ_MODE,4,2     ## @B43_PHY_HT_RF_SEQ_MODE
	.comm	_B43_PHY_HT_RF_SEQ_MODE_CA_OVER,4,2 ## @B43_PHY_HT_RF_SEQ_MODE_CA_OVER
	.comm	_B43_PHY_HT_SAMP_CMD,4,2        ## @B43_PHY_HT_SAMP_CMD
	.comm	_B43_PHY_HT_IQLOCAL_CMDGCTL,4,2 ## @B43_PHY_HT_IQLOCAL_CMDGCTL
	.comm	_B43_PHY_HT_RF_SEQ_STATUS,4,2   ## @B43_PHY_HT_RF_SEQ_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"run samples timeout\n"

	.no_dead_strip	_b43_phy_ht_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_phy_ht_run_samples
_b43_phy_ht_run_samples:                ; @b43_phy_ht_run_samples
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	x8, [x23]
	ldr	x9, [x8]
	tbnz	x9, #63, LBB0_8
; %bb.1:
	ldr	x9, [x8, #8]
	tbnz	x9, #63, LBB0_9
LBB0_2:
	ldr	x8, [x8, #16]
	tbnz	x8, #63, LBB0_10
LBB0_3:
Lloh0:
	adrp	x8, _B43_PHY_HT_SAMP_DEP_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_PHY_HT_SAMP_DEP_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	w2, w22, #1
	mov	x0, x19
	bl	_b43_phy_write
	sub	w8, w21, #1
	mov	w9, #65535
	cmp	w21, w9
	csel	w2, w21, w8, eq
Lloh3:
	adrp	x8, _B43_PHY_HT_SAMP_LOOP_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_PHY_HT_SAMP_LOOP_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_phy_write
Lloh6:
	adrp	x8, _B43_PHY_HT_SAMP_WAIT_CNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_PHY_HT_SAMP_WAIT_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_b43_phy_write
Lloh9:
	adrp	x21, _B43_PHY_HT_RF_SEQ_MODE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _B43_PHY_HT_RF_SEQ_MODE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_b43_phy_read
	mov	x20, x0
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _B43_PHY_HT_RF_SEQ_MODE_CA_OVER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_PHY_HT_RF_SEQ_MODE_CA_OVER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_b43_phy_set
Lloh14:
	adrp	x22, _B43_PHY_HT_SAMP_CMD@GOTPAGE
Lloh15:
	ldr	x22, [x22, _B43_PHY_HT_SAMP_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_b43_phy_mask
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_b43_phy_mask
Lloh16:
	adrp	x8, _B43_PHY_HT_IQLOCAL_CMDGCTL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_PHY_HT_IQLOCAL_CMDGCTL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_b43_phy_mask
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_b43_phy_set
	mov	w22, #100
Lloh19:
	adrp	x23, _B43_PHY_HT_RF_SEQ_STATUS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _B43_PHY_HT_RF_SEQ_STATUS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_b43_phy_read
	tbz	w0, #0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_4
; %bb.6:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	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_phy_write
LBB0_8:
	mov	w0, #13
	mov	w1, #99
	bl	_B43_HTTAB16
	mov	x1, x0
	mov	x0, x19
	bl	_b43_httab_read
	ldr	x8, [x23]
	str	x0, [x8]
	ldr	x9, [x8, #8]
	tbz	x9, #63, LBB0_2
LBB0_9:
	mov	w0, #13
	mov	w1, #103
	bl	_B43_HTTAB16
	mov	x1, x0
	mov	x0, x19
	bl	_b43_httab_read
	ldr	x8, [x23]
	str	x0, [x8, #8]
	ldr	x8, [x8, #16]
	tbz	x8, #63, LBB0_3
LBB0_10:
	mov	w0, #13
	mov	w1, #107
	bl	_B43_HTTAB16
	mov	x1, x0
	mov	x0, x19
	bl	_b43_httab_read
	ldr	x8, [x23]
	str	x0, [x8, #16]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_PHY_HT_SAMP_DEP_CNT,4,2    ; @B43_PHY_HT_SAMP_DEP_CNT
	.comm	_B43_PHY_HT_SAMP_LOOP_CNT,4,2   ; @B43_PHY_HT_SAMP_LOOP_CNT
	.comm	_B43_PHY_HT_SAMP_WAIT_CNT,4,2   ; @B43_PHY_HT_SAMP_WAIT_CNT
	.comm	_B43_PHY_HT_RF_SEQ_MODE,4,2     ; @B43_PHY_HT_RF_SEQ_MODE
	.comm	_B43_PHY_HT_RF_SEQ_MODE_CA_OVER,4,2 ; @B43_PHY_HT_RF_SEQ_MODE_CA_OVER
	.comm	_B43_PHY_HT_SAMP_CMD,4,2        ; @B43_PHY_HT_SAMP_CMD
	.comm	_B43_PHY_HT_IQLOCAL_CMDGCTL,4,2 ; @B43_PHY_HT_IQLOCAL_CMDGCTL
	.comm	_B43_PHY_HT_RF_SEQ_STATUS,4,2   ; @B43_PHY_HT_RF_SEQ_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"run samples timeout\n"

	.no_dead_strip	_b43_phy_ht_run_samples
.subsections_via_symbols
