	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wow_op_suspend          ## -- Begin function ath10k_wow_op_suspend
	.p2align	4, 0x90
_ath10k_wow_op_suspend:                 ## @ath10k_wow_op_suspend
	.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	%rsi, %r15
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%rbx, %rdi
	callq	_ath10k_wow_cleanup
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ath10k_wow_set_wakeups
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_ath10k_mac_wait_tx_complete
	movq	%rbx, %rdi
	callq	_ath10k_wow_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
LBB0_11:
	movq	%rbx, %rdi
	callq	_ath10k_wow_cleanup
LBB0_12:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_ath10k_hif_suspend
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	movq	%rbx, %rdi
	callq	_ath10k_wow_wakeup
	jmp	LBB0_11
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT,4,2 ## @ATH10K_FW_FEATURE_WOWLAN_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to clear wow wakeup events: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set wow wakeup events: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to start wow: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to suspend hif: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wow_op_suspend          ; -- Begin function ath10k_wow_op_suspend
	.p2align	2
_ath10k_wow_op_suspend:                 ; @ath10k_wow_op_suspend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_ath10k_wow_cleanup
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_wow_set_wakeups
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_ath10k_mac_wait_tx_complete
	mov	x0, x19
	bl	_ath10k_wow_enable
	cbz	w0, LBB0_11
; %bb.6:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_ath10k_warn
LBB0_8:
	mov	x0, x19
	bl	_ath10k_wow_cleanup
LBB0_9:
	mov	w20, #1
LBB0_10:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	bl	_ath10k_hif_suspend
	cbz	w0, LBB0_13
; %bb.12:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	mov	x0, x19
	bl	_ath10k_wow_wakeup
	b	LBB0_8
LBB0_13:
	mov	w20, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT,4,2 ; @ATH10K_FW_FEATURE_WOWLAN_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to clear wow wakeup events: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set wow wakeup events: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to start wow: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to suspend hif: %d\n"

.subsections_via_symbols
