	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	____cfg80211_scan_done          ## -- Begin function ___cfg80211_scan_done
	.p2align	4, 0x90
____cfg80211_scan_done:                 ## @___cfg80211_scan_done
	.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	%esi, %r14d
	movq	%rdi, %rbx
	addq	$12, %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	movq	24(%r15), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_cfg80211_sme_scan_done
LBB0_3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_nl80211_send_scan_aborted
	jmp	LBB0_8
LBB0_5:
	movq	_NL80211_SCAN_FLAG_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.6:
	leaq	8(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	___cfg80211_bss_expire
	movq	%r13, %rdi
	callq	_spin_unlock_bh
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_nl80211_send_scan_done
LBB0_8:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_dev_put
LBB0_10:
	movq	$0, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_12
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_SCAN_FLAG_FLUSH,4,2    ## @NL80211_SCAN_FLAG_FLUSH
	.comm	_SIOCGIWSCAN,4,2                ## @SIOCGIWSCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	____cfg80211_scan_done          ; -- Begin function ___cfg80211_scan_done
	.p2align	2
____cfg80211_scan_done:                 ; @___cfg80211_scan_done
	.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, x1
	mov	x20, x0
	add	x0, x0, #12
	bl	_lockdep_assert_held
	ldr	x21, [x20]
	cbz	x21, LBB0_7
; %bb.1:
	ldr	x22, [x21, #24]
	ldr	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_cfg80211_sme_scan_done
LBB0_3:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_nl80211_send_scan_aborted
	ldr	x0, [x22]
	cbz	x0, LBB0_6
LBB0_5:
	bl	_dev_put
LBB0_6:
	str	xzr, [x20]
	cbz	w19, LBB0_11
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
LBB0_8:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _NL80211_SCAN_FLAG_FLUSH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_SCAN_FLAG_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	add	x23, x20, #8
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	___cfg80211_bss_expire
	mov	x0, x23
	bl	_spin_unlock_bh
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	bl	_nl80211_send_scan_done
	ldr	x0, [x22]
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_11:
	mov	x0, x21
	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
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_SCAN_FLAG_FLUSH,4,2    ; @NL80211_SCAN_FLAG_FLUSH
	.comm	_SIOCGIWSCAN,4,2                ; @SIOCGIWSCAN
.subsections_via_symbols
