	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_wow_suspend             ## -- Begin function cw1200_wow_suspend
	.p2align	4, 0x90
_cw1200_wow_suspend:                    ## @cw1200_wow_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	leaq	144(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	leaq	148(%r12), %rdi
	callq	_timer_pending
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_2:
	cmpq	$0, 128(%r12)
	jne	LBB0_30
## %bb.3:
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_trylock
	testl	%eax, %eax
	je	LBB0_30
## %bb.4:
	cmpq	$0, 120(%r12)
	jne	LBB0_29
## %bb.5:
	cmpq	$0, 112(%r12)
	jne	LBB0_29
## %bb.6:
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_down_trylock
	testq	%rax, %rax
	jne	LBB0_29
## %bb.7:
	movq	%r12, %rdi
	callq	_wsm_lock_tx_async
	xorl	%esi, %esi
	cmpl	$0, 104(%r12)
	movl	108(%r12), %edi
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$34, %rdx
	addl	%eax, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wait_event_timeout
	testq	%rax, %rax
	jle	LBB0_28
## %bb.8:
	movq	_cw1200_udp_port_filter_on@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_wsm_set_udp_port_filter
	movq	_cw1200_ether_type_filter_on@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_wsm_set_ether_type_filter
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.9:
	movq	%rax, %r13
	movq	96(%r12), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.10:
	movq	(%r12), %rax
	movq	_CW1200_JOIN_STATUS_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	88(%r12), %rax
	movq	_WSM_PSM_PS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	leaq	88(%r12), %rsi
	movq	%rax, (%r13)
	movq	(%rcx), %rax
	movq	%rax, 88(%r12)
	movq	%r12, %rdi
	callq	_cw1200_set_pm
	movl	84(%r12), %edi
	xorl	%esi, %esi
	cmpl	$0, 80(%r12)
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_interruptible_timeout
	testq	%rax, %rax
	jle	LBB0_26
