	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_ps_wakeup                ## -- Begin function ath9k_ps_wakeup
	.p2align	4, 0x90
_ath9k_ps_wakeup:                       ## @ath9k_ps_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_del_timer_sync
	movq	8(%rbx), %rdi
	movl	(%rdi), %ebx
	movq	_ATH9K_PM_AWAKE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ath9k_hw_setpower
	cmpl	(%r12), %ebx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_ath_hw_cycle_counters_update
	leaq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_3:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_PM_AWAKE,4,2             ## @ATH9K_PM_AWAKE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_ps_wakeup                ; -- Begin function ath9k_ps_wakeup
	.p2align	2
_ath9k_ps_wakeup:                       ; @ath9k_ps_wakeup
	.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	x21, x0
	ldr	x0, [x0, #8]
	bl	_ath9k_hw_common
	mov	x20, x0
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	add	w9, w8, #1
	str	w9, [x21]
	cbnz	w8, LBB0_3
; %bb.1:
	add	x0, x21, #16
	bl	_del_timer_sync
	ldr	x0, [x21, #8]
	ldr	w21, [x0]
Lloh0:
	adrp	x22, _ATH9K_PM_AWAKE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATH9K_PM_AWAKE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ath9k_hw_setpower
	ldr	w8, [x22]
	cmp	w21, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x20
	bl	_ath_hw_cycle_counters_update
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x0, x20, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_spin_unlock
LBB0_3:
	mov	x0, x19
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_PM_AWAKE,4,2             ; @ATH9K_PM_AWAKE
.subsections_via_symbols
