	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_ps_restore           ## -- Begin function ath9k_htc_ps_restore
	.p2align	4, 0x90
_ath9k_htc_ps_restore:                  ## @ath9k_htc_ps_restore
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	decq	(%rbx)
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	movl	$1, %esi
	callq	_ath9k_hw_setrxabort
	movl	12(%rbx), %edi
	leaq	-20(%rbp), %rsi
	callq	_ath9k_hw_stopdmarecv
	movl	12(%rbx), %edi
	movq	_ATH9K_PM_FULL_SLEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movl	12(%rbx), %edi
	movq	_ATH9K_PM_NETWORK_SLEEP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_ath9k_hw_setpower
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_PM_FULL_SLEEP,4,2        ## @ATH9K_PM_FULL_SLEEP
	.comm	_ATH9K_PM_NETWORK_SLEEP,4,2     ## @ATH9K_PM_NETWORK_SLEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_ps_restore           ; -- Begin function ath9k_htc_ps_restore
	.p2align	2
_ath9k_htc_ps_restore:                  ; @ath9k_htc_ps_restore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #12]
	mov	w1, #1
	bl	_ath9k_hw_setrxabort
	ldr	w0, [x20, #12]
	add	x1, sp, #12
	bl	_ath9k_hw_stopdmarecv
	ldr	w0, [x20, #12]
Lloh0:
	adrp	x8, _ATH9K_PM_FULL_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_PM_FULL_SLEEP@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x20, #12]
Lloh2:
	adrp	x8, _ATH9K_PM_NETWORK_SLEEP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH9K_PM_NETWORK_SLEEP@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	bl	_ath9k_hw_setpower
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_PM_FULL_SLEEP,4,2        ; @ATH9K_PM_FULL_SLEEP
	.comm	_ATH9K_PM_NETWORK_SLEEP,4,2     ; @ATH9K_PM_NETWORK_SLEEP
.subsections_via_symbols
