	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_suspend_resume          ## -- Begin function cw1200_suspend_resume
	.p2align	4, 0x90
_cw1200_suspend_resume:                 ## @cw1200_suspend_resume
	.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, %rbx
	movq	%rdi, %r15
	cmpq	$0, (%rsi)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	cmpq	$0, 16(%rbx)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	16(%rbx), %r12
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_2
LBB0_5:
	movl	$0, (%r15)
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_7:
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	callq	_cw1200_ps_notify
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	40(%r15), %rdi
	movl	8(%r15), %eax
	addl	$20, %eax
	imull	4(%r15), %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	leal	1023(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$10, %esi
	callq	_cw1200_pm_stay_awake
	cmpq	$0, 32(%r15)
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	cmpq	$0, 24(%r15)
	setne	%al
	movl	%eax, (%r15)
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_cw1200_bh_wakeup
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	addq	$16, %r15
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_del_timer_sync                 ## TAILCALL
LBB0_9:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cw1200_bh_wakeup               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[AP] %s: %s\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"broadcast"

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

	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_suspend_resume          ; -- Begin function cw1200_suspend_resume
	.p2align	2
_cw1200_suspend_resume:                 ; @cw1200_suspend_resume
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	x9, [x1]
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x9, #0
	csel	x1, x10, x8, eq
	ldr	x8, [x21, #16]
Lloh4:
	adrp	x9, l_.str.3@PAGE
Lloh5:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh6:
	adrp	x10, l_.str.4@PAGE
Lloh7:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x22, [x21, #16]
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_bh
	cbz	x22, LBB0_4
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
LBB0_2:
	str	wzr, [x19]
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_4:
	ldr	w1, [x21, #8]
	ldr	x2, [x21]
	mov	x0, x19
	bl	_cw1200_ps_notify
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x0, x19, #40
	ldp	w8, w9, [x19, #4]
	add	w9, w9, #20
	mul	w8, w9, w8
Lloh10:
	adrp	x9, _HZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	mul	w8, w8, w9
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #10
	bl	_cw1200_pm_stay_awake
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.7:
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w9, ne
	str	w9, [x19]
	cbz	x8, LBB0_3
; %bb.8:
	mov	x0, x19
	bl	_cw1200_bh_wakeup
	mov	x0, x20
	bl	_spin_unlock_bh
	add	x0, x19, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_del_timer_sync
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cw1200_bh_wakeup
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[AP] %s: %s\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"broadcast"

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

	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
