	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_can_suspend                ## -- Begin function wil_can_suspend
	.p2align	4, 0x90
_wil_can_suspend:                       ## @wil_can_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	%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, %r15d
	movq	%rdi, %r13
	movq	_WMI_FW_CAPABILITY_WMI_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r13), %esi
	callq	_test_bit
	movl	%eax, %ebx
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r14
	cmoveq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wil_dbg_pm
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_debug_fw@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.4:
	cmpl	$0, 28(%r13)
	je	LBB0_5
LBB0_8:
	leaq	12(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_wil_has_active_ifaces
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movq	_wil_status_resetting@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r13), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_12
LBB0_2:
	testl	%ebx, %ebx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmovneq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_pm
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_pm
LBB0_22:
	leaq	L_.str.9(%rip), %rsi
	leaq	L_.str.11(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_wil_dbg_pm
	jmp	LBB0_23
LBB0_13:
	movq	(%r13), %rax
	movq	_fw_recovery_idle@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_GET_MAX_VIFS
	testl	%eax, %eax
	jle	LBB0_21
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movq	%r13, %rdi
	callq	_GET_MAX_VIFS
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_wil_can_suspend_vif
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	movl	(%rax), %r12d
	callq	_mutex_unlock
	jmp	LBB0_6
LBB0_14:
	leaq	L_.str.8(%rip), %rsi
LBB0_12:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_pm
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %ebx
	negl	%ebx
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %rcx
	cmovaeq	%rax, %rcx
	leaq	L_.str.9(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_wil_dbg_pm
	testl	%r12d, %r12d
	je	LBB0_23
## %bb.7:
	incl	8(%r13)
	movl	%ebx, %r15d
LBB0_23:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_FW_CAPABILITY_WMI_ONLY,4,2 ## @WMI_FW_CAPABILITY_WMI_ONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can_suspend: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"runtime"

L_.str.2:                               ## @.str.2
	.asciz	"system"

	.comm	_debug_fw,8,3                   ## @debug_fw
L_.str.3:                               ## @.str.3
	.asciz	"Deny any suspend - %s mode\n"

L_.str.4:                               ## @.str.4
	.asciz	"wmi_only"

L_.str.5:                               ## @.str.5
	.asciz	"debug_fw"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.6:                               ## @.str.6
	.asciz	"Interface is down\n"

	.comm	_wil_status_resetting,4,2       ## @wil_status_resetting
L_.str.7:                               ## @.str.7
	.asciz	"Delay suspend when resetting\n"

	.comm	_fw_recovery_idle,8,3           ## @fw_recovery_idle
L_.str.8:                               ## @.str.8
	.asciz	"Delay suspend during recovery\n"

L_.str.9:                               ## @.str.9
	.asciz	"can_suspend: %s => %s (%d)\n"

L_.str.10:                              ## @.str.10
	.asciz	"No"

L_.str.11:                              ## @.str.11
	.asciz	"Yes"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_can_suspend                ; -- Begin function wil_can_suspend
	.p2align	2
_wil_can_suspend:                       ; @wil_can_suspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WMI_FW_CAPABILITY_WMI_ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_FW_CAPABILITY_WMI_ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_test_bit
	mov	x21, x0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x23, x9, x8, eq
	str	x23, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
Lloh9:
	adrp	x8, _debug_fw@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug_fw@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w21, #0
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, l_.str.5@PAGE
Lloh13:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh14:
	adrp	x9, l_.str.4@PAGE
Lloh15:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, ne
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_18
LBB0_4:
	add	x21, x19, #12
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_wil_has_active_ifaces
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbz	w22, LBB0_7
; %bb.5:
Lloh18:
	adrp	x8, _wil_status_resetting@GOTPAGE
Lloh19:
	ldr	x8, [x8, _wil_status_resetting@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.6:
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_7:
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
LBB0_8:
Lloh25:
	adrp	x8, l_.str.11@PAGE
Lloh26:
	add	x8, x8, l_.str.11@PAGEOFF
	stp	x8, xzr, [sp, #8]
	str	x23, [sp]
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
	b	LBB0_21
LBB0_9:
	ldr	x8, [x19]
Lloh29:
	adrp	x9, _fw_recovery_idle@GOTPAGE
Lloh30:
	ldr	x9, [x9, _fw_recovery_idle@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.10:
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_GET_MAX_VIFS
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.11:
	mov	x22, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	mov	x0, x19
	bl	_GET_MAX_VIFS
	cmp	x22, w0, sxtw
	b.ge	LBB0_23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x1, [x8, x22, lsl #3]
	cbz	x1, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x2, x20
	bl	_wil_can_suspend_vif
	cbnz	w0, LBB0_12
; %bb.15:
Lloh32:
	adrp	x8, _EBUSY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_19
LBB0_16:
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_wil_dbg_pm
LBB0_18:
Lloh37:
	adrp	x8, _EBUSY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh39:
	ldr	w22, [x8]
LBB0_19:
	neg	w20, w22
Lloh40:
	adrp	x8, l_.str.10@PAGE
Lloh41:
	add	x8, x8, l_.str.10@PAGEOFF
Lloh42:
	adrp	x9, l_.str.11@PAGE
Lloh43:
	add	x9, x9, l_.str.11@PAGEOFF
	cmp	w22, #0
	csel	x8, x9, x8, eq
	stp	x8, x20, [sp, #8]
	str	x23, [sp]
Lloh44:
	adrp	x1, l_.str.9@PAGE
Lloh45:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
	cbz	w22, LBB0_21
; %bb.20:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_22
LBB0_21:
	mov	w20, #0
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_FW_CAPABILITY_WMI_ONLY,4,2 ; @WMI_FW_CAPABILITY_WMI_ONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can_suspend: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"runtime"

l_.str.2:                               ; @.str.2
	.asciz	"system"

	.comm	_debug_fw,8,3                   ; @debug_fw
l_.str.3:                               ; @.str.3
	.asciz	"Deny any suspend - %s mode\n"

l_.str.4:                               ; @.str.4
	.asciz	"wmi_only"

l_.str.5:                               ; @.str.5
	.asciz	"debug_fw"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.6:                               ; @.str.6
	.asciz	"Interface is down\n"

	.comm	_wil_status_resetting,4,2       ; @wil_status_resetting
l_.str.7:                               ; @.str.7
	.asciz	"Delay suspend when resetting\n"

	.comm	_fw_recovery_idle,8,3           ; @fw_recovery_idle
l_.str.8:                               ; @.str.8
	.asciz	"Delay suspend during recovery\n"

l_.str.9:                               ; @.str.9
	.asciz	"can_suspend: %s => %s (%d)\n"

l_.str.10:                              ; @.str.10
	.asciz	"No"

l_.str.11:                              ; @.str.11
	.asciz	"Yes"

.subsections_via_symbols
