	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wow_enable            ## -- Begin function ath9k_hw_wow_enable
	.p2align	4, 0x90
_ath9k_hw_wow_enable:                   ## @ath9k_hw_wow_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %r13d
	movq	_AR_PMCTRL_HOST_PME_EN@GOTPCREL(%rip), %rcx
	movq	_AR_PMCTRL_PWR_PM_CTRL_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rcx), %edx
	movq	_AR_PCIE_PM_CTRL@GOTPCREL(%rip), %rbx
	movq	_AR_PMCTRL_AUX_PWR_DET@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%rbx), %esi
	movq	_AR_PMCTRL_WOW_PME_CLR@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	callq	_REG_SET_BIT
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_WOW_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AR_WOW_PAT_BACKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR_WOW_BACK_OFF_SHIFT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_SET_BIT
	movq	_AR_WOW_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_AR_WOW_CNT_AIFS_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR_WOW_AIFS_CNT
	movl	%eax, %ebx
	movq	_AR_WOW_CNT_SLOT_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR_WOW_SLOT_CNT
	orl	%eax, %ebx
	movq	_AR_WOW_CNT_KA_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AR_WOW_KEEP_ALIVE_CNT
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_REG_SET_BIT
	movq	_AH_WOW_BEACON_MISS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_AR_WOW_BCN_TIMO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%r14d, %eax
	jne	LBB0_1
## %bb.2:
	movq	_AR_WOW_BEACON_TIMO_MAX@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AR_WOW_BEACON_TIMO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_AR_WOW_KEEP_ALIVE_TIMO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.5:
	movq	_AR_WOW_KEEP_ALIVE_NEVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_6
LBB0_4:
	movq	_KAL_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$5, %edx
LBB0_6:
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_AR_WOW_KEEP_ALIVE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KAL_DELAY@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %edx             ## imm = 0x3E8
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	%r15, %rdi
	callq	_ath9k_wow_create_keep_alive_pattern
	movq	_AR_WOW_KEEP_ALIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movq	_AR_WOW_KEEP_ALIVE_AUTO_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_AH_WOW_LINK_CHANGE@GOTPCREL(%rip), %rcx
	movq	_AR_WOW_KEEP_ALIVE_FAIL_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, (%rcx)
	je	LBB0_8
## %bb.7:
	notl	%eax
	andl	%eax, %edx
	movq	_AR_WOW_KEEP_ALIVE_FAIL@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_9
LBB0_8:
	orl	%eax, %edx
LBB0_9:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_AR_RSSI_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_RSSI_THR_BM_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR_WOW_BMISSTHRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_REG_RMW_FIELD
	testl	%r14d, (%r12)
	je	LBB0_11
## %bb.10:
	movq	_AR_WOW_BEACON_FAIL@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_AR_WOW_BCN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_WOW_BEACON_FAIL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_SET_BIT
	jmp	LBB0_12
LBB0_11:
	movq	_AR_WOW_BCN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_WOW_BEACON_FAIL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
LBB0_12:
	movq	_AR_PCIE_PM_CTRL@GOTPCREL(%rip), %r12
	movq	_AR_WOW_PATTERN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movq	_AR_WOW_MAC_INTR_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AH_WOW_MAGIC_PATTERN_EN@GOTPCREL(%rip), %rcx
	movq	_AR_WOW_MAGIC_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r14d, (%rcx)
	je	LBB0_14
## %bb.13:
	orl	%eax, %edx
	movq	_AR_WOW_MAGIC_PAT_FOUND@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_15
LBB0_14:
	notl	%edx
	andl	%eax, %edx
LBB0_15:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_REG_WRITE
	movq	_AR_WOW_PATTERN_MATCH_LT_256B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_WOW_PATTERN_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movq	_AR_PMCTRL_PWR_STATE_D1D3@GOTPCREL(%rip), %r14
	orl	(%r14), %eax
	movq	_AR_PMCTRL_HOST_PME_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AR_PMCTRL_PWR_PM_CTRL_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AR_PCIE_PM_CTRL_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r15, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, %ebx
	movq	_AR_PMCTRL_PWR_STATE_D1D3_REAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_17:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movq	_AR_STA_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_STA_ID1_PRESERVE_SEQNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_CLR_BIT
	movq	_AR_PCIE_PHY_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$13, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_SET_BIT
	movq	%r15, %rdi
	callq	_ath9k_hw_wow_set_arwr_reg
	movq	%r15, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_AR_RTC_KEEP_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_REG_WRITE
