	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_cfg80211_suspend
_wil_cfg80211_suspend:                  ## @wil_cfg80211_suspend
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_wiphy_to_wil
	movq	%rax, %rbx
	movq	_wil_status_suspended@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_dbg_pm
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wil_can_suspend
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_dbg_pm
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_wil_p2p_stop_radio_operations
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wil_abort_scan_all_vifs
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_wil_status_suspended,4,2       ## @wil_status_suspended
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to suspend while suspended\n"

L_.str.1:                               ## @.str.1
	.asciz	"suspending\n"

	.no_dead_strip	_wil_cfg80211_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_cfg80211_suspend
_wil_cfg80211_suspend:                  ; @wil_cfg80211_suspend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_wiphy_to_wil
	mov	x19, x0
Lloh0:
	adrp	x8, _wil_status_suspended@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wil_status_suspended@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_wil_can_suspend
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
	mov	x0, x19
	bl	_mutex_lock
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_wil_p2p_stop_radio_operations
	mov	x0, x19
	mov	w1, #1
	bl	_wil_abort_scan_all_vifs
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_wil_status_suspended,4,2       ; @wil_status_suspended
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to suspend while suspended\n"

l_.str.1:                               ; @.str.1
	.asciz	"suspending\n"

	.no_dead_strip	_wil_cfg80211_suspend
.subsections_via_symbols
