	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_event_scan_complete
_wl1251_event_scan_complete:            ## @wl1251_event_scan_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DEBUG_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %ecx
	movl	4(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wl1251_debug
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	$0, -24(%rbp)
	movq	8(%rbx), %rdi
	leaq	-24(%rbp), %rsi
	callq	_ieee80211_scan_completed
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wl1251_debug
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	movq	_IEEE80211_CONF_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_STATION_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wl1251_ps_set_mode
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_EVENT,4,2                ## @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status: 0x%x, channels: %d"

	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
L_.str.1:                               ## @.str.1
	.asciz	"mac80211 hw scan completed"

	.comm	_IEEE80211_CONF_IDLE,4,2        ## @IEEE80211_CONF_IDLE
	.comm	_STATION_IDLE,4,2               ## @STATION_IDLE
	.no_dead_strip	_wl1251_event_scan_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_event_scan_complete
_wl1251_event_scan_complete:            ; @wl1251_event_scan_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _DEBUG_EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w9, w8, [x1]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1251_debug
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	str	wzr, [sp, #24]
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	bl	_ieee80211_scan_completed
Lloh5:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1251_debug
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _IEEE80211_CONF_IDLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IEEE80211_CONF_IDLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _STATION_IDLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STATION_IDLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wl1251_ps_set_mode
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_EVENT,4,2                ; @DEBUG_EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status: 0x%x, channels: %d"

	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
l_.str.1:                               ; @.str.1
	.asciz	"mac80211 hw scan completed"

	.comm	_IEEE80211_CONF_IDLE,4,2        ; @IEEE80211_CONF_IDLE
	.comm	_STATION_IDLE,4,2               ; @STATION_IDLE
	.no_dead_strip	_wl1251_event_scan_complete
.subsections_via_symbols