LBB0_19:
	movq	_AR_PCU_MISC_MODE3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$5, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_CLR_BIT
	movq	%r15, %rdi
	callq	_ath9k_hw_set_powermode_wow_sleep
	movl	%r13d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PCIE_PM_CTRL,4,2            ## @AR_PCIE_PM_CTRL
	.comm	_AR_PMCTRL_HOST_PME_EN,4,2      ## @AR_PMCTRL_HOST_PME_EN
	.comm	_AR_PMCTRL_PWR_PM_CTRL_ENA,4,2  ## @AR_PMCTRL_PWR_PM_CTRL_ENA
	.comm	_AR_PMCTRL_AUX_PWR_DET,4,2      ## @AR_PMCTRL_AUX_PWR_DET
	.comm	_AR_PMCTRL_WOW_PME_CLR,4,2      ## @AR_PMCTRL_WOW_PME_CLR
	.comm	_AR_WOW_PATTERN,4,2             ## @AR_WOW_PATTERN
	.comm	_AR_WOW_PAT_BACKOFF,4,2         ## @AR_WOW_PAT_BACKOFF
	.comm	_AR_WOW_COUNT,4,2               ## @AR_WOW_COUNT
	.comm	_AR_WOW_CNT_AIFS_CNT,4,2        ## @AR_WOW_CNT_AIFS_CNT
	.comm	_AR_WOW_CNT_SLOT_CNT,4,2        ## @AR_WOW_CNT_SLOT_CNT
	.comm	_AR_WOW_CNT_KA_CNT,4,2          ## @AR_WOW_CNT_KA_CNT
	.comm	_AH_WOW_BEACON_MISS,4,2         ## @AH_WOW_BEACON_MISS
	.comm	_AR_WOW_BCN_TIMO,4,2            ## @AR_WOW_BCN_TIMO
	.comm	_AR_WOW_BEACON_TIMO,4,2         ## @AR_WOW_BEACON_TIMO
	.comm	_AR_WOW_BEACON_TIMO_MAX,4,2     ## @AR_WOW_BEACON_TIMO_MAX
	.comm	_AR_WOW_KEEP_ALIVE_TIMO,4,2     ## @AR_WOW_KEEP_ALIVE_TIMO
	.comm	_AR_WOW_KEEP_ALIVE_NEVER,4,2    ## @AR_WOW_KEEP_ALIVE_NEVER
	.comm	_KAL_TIMEOUT,4,2                ## @KAL_TIMEOUT
	.comm	_AR_WOW_KEEP_ALIVE_DELAY,4,2    ## @AR_WOW_KEEP_ALIVE_DELAY
	.comm	_KAL_DELAY,4,2                  ## @KAL_DELAY
	.comm	_AR_WOW_KEEP_ALIVE,4,2          ## @AR_WOW_KEEP_ALIVE
	.comm	_AR_WOW_KEEP_ALIVE_AUTO_DIS,4,2 ## @AR_WOW_KEEP_ALIVE_AUTO_DIS
	.comm	_AH_WOW_LINK_CHANGE,4,2         ## @AH_WOW_LINK_CHANGE
	.comm	_AR_WOW_KEEP_ALIVE_FAIL_DIS,4,2 ## @AR_WOW_KEEP_ALIVE_FAIL_DIS
	.comm	_AR_WOW_KEEP_ALIVE_FAIL,4,2     ## @AR_WOW_KEEP_ALIVE_FAIL
	.comm	_AR_RSSI_THR,4,2                ## @AR_RSSI_THR
	.comm	_AR_RSSI_THR_BM_THR,4,2         ## @AR_RSSI_THR_BM_THR
	.comm	_AR_WOW_BMISSTHRESHOLD,4,2      ## @AR_WOW_BMISSTHRESHOLD
	.comm	_AR_WOW_BEACON_FAIL,4,2         ## @AR_WOW_BEACON_FAIL
	.comm	_AR_WOW_BCN_EN,4,2              ## @AR_WOW_BCN_EN
	.comm	_AR_WOW_BEACON_FAIL_EN,4,2      ## @AR_WOW_BEACON_FAIL_EN
	.comm	_AR_WOW_MAC_INTR_EN,4,2         ## @AR_WOW_MAC_INTR_EN
	.comm	_AH_WOW_MAGIC_PATTERN_EN,4,2    ## @AH_WOW_MAGIC_PATTERN_EN
	.comm	_AR_WOW_MAGIC_EN,4,2            ## @AR_WOW_MAGIC_EN
	.comm	_AR_WOW_MAGIC_PAT_FOUND,4,2     ## @AR_WOW_MAGIC_PAT_FOUND
	.comm	_AR_WOW_PATTERN_MATCH_LT_256B,4,2 ## @AR_WOW_PATTERN_MATCH_LT_256B
	.comm	_AR_WOW_PATTERN_SUPPORTED,4,2   ## @AR_WOW_PATTERN_SUPPORTED
	.comm	_AR_PMCTRL_PWR_STATE_D1D3,4,2   ## @AR_PMCTRL_PWR_STATE_D1D3
	.comm	_AR_PCIE_PM_CTRL_ENA,4,2        ## @AR_PCIE_PM_CTRL_ENA
	.comm	_AR_PMCTRL_PWR_STATE_D1D3_REAL,4,2 ## @AR_PMCTRL_PWR_STATE_D1D3_REAL
	.comm	_AR_STA_ID1,4,2                 ## @AR_STA_ID1
	.comm	_AR_STA_ID1_PRESERVE_SEQNUM,4,2 ## @AR_STA_ID1_PRESERVE_SEQNUM
	.comm	_AR_PCIE_PHY_REG3,4,2           ## @AR_PCIE_PHY_REG3
	.comm	_AR_RTC_KEEP_AWAKE,4,2          ## @AR_RTC_KEEP_AWAKE
	.comm	_AR_PCU_MISC_MODE3,4,2          ## @AR_PCU_MISC_MODE3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wow_enable            ; -- Begin function ath9k_hw_wow_enable
	.p2align	2
