	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_abort_scan
_wil_cfg80211_abort_scan:               ## @wil_cfg80211_abort_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_wiphy_to_wil
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_wdev_to_vif
	movq	%rax, %r12
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpq	%r15, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	jmp	LBB0_7
LBB0_3:
	cmpq	%r15, 8(%r14)
	jne	LBB0_6
## %bb.4:
	cmpq	%r15, 16(%r14)
	je	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_wil_abort_scan
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	callq	_wil_p2p_stop_radio_operations
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wdev=0x%p iftype=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"abort scan was called on the wrong iface\n"

	.no_dead_strip	_wil_cfg80211_abort_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_abort_scan
_wil_cfg80211_abort_scan:               ; @wil_cfg80211_abort_scan
	.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
	mov	x20, x1
	bl	_wiphy_to_wil
	mov	x19, x0
	mov	x1, x20
	bl	_wdev_to_vif
	mov	x22, x0
	ldr	w8, [x20]
	stp	x20, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	mov	x0, x19
	bl	_mutex_lock
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, x20
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_misc
	b	LBB0_6
LBB0_3:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_7
LBB0_5:
	mov	x0, x22
	mov	w1, #1
	bl	_wil_abort_scan
LBB0_6:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	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
	b	_mutex_unlock
LBB0_7:
	mov	x0, x19
	bl	_wil_p2p_stop_radio_operations
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wdev=0x%p iftype=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"abort scan was called on the wrong iface\n"

	.no_dead_strip	_wil_cfg80211_abort_scan
.subsections_via_symbols
