	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_cfg80211_scan
_mwifiex_cfg80211_scan:                 ## @mwifiex_cfg80211_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rsi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	24(%r14), %rdi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	cmpq	$0, 16(%r14)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_6
LBB0_2:
	movq	24(%r14), %rdi
	movq	_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.5:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, 36(%r14)
	jne	LBB0_9
## %bb.7:
	cmpl	$0, 4(%r14)
	je	LBB0_9
## %bb.8:
	movl	$0, 4(%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_mwifiex_stop_bg_scan
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	32(%r14), %edi
	xorl	%esi, %esi
	callq	_cfg80211_sched_scan_stopped_rtnl
LBB0_11:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_33
## %bb.12:
	movq	%rax, %rbx
	movq	%r12, 16(%r14)
	movq	_NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_14
## %bb.13:
	movl	40(%r12), %esi
	movl	44(%r12), %edx
	movq	%r13, %rdi
	callq	_get_random_mask_addr
	movl	40(%r12), %edi
	movq	%r13, %rsi
	callq	_ether_addr_copy
	movl	24(%rbx), %edi
	movq	%r13, %rsi
	callq	_ether_addr_copy
LBB0_14:
	movl	16(%r12), %eax
	movl	%eax, 20(%rbx)
	movl	36(%r12), %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 16(%rbx)
	cmpq	$0, 8(%r12)
	je	LBB0_22
## %bb.15:
	cmpl	$0, 4(%r12)
	je	LBB0_22
## %bb.16:
	movq	_MWIFIEX_MAX_VSIE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.17:
	xorl	%ebx, %ebx
	movl	$8, %r13d
	movq	_MWIFIEX_VSIE_MASK_CLEAR@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_MWIFIEX_MAX_VSIE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	%eax, %rdx
	addq	$16, %r13
	cmpq	%rdx, %rbx
	jge	LBB0_22
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	-8(%rdi,%r13), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_MWIFIEX_VSIE_MASK_SCAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rdi,%r13)
	addq	%r13, %rdi
	movq	8(%r12), %r15
	movslq	%ecx, %r14
	leaq	(%r15,%r14), %rsi
	movq	(%r15,%r14), %rdx
	addq	$8, %rdx
	callq	_memcpy
	movq	_MWIFIEX_VSIE_MASK_CLEAR@GOTPCREL(%rip), %rsi
	movl	(%r15,%r14), %eax
	leal	(%r14,%rax), %ecx
	addl	$8, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	4(%r12), %ecx
	jl	LBB0_18
LBB0_22:
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	movq	_MWIFIEX_USER_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_min_t
	testl	%eax, %eax
	jle	LBB0_28
## %bb.23:
	movl	$2, %r13d
	xorl	%ebx, %ebx
	movq	_MWIFIEX_SCAN_TYPE_PASSIVE@GOTPCREL(%rip), %r15
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, -8(%rax,%r13,8)
	movq	$0, -16(%rax,%r13,8)
	incq	%rbx
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	movq	_MWIFIEX_USER_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_min_t
	cltq
	addq	$3, %r13
	cmpq	%rax, %rbx
	jge	LBB0_28
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	movl	8(%rdx), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%ecx, (%rax,%r13,8)
	movl	4(%rdx), %ecx
	movl	%ecx, -4(%rax,%r13,8)
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rcx
	testl	%esi, (%rdx)
	jne	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$0, 16(%r12)
	movq	_MWIFIEX_SCAN_TYPE_ACTIVE@GOTPCREL(%rip), %rcx
	jne	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	movq	%r15, %rcx
	jmp	LBB0_24
LBB0_28:
	movq	24(%r14), %rax
	cmpq	$0, 8(%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_31
## %bb.29:
	movq	%r14, %rdi
	callq	_mwifiex_is_any_intf_active
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_31:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_scan_networks
	movq	%rbx, %rdi
	movl	%eax, %ebx
	callq	_kfree
	testl	%ebx, %ebx
	je	LBB0_34
## %bb.32:
	movq	24(%r14), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$0, (%r14)
	movq	$0, 16(%r14)
	jmp	LBB0_4
LBB0_33:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_34:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.35:
	cmpl	$0, 4(%r12)
	je	LBB0_4
## %bb.36:
	movq	_MWIFIEX_MAX_VSIE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.37:
	movl	$8, %r12d
	xorl	%r13d, %r13d
	movq	_MWIFIEX_VSIE_MASK_SCAN@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_39 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$16, %r12
	cmpq	%rcx, %r13
	jge	LBB0_4
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	-8(%rdi,%r12), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_38
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	_MWIFIEX_VSIE_MASK_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rdi,%r12)
	addq	%r12, %rdi
	movq	_MWIFIEX_MAX_VSIE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_MWIFIEX_MAX_VSIE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_38
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_CMD,4,2                        ## @CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: received scan request on %s\n"

	.comm	_WARN,4,2                       ## @WARN