_ath9k_hw_wow_enable:                   ; @ath9k_hw_wow_enable
	.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	x20, x1
	mov	x19, x0
	ldr	w23, [x0]
Lloh0:
	adrp	x24, _AR_PCIE_PM_CTRL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AR_PCIE_PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x25, _AR_PMCTRL_HOST_PME_EN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AR_PMCTRL_HOST_PME_EN@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh4:
	adrp	x26, _AR_PMCTRL_PWR_PM_CTRL_ENA@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AR_PMCTRL_PWR_PM_CTRL_ENA@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _AR_PMCTRL_AUX_PWR_DET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AR_PMCTRL_AUX_PWR_DET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x21, _AR_PMCTRL_WOW_PME_CLR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AR_PMCTRL_WOW_PME_CLR@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w2, w8, w9
	bl	_REG_SET_BIT
	ldr	w1, [x24]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_REG_CLR_BIT
Lloh11:
	adrp	x27, _AR_WOW_PATTERN@GOTPAGE
Lloh12:
	ldr	x27, [x27, _AR_WOW_PATTERN@GOTPAGEOFF]
	ldr	w21, [x27]
Lloh13:
	adrp	x8, _AR_WOW_PAT_BACKOFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_WOW_PAT_BACKOFF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AR_WOW_BACK_OFF_SHIFT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_REG_SET_BIT
Lloh16:
	adrp	x8, _AR_WOW_COUNT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_WOW_COUNT@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
Lloh19:
	adrp	x8, _AR_WOW_CNT_AIFS_CNT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_WOW_CNT_AIFS_CNT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_AR_WOW_AIFS_CNT
	mov	x22, x0
Lloh22:
	adrp	x8, _AR_WOW_CNT_SLOT_CNT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR_WOW_CNT_SLOT_CNT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_AR_WOW_SLOT_CNT
	orr	w22, w0, w22
Lloh25:
	adrp	x8, _AR_WOW_CNT_KA_CNT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AR_WOW_CNT_KA_CNT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_AR_WOW_KEEP_ALIVE_CNT
	orr	w2, w22, w0
	mov	x0, x19
	mov	x1, x21
	bl	_REG_SET_BIT
Lloh28:
	adrp	x21, _AH_WOW_BEACON_MISS@GOTPAGE
Lloh29:
	ldr	x21, [x21, _AH_WOW_BEACON_MISS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh30:
	adrp	x9, _AR_WOW_BCN_TIMO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AR_WOW_BCN_TIMO@GOTPAGEOFF]
Lloh32:
	adrp	x10, _AR_WOW_BEACON_TIMO_MAX@GOTPAGE
