	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cw1200_scan_start
LCPI0_0:
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.space	4
	.space	4
LCPI0_1:
	.long	2010                            ## 0x7da
	.long	10                              ## 0xa
	.space	4
	.space	4
LCPI0_2:
	.long	2000                            ## 0x7d0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_3:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cw1200_scan_start:                     ## @cw1200_scan_start
	.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	(%rdi), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	32(%rdi), %rax
	movl	(%rax), %edi
	movl	20(%rsi), %edx
	movl	(%rsi), %ecx
	movl	16(%rsi), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_dbg
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	8(%rbx), %rcx
	cmpl	$4, %eax
	jae	LBB0_6
## %bb.5:
	movl	$2000, %ebx                     ## imm = 0x7D0
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_3:
	movl	$2000, %ebx                     ## imm = 0x7D0
	jmp	LBB0_15
LBB0_6:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	movdqa	LCPI0_2(%rip), %xmm0            ## xmm0 = [2000,0,0,0]
	xorl	%edi, %edi
	movdqa	LCPI0_3(%rip), %xmm2            ## xmm2 = <20,20,u,u>
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm3
	movdqu	16(%rcx,%rdi,8), %xmm4
	movdqu	32(%rcx,%rdi,8), %xmm5
	movdqu	48(%rcx,%rdi,8), %xmm6
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm0, %xmm3
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	paddd	%xmm1, %xmm4
	pshufd	$232, %xmm5, %xmm0              ## xmm0 = xmm5[0,2,2,3]
	pshufd	$232, %xmm6, %xmm1              ## xmm1 = xmm6[0,2,2,3]
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	paddd	%xmm4, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_9
## %bb.10:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <10,10,u,u>
	movdqa	%xmm0, %xmm3
	paddd	%xmm2, %xmm3
	paddd	%xmm1, %xmm2
	testb	$1, %bl
	je	LBB0_13
LBB0_12:
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm1
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	paddd	%xmm0, %xmm3
	pshufd	$232, %xmm1, %xmm0              ## xmm0 = xmm1[0,2,2,3]
	paddd	%xmm0, %xmm2
	movdqa	%xmm3, %xmm0
	movdqa	%xmm2, %xmm1
LBB0_13:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,8), %esi
	addl	%esi, %ebx
	addl	$10, %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_15:
	leaq	24(%r15), %rdi
	callq	_cancel_delayed_work_sync
	leaq	4(%r15), %r12
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	20(%r15), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	16(%r15), %r14
	movl	%ebx, %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cw1200_pm_stay_awake
	movl	12(%r15), %r14d
	movl	%ebx, %edi
	callq	_msecs_to_jiffies
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wsm_scan
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r12, %rdi
	callq	_cancel_delayed_work_sync
	movq	%r15, %rdi
	callq	_cw1200_scan_restart_delayed
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = <10,10,u,u>
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = <2010,10,u,u>
	xorl	%edi, %edi
                                        ## implicit-def: $xmm0
                                        ## implicit-def: $xmm1
	testb	$1, %bl
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SCAN] hw req, type %d, %d channels, flags: 0x%x.\n"

	.no_dead_strip	_cw1200_scan_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cw1200_scan_start
lCPI0_0:
	.long	2000                            ; 0x7d0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cw1200_scan_start:                     ; @cw1200_scan_start
	.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
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	w0, [x8]
	ldr	w3, [x1]
	ldp	w4, w2, [x1, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_dbg
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x20, #8]
	cmp	w8, #8
	b.hs	LBB0_6
; %bb.4:
	mov	x10, #0
	mov	w21, #2000
	b	LBB0_9
LBB0_5:
	mov	w21, #2000
	b	LBB0_11
LBB0_6:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
Lloh5:
	adrp	x11, lCPI0_0@PAGE
Lloh6:
	ldr	d1, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.2s	v2, #10
	mov	x12, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	xtn.2s	v16, v16
	add.2s	v1, v1, v5
	add.2s	v0, v0, v6
	add.2s	v3, v3, v7
	add.2s	v4, v4, v16
	add.2s	v1, v1, v2
	add.2s	v0, v0, v2
	add.2s	v3, v3, v2
	add.2s	v4, v4, v2
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	add.2s	v0, v0, v1
	add.2s	v0, v3, v0
	add.2s	v0, v4, v0
	addp.2s	v0, v0, v0
	fmov	w21, s0
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w10, w21, w10
	add	w21, w10, #10
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	add	x22, x19, #4
	add	x23, x19, #8
	mov	x0, x23
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #20
	mov	w1, #1
	bl	_atomic_set
	add	x24, x19, #16
	mov	x0, x21
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x24
	bl	_cw1200_pm_stay_awake
	ldr	w24, [x19, #12]
	mov	x0, x21
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x24
	mov	x1, x22
	bl	_queue_delayed_work
	mov	x0, x19
	mov	x1, x20
	bl	_wsm_scan
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x23
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x22
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_cw1200_scan_restart_delayed
LBB0_13:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SCAN] hw req, type %d, %d channels, flags: 0x%x.\n"

	.no_dead_strip	_cw1200_scan_start
.subsections_via_symbols