L_.str.1:                               ## @.str.1
	.asciz	"cmd: Scan already in process..\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ## @NL80211_SCAN_FLAG_RANDOM_ADDR
	.comm	_MWIFIEX_MAX_VSIE_NUM,4,2       ## @MWIFIEX_MAX_VSIE_NUM
	.comm	_MWIFIEX_VSIE_MASK_CLEAR,8,3    ## @MWIFIEX_VSIE_MASK_CLEAR
	.comm	_MWIFIEX_VSIE_MASK_SCAN,8,3     ## @MWIFIEX_VSIE_MASK_SCAN
	.comm	_u32,4,2                        ## @u32
	.comm	_MWIFIEX_USER_SCAN_CHAN_MAX,4,2 ## @MWIFIEX_USER_SCAN_CHAN_MAX
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.comm	_MWIFIEX_SCAN_TYPE_PASSIVE,4,2  ## @MWIFIEX_SCAN_TYPE_PASSIVE
	.comm	_MWIFIEX_SCAN_TYPE_ACTIVE,4,2   ## @MWIFIEX_SCAN_TYPE_ACTIVE
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.2:                               ## @.str.2
	.asciz	"scan failed: %d\n"

	.comm	_MWIFIEX_MAX_VSIE_LEN,4,2       ## @MWIFIEX_MAX_VSIE_LEN
	.no_dead_strip	_mwifiex_cfg80211_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_cfg80211_scan