Lloh33:
	ldr	x10, [x10, _AR_WOW_BEACON_TIMO_MAX@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
Lloh35:
	adrp	x9, _AR_WOW_BEACON_TIMO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AR_WOW_BEACON_TIMO@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
Lloh37:
	adrp	x8, _AR_WOW_KEEP_ALIVE_TIMO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AR_WOW_KEEP_ALIVE_TIMO@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _KAL_TIMEOUT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _KAL_TIMEOUT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	lsl	w8, w8, #5
Lloh43:
	adrp	x9, _AR_WOW_KEEP_ALIVE_NEVER@GOTPAGE
Lloh44:
	ldr	x9, [x9, _AR_WOW_KEEP_ALIVE_NEVER@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_REG_WRITE
Lloh46:
	adrp	x8, _AR_WOW_KEEP_ALIVE_DELAY@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AR_WOW_KEEP_ALIVE_DELAY@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _KAL_DELAY@GOTPAGE
Lloh50:
	ldr	x8, [x8, _KAL_DELAY@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w2, w8, w9
	mov	x0, x19
	bl	_REG_WRITE
	mov	x0, x19
	bl	_ath9k_wow_create_keep_alive_pattern
Lloh52:
	adrp	x22, _AR_WOW_KEEP_ALIVE@GOTPAGE
Lloh53:
	ldr	x22, [x22, _AR_WOW_KEEP_ALIVE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
Lloh54:
	adrp	x8, _AR_WOW_KEEP_ALIVE_AUTO_DIS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AR_WOW_KEEP_ALIVE_AUTO_DIS@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _AH_WOW_LINK_CHANGE@GOTPAGE
Lloh58:
	ldr	x9, [x9, _AH_WOW_LINK_CHANGE@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh59:
	ldr	w10, [x9]
Lloh60:
	adrp	x9, _AR_WOW_KEEP_ALIVE_FAIL_DIS@GOTPAGE
Lloh61:
	ldr	x9, [x9, _AR_WOW_KEEP_ALIVE_FAIL_DIS@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	tst	w10, w20
	b.eq	LBB0_2
; %bb.1:
	bic	w2, w8, w9
Lloh63:
	adrp	x8, _AR_WOW_KEEP_ALIVE_FAIL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AR_WOW_KEEP_ALIVE_FAIL@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_3
LBB0_2:
	orr	w2, w9, w8
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_WRITE
Lloh66:
	adrp	x8, _AR_RSSI_THR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AR_RSSI_THR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x8, _AR_RSSI_THR_BM_THR@GOTPAGE
Lloh70:
	ldr	x8, [x8, _AR_RSSI_THR_BM_THR@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
Lloh72:
	adrp	x8, _AR_WOW_BMISSTHRESHOLD@GOTPAGE
Lloh73:
	ldr	x8, [x8, _AR_WOW_BMISSTHRESHOLD@GOTPAGEOFF]
Lloh74:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh75:
	adrp	x8, _AR_WOW_BEACON_FAIL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AR_WOW_BEACON_FAIL@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	orr	w23, w8, w23
Lloh78:
	adrp	x8, _AR_WOW_BCN_EN@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AR_WOW_BCN_EN@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _AR_WOW_BEACON_FAIL_EN@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AR_WOW_BEACON_FAIL_EN@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	b	LBB0_6
LBB0_5:
Lloh84:
	adrp	x8, _AR_WOW_BCN_EN@GOTPAGE
Lloh85:
	ldr	x8, [x8, _AR_WOW_BCN_EN@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
Lloh87:
	adrp	x8, _AR_WOW_BEACON_FAIL_EN@GOTPAGE
Lloh88:
	ldr	x8, [x8, _AR_WOW_BEACON_FAIL_EN@GOTPAGEOFF]
Lloh89:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
LBB0_6:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_REG_READ
Lloh90:
	adrp	x8, _AR_WOW_MAC_INTR_EN@GOTPAGE
Lloh91:
	ldr	x8, [x8, _AR_WOW_MAC_INTR_EN@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
Lloh93:
	adrp	x9, _AH_WOW_MAGIC_PATTERN_EN@GOTPAGE
Lloh94:
	ldr	x9, [x9, _AH_WOW_MAGIC_PATTERN_EN@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh95:
	ldr	w10, [x9]
Lloh96:
	adrp	x9, _AR_WOW_MAGIC_EN@GOTPAGE
Lloh97:
	ldr	x9, [x9, _AR_WOW_MAGIC_EN@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	tst	w10, w20
	b.eq	LBB0_8
; %bb.7:
	orr	w2, w9, w8
Lloh99:
	adrp	x8, _AR_WOW_MAGIC_PAT_FOUND@GOTPAGE
Lloh100:
	ldr	x8, [x8, _AR_WOW_MAGIC_PAT_FOUND@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_9
LBB0_8:
	bic	w2, w8, w9
LBB0_9:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_REG_WRITE
Lloh102:
	adrp	x8, _AR_WOW_PATTERN_MATCH_LT_256B@GOTPAGE
Lloh103:
	ldr	x8, [x8, _AR_WOW_PATTERN_MATCH_LT_256B@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
Lloh105:
	adrp	x8, _AR_WOW_PATTERN_SUPPORTED@GOTPAGE
Lloh106:
	ldr	x8, [x8, _AR_WOW_PATTERN_SUPPORTED@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_READ
Lloh108:
	adrp	x21, _AR_PMCTRL_PWR_STATE_D1D3@GOTPAGE
Lloh109:
	ldr	x21, [x21, _AR_PMCTRL_PWR_STATE_D1D3@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
Lloh110:
	adrp	x9, _AR_PCIE_PM_CTRL_ENA@GOTPAGE
Lloh111:
	ldr	x9, [x9, _AR_PCIE_PM_CTRL_ENA@GOTPAGEOFF]
Lloh112:
	ldr	w9, [x9]
	bic	w20, w8, w9
	mov	x0, x19
	bl	_AR_SREV_9462
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x21]
	bic	w8, w20, w8
Lloh113:
	adrp	x9, _AR_PMCTRL_PWR_STATE_D1D3_REAL@GOTPAGE
Lloh114:
	ldr	x9, [x9, _AR_PMCTRL_PWR_STATE_D1D3_REAL@GOTPAGEOFF]
Lloh115:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_11:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_REG_WRITE
Lloh116:
	adrp	x8, _AR_STA_ID1@GOTPAGE
Lloh117:
	ldr	x8, [x8, _AR_STA_ID1@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
Lloh119:
	adrp	x8, _AR_STA_ID1_PRESERVE_SEQNUM@GOTPAGE
Lloh120:
	ldr	x8, [x8, _AR_STA_ID1_PRESERVE_SEQNUM@GOTPAGEOFF]
Lloh121:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
Lloh122:
	adrp	x8, _AR_PCIE_PHY_REG3@GOTPAGE
Lloh123:
	ldr	x8, [x8, _AR_PCIE_PHY_REG3@GOTPAGEOFF]
Lloh124:
	ldr	w20, [x8]
	mov	w0, #13
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_REG_SET_BIT
	mov	x0, x19
	bl	_ath9k_hw_wow_set_arwr_reg
	mov	x0, x19
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_13
; %bb.12:
Lloh125:
	adrp	x8, _AR_RTC_KEEP_AWAKE@GOTPAGE
Lloh126:
	ldr	x8, [x8, _AR_RTC_KEEP_AWAKE@GOTPAGEOFF]
Lloh127:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_REG_WRITE
LBB0_13:
Lloh128:
	adrp	x8, _AR_PCU_MISC_MODE3@GOTPAGE
Lloh129:
	ldr	x8, [x8, _AR_PCU_MISC_MODE3@GOTPAGEOFF]
Lloh130:
	ldr	w20, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_REG_CLR_BIT
	mov	x0, x19
	bl	_ath9k_hw_set_powermode_wow_sleep
	str	w23, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PCIE_PM_CTRL,4,2            ; @AR_PCIE_PM_CTRL
	.comm	_AR_PMCTRL_HOST_PME_EN,4,2      ; @AR_PMCTRL_HOST_PME_EN
	.comm	_AR_PMCTRL_PWR_PM_CTRL_ENA,4,2  ; @AR_PMCTRL_PWR_PM_CTRL_ENA
	.comm	_AR_PMCTRL_AUX_PWR_DET,4,2      ; @AR_PMCTRL_AUX_PWR_DET
	.comm	_AR_PMCTRL_WOW_PME_CLR,4,2      ; @AR_PMCTRL_WOW_PME_CLR
	.comm	_AR_WOW_PATTERN,4,2             ; @AR_WOW_PATTERN
	.comm	_AR_WOW_PAT_BACKOFF,4,2         ; @AR_WOW_PAT_BACKOFF
	.comm	_AR_WOW_COUNT,4,2               ; @AR_WOW_COUNT
	.comm	_AR_WOW_CNT_AIFS_CNT,4,2        ; @AR_WOW_CNT_AIFS_CNT
	.comm	_AR_WOW_CNT_SLOT_CNT,4,2        ; @AR_WOW_CNT_SLOT_CNT
	.comm	_AR_WOW_CNT_KA_CNT,4,2          ; @AR_WOW_CNT_KA_CNT
	.comm	_AH_WOW_BEACON_MISS,4,2         ; @AH_WOW_BEACON_MISS
	.comm	_AR_WOW_BCN_TIMO,4,2            ; @AR_WOW_BCN_TIMO
	.comm	_AR_WOW_BEACON_TIMO,4,2         ; @AR_WOW_BEACON_TIMO
	.comm	_AR_WOW_BEACON_TIMO_MAX,4,2     ; @AR_WOW_BEACON_TIMO_MAX
	.comm	_AR_WOW_KEEP_ALIVE_TIMO,4,2     ; @AR_WOW_KEEP_ALIVE_TIMO
	.comm	_AR_WOW_KEEP_ALIVE_NEVER,4,2    ; @AR_WOW_KEEP_ALIVE_NEVER
	.comm	_KAL_TIMEOUT,4,2                ; @KAL_TIMEOUT
	.comm	_AR_WOW_KEEP_ALIVE_DELAY,4,2    ; @AR_WOW_KEEP_ALIVE_DELAY
	.comm	_KAL_DELAY,4,2                  ; @KAL_DELAY
	.comm	_AR_WOW_KEEP_ALIVE,4,2          ; @AR_WOW_KEEP_ALIVE
	.comm	_AR_WOW_KEEP_ALIVE_AUTO_DIS,4,2 ; @AR_WOW_KEEP_ALIVE_AUTO_DIS
	.comm	_AH_WOW_LINK_CHANGE,4,2         ; @AH_WOW_LINK_CHANGE
	.comm	_AR_WOW_KEEP_ALIVE_FAIL_DIS,4,2 ; @AR_WOW_KEEP_ALIVE_FAIL_DIS
	.comm	_AR_WOW_KEEP_ALIVE_FAIL,4,2     ; @AR_WOW_KEEP_ALIVE_FAIL
	.comm	_AR_RSSI_THR,4,2                ; @AR_RSSI_THR
	.comm	_AR_RSSI_THR_BM_THR,4,2         ; @AR_RSSI_THR_BM_THR
	.comm	_AR_WOW_BMISSTHRESHOLD,4,2      ; @AR_WOW_BMISSTHRESHOLD
	.comm	_AR_WOW_BEACON_FAIL,4,2         ; @AR_WOW_BEACON_FAIL
	.comm	_AR_WOW_BCN_EN,4,2              ; @AR_WOW_BCN_EN
	.comm	_AR_WOW_BEACON_FAIL_EN,4,2      ; @AR_WOW_BEACON_FAIL_EN
	.comm	_AR_WOW_MAC_INTR_EN,4,2         ; @AR_WOW_MAC_INTR_EN
	.comm	_AH_WOW_MAGIC_PATTERN_EN,4,2    ; @AH_WOW_MAGIC_PATTERN_EN
	.comm	_AR_WOW_MAGIC_EN,4,2            ; @AR_WOW_MAGIC_EN
	.comm	_AR_WOW_MAGIC_PAT_FOUND,4,2     ; @AR_WOW_MAGIC_PAT_FOUND
	.comm	_AR_WOW_PATTERN_MATCH_LT_256B,4,2 ; @AR_WOW_PATTERN_MATCH_LT_256B
	.comm	_AR_WOW_PATTERN_SUPPORTED,4,2   ; @AR_WOW_PATTERN_SUPPORTED
	.comm	_AR_PMCTRL_PWR_STATE_D1D3,4,2   ; @AR_PMCTRL_PWR_STATE_D1D3
	.comm	_AR_PCIE_PM_CTRL_ENA,4,2        ; @AR_PCIE_PM_CTRL_ENA
	.comm	_AR_PMCTRL_PWR_STATE_D1D3_REAL,4,2 ; @AR_PMCTRL_PWR_STATE_D1D3_REAL
	.comm	_AR_STA_ID1,4,2                 ; @AR_STA_ID1
	.comm	_AR_STA_ID1_PRESERVE_SEQNUM,4,2 ; @AR_STA_ID1_PRESERVE_SEQNUM
	.comm	_AR_PCIE_PHY_REG3,4,2           ; @AR_PCIE_PHY_REG3
	.comm	_AR_RTC_KEEP_AWAKE,4,2          ; @AR_RTC_KEEP_AWAKE
	.comm	_AR_PCU_MISC_MODE3,4,2          ; @AR_PCU_MISC_MODE3
.subsections_via_symbols
