	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wow_wakeup            ## -- Begin function ath9k_hw_wow_wakeup
	.p2align	4, 0x90
_ath9k_hw_wow_wakeup:                   ## @ath9k_hw_wow_wakeup
	.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
	movq	%rdi, %r15
	movq	_AR_WOW_PATTERN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_REG_READ
	movl	%eax, %edi
	callq	_AR_WOW_STATUS
	movl	%eax, %ebx
	andl	(%r15), %ebx
	je	LBB0_1
## %bb.2:
	movq	_AR_WOW_MAGIC_PAT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%ebx, %r13d
	je	LBB0_4
## %bb.3:
	movq	_AH_WOW_MAGIC_PATTERN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movl	%ebx, %edi
	callq	_AR_WOW_PATTERN_FOUND
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_AH_WOW_USER_PATTERN_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	orl	%r13d, %r14d
	movq	_AR_WOW_KEEP_ALIVE_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_8
## %bb.7:
	movq	_AH_WOW_LINK_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%eax, %r14d
	movq	_AR_WOW_BEACON_FAIL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_AH_WOW_BEACON_MISS@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
LBB0_10:
	movq	_AR_MAC_PCU_WOW4@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movl	%eax, %edi
	callq	_AR_WOW_STATUS2
	andl	4(%r15), %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %edi
	callq	_AR_WOW2_PATTERN_FOUND
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_AH_WOW_USER_PATTERN_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_13:
	movq	_AR_PCIE_PM_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PMCTRL_WOW_PME_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_AR_PMCTRL_PWR_STATE_D1D3@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_REG_RMW
	movl	(%r12), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	movl	%eax, %edi
	callq	_AR_WOW_CLEAR_EVENTS
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movl	(%r13), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_REG_READ
	movl	%eax, %edi
	callq	_AR_WOW_CLEAR_EVENTS2
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_WRITE
	movq	_AR_RSSI_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INIT_RSSI_THR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_REG_WRITE
	cmpq	$0, 8(%r15)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ath9k_hw_configpcipowersave
LBB0_15:
	movq	%r15, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	%r15, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_AR_SREV_9485
	testq	%rax, %rax
	je	LBB0_20
LBB0_18:
	movq	_AR_DIRECT_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movq	_AR_DC_TSF2_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_20
## %bb.19:
	movq	%r15, %rdi
	callq	_ath9k_hw_gen_timer_start_tsf2
LBB0_20:
	movq	$0, (%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_WOW_PATTERN,4,2             ## @AR_WOW_PATTERN
	.comm	_AR_WOW_MAGIC_PAT_FOUND,4,2     ## @AR_WOW_MAGIC_PAT_FOUND
	.comm	_AH_WOW_MAGIC_PATTERN_EN,4,2    ## @AH_WOW_MAGIC_PATTERN_EN
	.comm	_AH_WOW_USER_PATTERN_EN,4,2     ## @AH_WOW_USER_PATTERN_EN
	.comm	_AR_WOW_KEEP_ALIVE_FAIL,4,2     ## @AR_WOW_KEEP_ALIVE_FAIL
	.comm	_AH_WOW_LINK_CHANGE,4,2         ## @AH_WOW_LINK_CHANGE
	.comm	_AR_WOW_BEACON_FAIL,4,2         ## @AR_WOW_BEACON_FAIL
	.comm	_AH_WOW_BEACON_MISS,4,2         ## @AH_WOW_BEACON_MISS
	.comm	_AR_MAC_PCU_WOW4,4,2            ## @AR_MAC_PCU_WOW4
	.comm	_AR_PCIE_PM_CTRL,4,2            ## @AR_PCIE_PM_CTRL
	.comm	_AR_PMCTRL_WOW_PME_CLR,4,2      ## @AR_PMCTRL_WOW_PME_CLR
	.comm	_AR_PMCTRL_PWR_STATE_D1D3,4,2   ## @AR_PMCTRL_PWR_STATE_D1D3
	.comm	_AR_RSSI_THR,4,2                ## @AR_RSSI_THR
	.comm	_INIT_RSSI_THR,4,2              ## @INIT_RSSI_THR
	.comm	_AR_DIRECT_CONNECT,4,2          ## @AR_DIRECT_CONNECT
	.comm	_AR_DC_TSF2_ENABLE,4,2          ## @AR_DC_TSF2_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wow_wakeup            ; -- Begin function ath9k_hw_wow_wakeup
	.p2align	2
_ath9k_hw_wow_wakeup:                   ; @ath9k_hw_wow_wakeup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _AR_WOW_PATTERN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR_WOW_PATTERN@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_REG_READ
	bl	_AR_WOW_STATUS
	ldr	w8, [x19]
Lloh2:
	adrp	x23, _AH_WOW_USER_PATTERN_EN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AH_WOW_USER_PATTERN_EN@GOTPAGEOFF]
	ands	w21, w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _AR_WOW_MAGIC_PAT_FOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_WOW_MAGIC_PAT_FOUND@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _AH_WOW_MAGIC_PATTERN_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AH_WOW_MAGIC_PATTERN_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w20, wzr, w9, eq
	mov	x0, x21
	bl	_AR_WOW_PATTERN_FOUND
	ldr	w8, [x23]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
