	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil6210_suspend
_wil6210_suspend:                       ## @wil6210_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
	callq	_to_pci_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r12
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_wil_dbg_pm
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_wil_has_active_ifaces
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r12)
	setne	%r14b
LBB0_2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_wil_can_suspend
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movzbl	%r14b, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_wil_suspend
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	testb	%r14b, %r14b
	je	LBB0_5
## %bb.6:
	incl	(%r12)
	jmp	LBB0_7
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_clear_master
	incl	4(%r12)
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suspend: %s\n"

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

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

	.no_dead_strip	_wil6210_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil6210_suspend
_wil6210_suspend:                       ; @wil6210_suspend
	.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	x21, x1
	bl	_to_pci_dev
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w21, #0
	csel	x2, x9, x8, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wil_dbg_pm
	add	x22, x19, #16
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_wil_has_active_ifaces
	mov	x23, x0
	mov	x0, x22
	bl	_mutex_unlock
	cbz	w23, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w22, ne
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_wil_can_suspend
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_wil_suspend
	cbnz	w0, LBB0_8
; %bb.5:
	tbz	w22, #0, LBB0_7
; %bb.6:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_pci_clear_master
	mov	w0, #0
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_8:
	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
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suspend: %s\n"

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

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

	.no_dead_strip	_wil6210_suspend
.subsections_via_symbols
