	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_close
_mwifiex_close:                         ## @mwifiex_close
	.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
	callq	_mwifiex_netdev_get_priv
	movq	%rax, %rbx
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movl	$1, -16(%rbp)
	movl	8(%rbx), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	24(%rbx), %rdi
	leaq	-16(%rbp), %rsi
	callq	_cfg80211_scan_done
	movq	$0, 24(%rbx)
	movl	$1, (%rbx)
LBB0_2:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_mwifiex_dbg
	movq	%rbx, %rdi
	callq	_mwifiex_stop_bg_scan
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_cfg80211_sched_scan_stopped
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aborting scan on ndo_stop\n"

L_.str.1:                               ## @.str.1
	.asciz	"aborting bgscan on ndo_stop\n"

	.no_dead_strip	_mwifiex_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_close
_mwifiex_close:                         ; @mwifiex_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_mwifiex_netdev_get_priv
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x20, _INFO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INFO@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w21, #1
	str	w21, [sp, #8]
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	bl	_cfg80211_scan_done
	str	xzr, [x19, #24]
	str	w21, [x19]
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	mov	x0, x19
	bl	_mwifiex_stop_bg_scan
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_cfg80211_sched_scan_stopped
LBB0_4:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aborting scan on ndo_stop\n"

l_.str.1:                               ; @.str.1
	.asciz	"aborting bgscan on ndo_stop\n"

	.no_dead_strip	_mwifiex_close
.subsections_via_symbols