LBB0_13:
	leaq	32(%r12), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_cw1200_suspend_work
	movq	%rax, 40(%r13)
	leaq	28(%r12), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_cw1200_suspend_work
	movq	%rax, 32(%r13)
	leaq	20(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_cw1200_suspend_work
	movq	%rax, 24(%r13)
	leaq	24(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_cw1200_suspend_work
	movq	%rax, 16(%r13)
	leaq	76(%r12), %rdi
	callq	_cancel_delayed_work_sync
	leaq	72(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	(%r12), %rax
	movq	_CW1200_JOIN_STATUS_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	movl	8(%r12), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.15:
	cmpl	$0, 68(%r12)
	jne	LBB0_17
## %bb.16:
	movl	$1, 8(%r13)
	movq	_CW1200_BEACON_SKIPPING_MULTIPLIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	%esi, %edx
	movq	%r12, %rdi
	callq	_wsm_set_beacon_wakeup_period
LBB0_17:
	movq	%r12, %rdi
	callq	_cw1200_bh_suspend
	testq	%rax, %rax
	jne	LBB0_25
## %bb.18:
	leaq	64(%r12), %rdi
	callq	_timer_pending
	testl	%eax, %eax
	je	LBB0_19
## %bb.24:
	movq	%r12, %rdi
	callq	_cw1200_bh_resume
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_25:
	movq	40(%r13), %rdx
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_cw1200_resume_work
	movq	32(%r13), %rdx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_cw1200_resume_work
	movq	24(%r13), %rdx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_cw1200_resume_work
	movq	16(%r13), %rdx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_cw1200_resume_work
LBB0_26:
	movq	%r13, %rdi
	callq	_kfree
LBB0_27:
	movq	_cw1200_udp_port_filter_off@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_wsm_set_udp_port_filter
	movq	_cw1200_ether_type_filter_off@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_wsm_set_ether_type_filter
LBB0_28:
	movq	%r12, %rdi
	callq	_wsm_unlock_tx
	movq	%rbx, %rdi
	callq	_up
LBB0_29:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_30:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_31:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_32:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r13, 136(%r12)
	movq	56(%r12), %rax
	movl	48(%r12), %edi
	movl	$1, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	40(%r12), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_wiphy_err
	movq	%r15, %rdi
	callq	_cw1200_wow_resume
	jmp	LBB0_30
LBB0_21:
	addq	$36, %r12
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	movq	%r15, %rdi
	callq	_cw1200_wow_resume
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_31
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HZ,4,2                         ## @HZ
	.comm	_cw1200_udp_port_filter_on,4,2  ## @cw1200_udp_port_filter_on
	.comm	_cw1200_ether_type_filter_on,4,2 ## @cw1200_ether_type_filter_on
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ## @CW1200_JOIN_STATUS_STA
	.comm	_WSM_PSM_PS,8,3                 ## @WSM_PSM_PS
	.comm	_CW1200_BEACON_SKIPPING_MULTIPLIER,4,2 ## @CW1200_BEACON_SKIPPING_MULTIPLIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PM request failed: %d. WoW is disabled.\n"

	.comm	_cw1200_udp_port_filter_off,4,2 ## @cw1200_udp_port_filter_off
	.comm	_cw1200_ether_type_filter_off,4,2 ## @cw1200_ether_type_filter_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_wow_suspend             ; -- Begin function cw1200_wow_suspend
	.p2align	2
_cw1200_wow_suspend:                    ; @cw1200_wow_suspend
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldr	x19, [x0]
	add	x20, x19, #144
	mov	x0, x20
	bl	_spin_lock_bh
	add	x0, x19, #148
	bl	_timer_pending
	mov	x22, x0
	mov	x0, x20
	bl	_spin_unlock_bh
	cbz	w22, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_26
LBB0_2:
	ldr	x8, [x19, #128]
	cbnz	x8, LBB0_25
; %bb.3:
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_trylock
	cbz	w0, LBB0_25
; %bb.4:
	ldr	x8, [x19, #120]
	cbnz	x8, LBB0_24
; %bb.5:
	ldr	x8, [x19, #112]
	cbnz	x8, LBB0_24
; %bb.6:
	add	x22, x19, #16
	mov	x0, x22
	bl	_down_trylock
	cbnz	x0, LBB0_24
; %bb.7:
	mov	x0, x19
	bl	_wsm_lock_tx_async
	ldp	w8, w0, [x19, #104]
	cmp	w8, #0
	cset	w1, eq
Lloh2:
	adrp	x24, _HZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	ldrsw	x8, [x24]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w2, w8, w9
	bl	_wait_event_timeout
	cmp	x0, #1
	b.lt	LBB0_23
; %bb.8:
Lloh4:
	adrp	x1, _cw1200_udp_port_filter_on@GOTPAGE
Lloh5:
	ldr	x1, [x1, _cw1200_udp_port_filter_on@GOTPAGEOFF]
	mov	x0, x19
	bl	_wsm_set_udp_port_filter
Lloh6:
	adrp	x1, _cw1200_ether_type_filter_on@GOTPAGE
Lloh7:
	ldr	x1, [x1, _cw1200_ether_type_filter_on@GOTPAGEOFF]
	mov	x0, x19
	bl	_wsm_set_ether_type_filter
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_22
; %bb.9:
	mov	x23, x0
	ldr	x8, [x19, #96]
	ldr	w8, [x8]
Lloh11:
	adrp	x28, _CW1200_JOIN_STATUS_STA@GOTPAGE
Lloh12:
	ldr	x28, [x28, _CW1200_JOIN_STATUS_STA@GOTPAGEOFF]
	cbnz	w8, LBB0_13
; %bb.10:
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	mov	x1, x19
	ldr	x8, [x1, #88]!
Lloh13:
	adrp	x9, _WSM_PSM_PS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WSM_PSM_PS@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_13
; %bb.12:
	str	x8, [x23]
	ldr	x8, [x9]
	str	x8, [x19, #88]
	mov	x0, x19
	bl	_cw1200_set_pm
	ldp	w8, w0, [x19, #80]
	cmp	w8, #0
	cset	w1, eq
	ldr	w2, [x24]
	bl	_wait_event_interruptible_timeout
	cmp	x0, #1
	b.lt	LBB0_21
LBB0_13:
	add	x24, x19, #32
	mov	x0, x24
	bl	_cw1200_suspend_work
	str	x0, [x23, #40]
	add	x25, x19, #28
	mov	x0, x25
	bl	_cw1200_suspend_work
	str	x0, [x23, #32]
	add	x26, x19, #20
	mov	x0, x26
	bl	_cw1200_suspend_work
	str	x0, [x23, #24]
	add	x27, x19, #24
	mov	x0, x27
	bl	_cw1200_suspend_work
	str	x0, [x23, #16]
	add	x0, x19, #76
	bl	_cancel_delayed_work_sync
	add	x0, x19, #72
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	ldr	w1, [x19, #8]
	cbz	w1, LBB0_17
; %bb.15:
	ldr	w8, [x19, #68]
	cbnz	w8, LBB0_17
; %bb.16:
	mov	w8, #1
	str	w8, [x23, #8]
Lloh15:
	adrp	x8, _CW1200_BEACON_SKIPPING_MULTIPLIER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CW1200_BEACON_SKIPPING_MULTIPLIER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mul	w2, w8, w1
	mov	x0, x19
	bl	_wsm_set_beacon_wakeup_period
LBB0_17:
	mov	x0, x19
	bl	_cw1200_bh_suspend
	cbnz	x0, LBB0_20
; %bb.18:
	add	x0, x19, #64
	bl	_timer_pending
	cbz	w0, LBB0_28
; %bb.19:
	mov	x0, x19
	bl	_cw1200_bh_resume
	bl	_WARN_ON
LBB0_20:
	ldr	x2, [x23, #40]
	mov	x0, x19
	mov	x1, x24
	bl	_cw1200_resume_work
	ldr	x2, [x23, #32]
	mov	x0, x19
	mov	x1, x25
	bl	_cw1200_resume_work
	ldr	x2, [x23, #24]
	mov	x0, x19
	mov	x1, x26
	bl	_cw1200_resume_work
	ldr	x2, [x23, #16]
	mov	x0, x19
	mov	x1, x27
	bl	_cw1200_resume_work
LBB0_21:
	mov	x0, x23
	bl	_kfree
LBB0_22:
Lloh18:
	adrp	x1, _cw1200_udp_port_filter_off@GOTPAGE
Lloh19:
	ldr	x1, [x1, _cw1200_udp_port_filter_off@GOTPAGEOFF]
	mov	x0, x19
	bl	_wsm_set_udp_port_filter
Lloh20:
	adrp	x1, _cw1200_ether_type_filter_off@GOTPAGE
Lloh21:
	ldr	x1, [x1, _cw1200_ether_type_filter_off@GOTPAGEOFF]
	mov	x0, x19
	bl	_wsm_set_ether_type_filter
LBB0_23:
	mov	x0, x19
	bl	_wsm_unlock_tx
	mov	x0, x22
	bl	_up
LBB0_24:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_25:
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	str	x23, [x19, #136]
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	w0, [x19, #48]
	mov	w1, #1
	blr	x8
	cbz	w0, LBB0_30
; %bb.29:
	mov	x2, x0
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
	mov	x0, x21
	bl	_cw1200_wow_resume
	b	LBB0_25
LBB0_30:
	add	x0, x19, #36
	bl	_atomic_read
	cbz	x0, LBB0_27
; %bb.31:
	mov	x0, x21
	bl	_cw1200_wow_resume
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HZ,4,2                         ; @HZ
	.comm	_cw1200_udp_port_filter_on,4,2  ; @cw1200_udp_port_filter_on
	.comm	_cw1200_ether_type_filter_on,4,2 ; @cw1200_ether_type_filter_on
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ; @CW1200_JOIN_STATUS_STA
	.comm	_WSM_PSM_PS,8,3                 ; @WSM_PSM_PS
	.comm	_CW1200_BEACON_SKIPPING_MULTIPLIER,4,2 ; @CW1200_BEACON_SKIPPING_MULTIPLIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PM request failed: %d. WoW is disabled.\n"

	.comm	_cw1200_udp_port_filter_off,4,2 ; @cw1200_udp_port_filter_off
	.comm	_cw1200_ether_type_filter_off,4,2 ; @cw1200_ether_type_filter_off
.subsections_via_symbols