_mwifiex_cfg80211_scan:                 ; @mwifiex_cfg80211_scan
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x1, #48]
	ldr	x21, [x8]
	mov	x0, x21
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x0, [x0, #24]
Lloh8:
	adrp	x8, _CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x21]
	str	x8, [sp, #-16]!
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	add	sp, sp, #16
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
LBB0_2:
	ldr	x0, [x19, #24]
Lloh13:
	adrp	x8, _WARN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WARN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.5:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.8:
	str	wzr, [x19, #4]
LBB0_9:
	mov	x0, x19
	bl	_mwifiex_stop_bg_scan
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #32]
	mov	w1, #0
	bl	_cfg80211_sched_scan_stopped_rtnl
LBB0_11:
Lloh23:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_32
; %bb.12:
	mov	x21, x0
	str	x20, [x19, #16]
	ldr	w8, [x20]
Lloh26:
	adrp	x9, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NL80211_SCAN_FLAG_RANDOM_ADDR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldp	w1, w2, [x20, #40]
	mov	x0, x22
	bl	_get_random_mask_addr
	ldr	w0, [x20, #40]
	mov	x1, x22
	bl	_ether_addr_copy
	ldr	w0, [x21, #24]
	mov	x1, x22
	bl	_ether_addr_copy
LBB0_14:
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #36]
	stp	w9, w8, [x21, #16]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_22
; %bb.15:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_22
; %bb.16:
Lloh29:
	adrp	x23, _MWIFIEX_MAX_VSIE_NUM@GOTPAGE
Lloh30:
	ldr	x23, [x23, _MWIFIEX_MAX_VSIE_NUM@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.17:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #0
Lloh31:
	adrp	x27, _MWIFIEX_VSIE_MASK_CLEAR@GOTPAGE
Lloh32:
	ldr	x27, [x27, _MWIFIEX_VSIE_MASK_CLEAR@GOTPAGEOFF]
Lloh33:
	adrp	x28, _MWIFIEX_VSIE_MASK_SCAN@GOTPAGE
Lloh34:
	ldr	x28, [x28, _MWIFIEX_VSIE_MASK_SCAN@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x23]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	add	x24, x24, #16
	cmp	x25, w8, sxtw
	b.ge	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x24]
	ldr	x11, [x27]
	cmp	x10, x11
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x28]
	add	x0, x9, x24
	str	x8, [x0], #8
	ldr	x8, [x20, #8]
	add	x22, x8, w26, sxtw
	ldr	x8, [x22]
	add	x2, x8, #8
	mov	x1, x22
	bl	_memcpy
	ldr	w8, [x22]
	add	w8, w26, w8
	add	w26, w8, #8
	ldr	w8, [x20, #4]
	cmp	w26, w8
	b.lt	LBB0_18
LBB0_22:
Lloh35:
	adrp	x22, _u32@GOTPAGE
Lloh36:
	ldr	x22, [x22, _u32@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x20, #32]
Lloh37:
	adrp	x23, _MWIFIEX_USER_SCAN_CHAN_MAX@GOTPAGE
Lloh38:
	ldr	x23, [x23, _MWIFIEX_USER_SCAN_CHAN_MAX@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_min_t
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.23:
	mov	x24, #0
	mov	x25, #0
Lloh39:
	adrp	x26, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh40:
	ldr	x26, [x26, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh41:
	adrp	x27, _MWIFIEX_SCAN_TYPE_PASSIVE@GOTPAGE
Lloh42:
	ldr	x27, [x27, _MWIFIEX_SCAN_TYPE_PASSIVE@GOTPAGEOFF]
Lloh43:
	adrp	x28, _MWIFIEX_SCAN_TYPE_ACTIVE@GOTPAGE
Lloh44:
	ldr	x28, [x28, _MWIFIEX_SCAN_TYPE_ACTIVE@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w9, [x9]
	str	w9, [x8, #8]
	str	xzr, [x8]
	add	x25, x25, #1
	ldr	w0, [x22]
	ldr	w1, [x20, #32]
	ldr	w2, [x23]
	bl	_min_t
	add	x24, x24, #24
	cmp	x25, w0, sxtw
	b.ge	LBB0_27
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x8, x25, lsl #3]
	ldr	x8, [x21, #8]
	ldur	d0, [x9, #4]
	add	x8, x8, x24
	stur	d0, [x8, #12]
	ldr	w10, [x9]
	ldr	w11, [x26]
	mov	x9, x27
	tst	w11, w10
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w9, [x20, #16]
	cmp	w9, #0
	csel	x9, x27, x28, eq
	b	LBB0_24
LBB0_27:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_30
; %bb.28:
	mov	x0, x19
	bl	_mwifiex_is_any_intf_active
	cbz	x0, LBB0_30
; %bb.29:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_30:
	mov	x0, x19
	mov	x1, x21
	bl	_mwifiex_scan_networks
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	cbz	w22, LBB0_33
; %bb.31:
	ldr	x0, [x19, #24]
Lloh45:
	adrp	x8, _ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	str	x22, [sp, #-16]!
Lloh48:
	adrp	x2, l_.str.2@PAGE
Lloh49:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	add	sp, sp, #16
	str	wzr, [x19]
	str	xzr, [x19, #16]
	b	LBB0_4
LBB0_32:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_33:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_40
; %bb.34:
	mov	w22, #0
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_4
; %bb.35:
Lloh52:
	adrp	x20, _MWIFIEX_MAX_VSIE_NUM@GOTPAGE
Lloh53:
	ldr	x20, [x20, _MWIFIEX_MAX_VSIE_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.36:
	mov	x21, #0
	mov	x23, #0
Lloh54:
	adrp	x24, _MWIFIEX_VSIE_MASK_SCAN@GOTPAGE
Lloh55:
	ldr	x24, [x24, _MWIFIEX_VSIE_MASK_SCAN@GOTPAGEOFF]
Lloh56:
	adrp	x25, _MWIFIEX_VSIE_MASK_CLEAR@GOTPAGE
Lloh57:
	ldr	x25, [x25, _MWIFIEX_VSIE_MASK_CLEAR@GOTPAGEOFF]
Lloh58:
	adrp	x26, _MWIFIEX_MAX_VSIE_LEN@GOTPAGE
Lloh59:
	ldr	x26, [x26, _MWIFIEX_MAX_VSIE_LEN@GOTPAGEOFF]
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	mov	w22, #0
	add	x23, x23, #1
	add	x21, x21, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_4
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x21]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_37
; %bb.39:                               ;   in Loop: Header=BB0_38 Depth=1
	ldr	x8, [x25]
	add	x0, x9, x21
	str	x8, [x0], #8
	ldr	w2, [x26]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x20]
	b	LBB0_37
LBB0_40:
	mov	w22, #0
	b	LBB0_4
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_CMD,4,2                        ; @CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: received scan request on %s\n"

	.comm	_WARN,4,2                       ; @WARN
l_.str.1:                               ; @.str.1
	.asciz	"cmd: Scan already in process..\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NL80211_SCAN_FLAG_RANDOM_ADDR,4,2 ; @NL80211_SCAN_FLAG_RANDOM_ADDR
	.comm	_MWIFIEX_MAX_VSIE_NUM,4,2       ; @MWIFIEX_MAX_VSIE_NUM
	.comm	_MWIFIEX_VSIE_MASK_CLEAR,8,3    ; @MWIFIEX_VSIE_MASK_CLEAR
	.comm	_MWIFIEX_VSIE_MASK_SCAN,8,3     ; @MWIFIEX_VSIE_MASK_SCAN
	.comm	_u32,4,2                        ; @u32
	.comm	_MWIFIEX_USER_SCAN_CHAN_MAX,4,2 ; @MWIFIEX_USER_SCAN_CHAN_MAX
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.comm	_MWIFIEX_SCAN_TYPE_PASSIVE,4,2  ; @MWIFIEX_SCAN_TYPE_PASSIVE
	.comm	_MWIFIEX_SCAN_TYPE_ACTIVE,4,2   ; @MWIFIEX_SCAN_TYPE_ACTIVE
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.2:                               ; @.str.2
	.asciz	"scan failed: %d\n"

	.comm	_MWIFIEX_MAX_VSIE_LEN,4,2       ; @MWIFIEX_MAX_VSIE_LEN
	.no_dead_strip	_mwifiex_cfg80211_scan
.subsections_via_symbols
