	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_suspend                    ## -- Begin function wil_suspend
	.p2align	4, 0x90
_wil_suspend:                           ## @wil_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r14
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wil_dbg_pm
	movq	_wil_status_suspended@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_pm
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	callq	_wil_suspend_keep_radio_on
	jmp	LBB0_5
LBB0_3:
	callq	_wil_suspend_radio_off
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wil_dbg_pm
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	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"

	.comm	_wil_status_suspended,4,2       ## @wil_status_suspended
L_.str.3:                               ## @.str.3
	.asciz	"trying to suspend while suspended\n"

L_.str.4:                               ## @.str.4
	.asciz	"suspend: %s => %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_suspend                    ; -- Begin function wil_suspend
	.p2align	2
_wil_suspend:                           ; @wil_suspend
	.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, x2
	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	w1, #0
	csel	x21, x9, x8, eq
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wil_dbg_pm
Lloh6:
	adrp	x8, _wil_status_suspended@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wil_status_suspended@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	cbz	w20, LBB0_4
; %bb.3:
	bl	_wil_suspend_keep_radio_on
	b	LBB0_5
LBB0_4:
	bl	_wil_suspend_radio_off
LBB0_5:
	mov	x20, x0
	stp	x21, x20, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_pm
LBB0_6:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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"

	.comm	_wil_status_suspended,4,2       ; @wil_status_suspended
l_.str.3:                               ; @.str.3
	.asciz	"trying to suspend while suspended\n"

l_.str.4:                               ; @.str.4
	.asciz	"suspend: %s => %d\n"

.subsections_via_symbols
