	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_start_internal_escan
_brcmf_start_internal_escan:            ## @brcmf_start_internal_escan
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_BRCMF_SCAN_STATUS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
LBB0_3:
	movq	%r12, %rdi
	callq	_brcmf_abort_scanning
LBB0_4:
	movq	_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_brcmf_dbg
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_BRCMF_SCAN_STATUS_BUSY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_brcmf_run_escan@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_brcmf_do_escan
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_7
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_SCAN_STATUS_BUSY,4,2     ## @BRCMF_SCAN_STATUS_BUSY
	.comm	_SCAN,4,2                       ## @SCAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aborting internal scan: map=%u\n"

L_.str.1:                               ## @.str.1
	.asciz	"start internal scan: map=%u\n"

	.comm	_brcmf_run_escan,4,2            ## @brcmf_run_escan
	.no_dead_strip	_brcmf_start_internal_escan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_start_internal_escan
_brcmf_start_internal_escan:            ; @brcmf_start_internal_escan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x24, _BRCMF_SCAN_STATUS_BUSY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BRCMF_SCAN_STATUS_BUSY@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x21, x20, #8
	mov	x1, x21
	bl	_test_bit
Lloh2:
	adrp	x25, _SCAN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _SCAN@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x2, [x20]
	cbz	x2, LBB0_3
; %bb.2:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
LBB0_3:
	mov	x0, x20
	bl	_brcmf_abort_scanning
LBB0_4:
	ldr	w0, [x25]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_brcmf_dbg
	ldr	w0, [x24]
	mov	x1, x21
	bl	_set_bit
Lloh8:
	adrp	x8, _brcmf_run_escan@GOTPAGE
Lloh9:
	ldr	x8, [x8, _brcmf_run_escan@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	mov	x0, x23
	mov	x1, x22
	bl	_brcmf_do_escan
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_clear_bit
	b	LBB0_7
LBB0_6:
	str	x19, [x20]
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_SCAN_STATUS_BUSY,4,2     ; @BRCMF_SCAN_STATUS_BUSY
	.comm	_SCAN,4,2                       ; @SCAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aborting internal scan: map=%u\n"

l_.str.1:                               ; @.str.1
	.asciz	"start internal scan: map=%u\n"

	.comm	_brcmf_run_escan,4,2            ; @brcmf_run_escan
	.no_dead_strip	_brcmf_start_internal_escan
.subsections_via_symbols
