	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_scan                    ## -- Begin function wlcore_scan
	.p2align	4, 0x90
_wlcore_scan:                           ## @wlcore_scan
	.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	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	_WL1271_MAX_CHANNELS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_BUG_ON
	movq	16(%rbx), %rax
	movq	_WL1271_SCAN_STATE_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_WL1271_SCAN_STATE_2GHZ_ACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movq	%r12, 24(%rbx)
	movl	48(%rbx), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	jmp	LBB0_6
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_5:
	movq	$0, 24(%rbx)
LBB0_6:
	movq	%r15, 56(%rbx)
	movq	%r14, 40(%rbx)
	movl	36(%rbx), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$1, 32(%rbx)
	movl	12(%rbx), %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r15
	movq	_WL1271_SCAN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ieee80211_queue_delayed_work
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	*(%rax)
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL1271_MAX_CHANNELS,8,3        ## @WL1271_MAX_CHANNELS
	.comm	_WL1271_SCAN_STATE_IDLE,8,3     ## @WL1271_SCAN_STATE_IDLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_WL1271_SCAN_STATE_2GHZ_ACTIVE,8,3 ## @WL1271_SCAN_STATE_2GHZ_ACTIVE
	.comm	_WL1271_SCAN_TIMEOUT,4,2        ## @WL1271_SCAN_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_scan                    ; -- Begin function wlcore_scan
	.p2align	2
_wlcore_scan:                           ; @wlcore_scan
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WL1271_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WL1271_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_BUG_ON
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _WL1271_SCAN_STATE_IDLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL1271_SCAN_STATE_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _WL1271_SCAN_STATE_2GHZ_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WL1271_SCAN_STATE_2GHZ_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	cbz	x23, LBB0_5
; %bb.2:
	cbz	x22, LBB0_5
; %bb.3:
	str	x22, [x20, #24]
	ldr	w0, [x20, #48]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	str	xzr, [x20, #24]
LBB0_6:
	str	x21, [x20, #56]
	str	x19, [x20, #40]
	ldr	w0, [x20, #36]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #1
	str	w8, [x20, #32]
	ldr	w22, [x20, #12]
	add	x23, x20, #8
Lloh12:
	adrp	x8, _WL1271_SCAN_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WL1271_SCAN_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_ieee80211_queue_delayed_work
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	blr	x8
	mov	w0, #0
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WL1271_MAX_CHANNELS,8,3        ; @WL1271_MAX_CHANNELS
	.comm	_WL1271_SCAN_STATE_IDLE,8,3     ; @WL1271_SCAN_STATE_IDLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_WL1271_SCAN_STATE_2GHZ_ACTIVE,8,3 ; @WL1271_SCAN_STATE_2GHZ_ACTIVE
	.comm	_WL1271_SCAN_TIMEOUT,4,2        ; @WL1271_SCAN_TIMEOUT
.subsections_via_symbols
