	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_init_wow                 ## -- Begin function ath9k_init_wow
	.p2align	4, 0x90
_ath9k_init_wow:                        ## @ath9k_init_wow
	.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, %r14
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r15
	movq	_ATH9K_PCI_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	callq	_AR_SREV_9462_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_AR_SREV_9565_11_OR_LATER
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_ath9k_wowlan_support_legacy@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ath9k_wowlan_support@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movl	4(%rbx), %edi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_init_wakeup             ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_PCI_WOW,4,2              ## @ATH9K_PCI_WOW
	.comm	_ath9k_wowlan_support,4,2       ## @ath9k_wowlan_support
	.comm	_ath9k_wowlan_support_legacy,4,2 ## @ath9k_wowlan_support_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_init_wow                 ; -- Begin function ath9k_init_wow
	.p2align	2
_ath9k_init_wow:                        ; @ath9k_init_wow
	.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	x19, x0
	ldr	x21, [x0, #8]
	ldr	x20, [x21, #16]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _ATH9K_PCI_WOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH9K_PCI_WOW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
LBB0_2:
	mov	x0, x20
	bl	_AR_SREV_9462_20_OR_LATER
Lloh3:
	adrp	x22, _ath9k_wowlan_support@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ath9k_wowlan_support@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_AR_SREV_9565_11_OR_LATER
Lloh5:
	adrp	x8, _ath9k_wowlan_support_legacy@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ath9k_wowlan_support_legacy@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x8, x22, eq
LBB0_4:
	ldr	x8, [x19]
	str	x22, [x8]
	ldr	w0, [x21, #4]
	mov	w1, #1
	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	_device_init_wakeup
LBB0_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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_PCI_WOW,4,2              ; @ATH9K_PCI_WOW
	.comm	_ath9k_wowlan_support,4,2       ; @ath9k_wowlan_support
	.comm	_ath9k_wowlan_support_legacy,4,2 ; @ath9k_wowlan_support_legacy
.subsections_via_symbols
