	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_wow_resume              ## -- Begin function cw1200_wow_resume
	.p2align	4, 0x90
_cw1200_wow_resume:                     ## @cw1200_wow_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	72(%rbx), %r14
	movq	$0, 72(%rbx)
	movq	64(%rbx), %rax
	movl	56(%rbx), %edi
	xorl	%esi, %esi
	callq	*(%rax)
	leaq	28(%rbx), %rdi
	callq	_up
	movq	%rbx, %rdi
	callq	_cw1200_bh_resume
	movl	%eax, %edi
	callq	_WARN_ON
	movq	48(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_CW1200_JOIN_STATUS_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	20(%r14), %eax
	leaq	40(%rbx), %rsi
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_cw1200_set_pm
LBB0_3:
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movl	12(%rbx), %eax
	movl	8(%rbx), %ecx
	imull	%eax, %ecx
	movq	_MAX_BEACON_SKIP_TIME_MS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movl	$1, %esi
	cmovlel	%eax, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wsm_set_beacon_wakeup_period
	movl	$0, (%r14)
LBB0_5:
	leaq	36(%rbx), %rsi
	movl	16(%r14), %edx
	movq	%rbx, %rdi
	callq	_cw1200_resume_work
	leaq	32(%rbx), %rsi
	movl	12(%r14), %edx
	movq	%rbx, %rdi
	callq	_cw1200_resume_work
	leaq	24(%rbx), %rsi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_cw1200_resume_work
	leaq	20(%rbx), %rsi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_cw1200_resume_work
	movq	_cw1200_udp_port_filter_off@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wsm_set_udp_port_filter
	movq	_cw1200_ether_type_filter_off@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wsm_set_ether_type_filter
	movq	%rbx, %rdi
	callq	_wsm_unlock_tx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ## @CW1200_JOIN_STATUS_STA
	.comm	_MAX_BEACON_SKIP_TIME_MS,4,2    ## @MAX_BEACON_SKIP_TIME_MS
	.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_resume              ; -- Begin function cw1200_wow_resume
	.p2align	2
_cw1200_wow_resume:                     ; @cw1200_wow_resume
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldp	x8, x19, [x20, #64]
	str	xzr, [x20, #72]
	ldr	x8, [x8]
	ldr	w0, [x20, #56]
	mov	w1, #0
	blr	x8
	add	x0, x20, #28
	bl	_up
	mov	x0, x20
	bl	_cw1200_bh_resume
	bl	_WARN_ON
	ldr	x8, [x20, #48]
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CW1200_JOIN_STATUS_STA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_STA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #20]
	mov	x1, x20
	str	w8, [x1, #40]!
	mov	x0, x20
	bl	_cw1200_set_pm
LBB0_3:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:
	ldp	w8, w9, [x20, #8]
	mul	w8, w9, w8
Lloh3:
	adrp	x10, _MAX_BEACON_SKIP_TIME_MS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_BEACON_SKIP_TIME_MS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	csinc	w1, w9, wzr, le
	mov	x0, x20
	mov	w2, #0
	bl	_wsm_set_beacon_wakeup_period
	str	wzr, [x19]
LBB0_5:
	add	x1, x20, #36
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_cw1200_resume_work
	add	x1, x20, #32
	ldr	w2, [x19, #12]
	mov	x0, x20
	bl	_cw1200_resume_work
	add	x1, x20, #24
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_cw1200_resume_work
	add	x1, x20, #20
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_cw1200_resume_work
Lloh6:
	adrp	x1, _cw1200_udp_port_filter_off@GOTPAGE
Lloh7:
	ldr	x1, [x1, _cw1200_udp_port_filter_off@GOTPAGEOFF]
	mov	x0, x20
	bl	_wsm_set_udp_port_filter
Lloh8:
	adrp	x1, _cw1200_ether_type_filter_off@GOTPAGE
Lloh9:
	ldr	x1, [x1, _cw1200_ether_type_filter_off@GOTPAGEOFF]
	mov	x0, x20
	bl	_wsm_set_ether_type_filter
	mov	x0, x20
	bl	_wsm_unlock_tx
	add	x0, x20, #16
	bl	_mutex_unlock
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CW1200_JOIN_STATUS_STA,8,3     ; @CW1200_JOIN_STATUS_STA
	.comm	_MAX_BEACON_SKIP_TIME_MS,4,2    ; @MAX_BEACON_SKIP_TIME_MS
	.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
