	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_sw_scan_complete
_mwl8k_sw_scan_complete:                ## @mwl8k_sw_scan_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	cmpl	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
	movq	$0, 16(%rbx)
	movq	_BBU_RXRDY_CNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread32
	movq	_NOK_CCA_CNT_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread32
	movl	4(%rbx), %edi
	movq	_BBU_AVG_NOISE_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	xorl	%esi, %esi
	callq	_mwl8k_cmd_bbp_reg_access
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBU_RXRDY_CNT_REG,8,3          ## @BBU_RXRDY_CNT_REG
	.comm	_NOK_CCA_CNT_REG,8,3            ## @NOK_CCA_CNT_REG
	.comm	_BBU_AVG_NOISE_VAL,4,2          ## @BBU_AVG_NOISE_VAL
	.no_dead_strip	_mwl8k_sw_scan_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_sw_scan_complete
_mwl8k_sw_scan_complete:                ; @mwl8k_sw_scan_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.1:
	str	wzr, [x19]
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _BBU_RXRDY_CNT_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BBU_RXRDY_CNT_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _NOK_CCA_CNT_REG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NOK_CCA_CNT_REG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _BBU_AVG_NOISE_VAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBU_AVG_NOISE_VAL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w1, #0
	bl	_mwl8k_cmd_bbp_reg_access
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BBU_RXRDY_CNT_REG,8,3          ; @BBU_RXRDY_CNT_REG
	.comm	_NOK_CCA_CNT_REG,8,3            ; @NOK_CCA_CNT_REG
	.comm	_BBU_AVG_NOISE_VAL,4,2          ; @BBU_AVG_NOISE_VAL
	.no_dead_strip	_mwl8k_sw_scan_complete
.subsections_via_symbols
