	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wow_init                ## -- Begin function ath10k_wow_init
	.p2align	4, 0x90
_ath10k_wow_init:                       ## @ath10k_wow_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	callq	_test_bit
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_WMI_SERVICE_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_3:
	movq	_ath10k_wowlan_support@GOTPCREL(%rip), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, 4(%rbx)
	movq	40(%rbx), %rax
	movq	_ATH10K_HW_TXRX_NATIVE_WIFI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_WOW_MAX_REDUCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, 20(%rbx)
	subl	%eax, 16(%rbx)
LBB0_5:
	leaq	4(%rbx), %r15
	movq	_WMI_SERVICE_NLO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_WIPHY_WOWLAN_NET_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movq	_WMI_PNO_MAX_SUPP_NETWORKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_7:
	movl	24(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%r15, (%rax)
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT,4,2 ## @ATH10K_FW_FEATURE_WOWLAN_SUPPORT
	.comm	_WMI_SERVICE_WOW,4,2            ## @WMI_SERVICE_WOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ath10k_wowlan_support,20,2     ## @ath10k_wowlan_support
	.comm	_ATH10K_HW_TXRX_NATIVE_WIFI,8,3 ## @ATH10K_HW_TXRX_NATIVE_WIFI
	.comm	_WOW_MAX_REDUCE,8,3             ## @WOW_MAX_REDUCE
	.comm	_WMI_SERVICE_NLO,4,2            ## @WMI_SERVICE_NLO
	.comm	_WIPHY_WOWLAN_NET_DETECT,4,2    ## @WIPHY_WOWLAN_NET_DETECT
	.comm	_WMI_PNO_MAX_SUPP_NETWORKS,4,2  ## @WMI_PNO_MAX_SUPP_NETWORKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wow_init                ; -- Begin function ath10k_wow_init
	.p2align	2
_ath10k_wow_init:                       ; @ath10k_wow_init
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _WMI_SERVICE_WOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_SERVICE_WOW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_test_bit
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	add	x20, x19, #4
Lloh9:
	adrp	x8, _ath10k_wowlan_support@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ath10k_wowlan_support@GOTPAGEOFF]
	ldr	q0, [x8]
	ldr	w8, [x8, #16]
	str	w8, [x19, #20]
	stur	q0, [x19, #4]
	ldr	x8, [x19, #40]
Lloh11:
	adrp	x9, _ATH10K_HW_TXRX_NATIVE_WIFI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATH10K_HW_TXRX_NATIVE_WIFI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _WOW_MAX_REDUCE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WOW_MAX_REDUCE@GOTPAGEOFF]
	ldr	d0, [x19, #16]
	ld1r.2s	{ v1 }, [x8]
	sub.2s	v0, v0, v1
	str	d0, [x19, #16]
LBB0_5:
Lloh16:
	adrp	x8, _WMI_SERVICE_NLO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WMI_SERVICE_NLO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x19, #48]
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _WIPHY_WOWLAN_NET_DETECT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WIPHY_WOWLAN_NET_DETECT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _WMI_PNO_MAX_SUPP_NETWORKS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WMI_PNO_MAX_SUPP_NETWORKS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
LBB0_7:
	ldr	w8, [x19, #24]
	str	w8, [x19, #4]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	str	x20, [x8]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_device_set_wakeup_capable
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT,4,2 ; @ATH10K_FW_FEATURE_WOWLAN_SUPPORT
	.comm	_WMI_SERVICE_WOW,4,2            ; @WMI_SERVICE_WOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ath10k_wowlan_support,20,2     ; @ath10k_wowlan_support
	.comm	_ATH10K_HW_TXRX_NATIVE_WIFI,8,3 ; @ATH10K_HW_TXRX_NATIVE_WIFI
	.comm	_WOW_MAX_REDUCE,8,3             ; @WOW_MAX_REDUCE
	.comm	_WMI_SERVICE_NLO,4,2            ; @WMI_SERVICE_NLO
	.comm	_WIPHY_WOWLAN_NET_DETECT,4,2    ; @WIPHY_WOWLAN_NET_DETECT
	.comm	_WMI_PNO_MAX_SUPP_NETWORKS,4,2  ; @WMI_PNO_MAX_SUPP_NETWORKS
.subsections_via_symbols