Lloh10:
	adrp	x9, _AR_WOW_KEEP_ALIVE_FAIL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AR_WOW_KEEP_ALIVE_FAIL@GOTPAGEOFF]
	orr	w8, w8, w20
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _AH_WOW_LINK_CHANGE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AH_WOW_LINK_CHANGE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w9, w21
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
Lloh16:
	adrp	x8, _AR_WOW_BEACON_FAIL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_WOW_BEACON_FAIL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
Lloh19:
	adrp	x8, _AH_WOW_BEACON_MISS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AH_WOW_BEACON_MISS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh22:
	adrp	x24, _AR_MAC_PCU_WOW4@GOTPAGE
Lloh23:
	ldr	x24, [x24, _AR_MAC_PCU_WOW4@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_REG_READ
	bl	_AR_WOW_STATUS2
	ldr	w8, [x19, #4]
	ands	w0, w8, w0
	b.eq	LBB0_7
; %bb.5:
	bl	_AR_WOW2_PATTERN_FOUND
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x23]
	orr	w20, w8, w20
LBB0_7:
Lloh24:
	adrp	x8, _AR_PCIE_PM_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_PCIE_PM_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _AR_PMCTRL_WOW_PME_CLR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR_PMCTRL_WOW_PME_CLR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x8, _AR_PMCTRL_PWR_STATE_D1D3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_PMCTRL_PWR_STATE_D1D3@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_REG_RMW
	ldr	w21, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	bl	_AR_WOW_CLEAR_EVENTS
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_REG_WRITE
	ldr	w21, [x24]
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	bl	_AR_WOW_CLEAR_EVENTS2
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_REG_WRITE
Lloh33:
	adrp	x8, _AR_RSSI_THR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_RSSI_THR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _INIT_RSSI_THR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _INIT_RSSI_THR@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_ath9k_hw_configpcipowersave
LBB0_9:
	mov	x0, x19
	bl	_AR_SREV_9462
	cbnz	x0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_AR_SREV_9485
	cbz	x0, LBB0_14
LBB0_12:
Lloh39:
	adrp	x8, _AR_DIRECT_CONNECT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR_DIRECT_CONNECT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
Lloh42:
	adrp	x8, _AR_DC_TSF2_ENABLE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR_DC_TSF2_ENABLE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_ath9k_hw_gen_timer_start_tsf2
LBB0_14:
	str	xzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_WOW_PATTERN,4,2             ; @AR_WOW_PATTERN
	.comm	_AR_WOW_MAGIC_PAT_FOUND,4,2     ; @AR_WOW_MAGIC_PAT_FOUND
	.comm	_AH_WOW_MAGIC_PATTERN_EN,4,2    ; @AH_WOW_MAGIC_PATTERN_EN
	.comm	_AH_WOW_USER_PATTERN_EN,4,2     ; @AH_WOW_USER_PATTERN_EN
	.comm	_AR_WOW_KEEP_ALIVE_FAIL,4,2     ; @AR_WOW_KEEP_ALIVE_FAIL
	.comm	_AH_WOW_LINK_CHANGE,4,2         ; @AH_WOW_LINK_CHANGE
	.comm	_AR_WOW_BEACON_FAIL,4,2         ; @AR_WOW_BEACON_FAIL
	.comm	_AH_WOW_BEACON_MISS,4,2         ; @AH_WOW_BEACON_MISS
	.comm	_AR_MAC_PCU_WOW4,4,2            ; @AR_MAC_PCU_WOW4
	.comm	_AR_PCIE_PM_CTRL,4,2            ; @AR_PCIE_PM_CTRL
	.comm	_AR_PMCTRL_WOW_PME_CLR,4,2      ; @AR_PMCTRL_WOW_PME_CLR
	.comm	_AR_PMCTRL_PWR_STATE_D1D3,4,2   ; @AR_PMCTRL_PWR_STATE_D1D3
	.comm	_AR_RSSI_THR,4,2                ; @AR_RSSI_THR
	.comm	_INIT_RSSI_THR,4,2              ; @INIT_RSSI_THR
	.comm	_AR_DIRECT_CONNECT,4,2          ; @AR_DIRECT_CONNECT
	.comm	_AR_DC_TSF2_ENABLE,4,2          ; @AR_DC_TSF2_ENABLE
.subsections_via_symbols
