	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wow_op_resume           ## -- Begin function ath10k_wow_op_resume
	.p2align	4, 0x90
_ath10k_wow_op_resume:                  ## @ath10k_wow_op_resume
	.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	(%rdi), %r15
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_ATH10K_FW_FEATURE_WOWLAN_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rax
	movl	(%rax), %esi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_ath10k_hif_resume
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	callq	_ath10k_wow_wakeup
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
LBB0_5:
	movq	%r15, %rdi
	callq	_ath10k_wow_nlo_cleanup
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ath10k_warn
LBB0_9:
	movl	(%r15), %edx
	leal	-128(%rdx), %eax
	cmpl	$4, %eax
	jae	LBB0_10
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$133, %edx
	je	LBB0_13
## %bb.11:
	cmpl	$132, %edx
	jne	LBB0_14
## %bb.12:
	movl	$130, (%r15)
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.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 resume hif: %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"failed to cleanup nlo: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"encountered unexpected device state %d on resume, cannot recover\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wow_op_resume           ; -- Begin function ath10k_wow_op_resume
	.p2align	2
_ath10k_wow_op_resume:                  ; @ath10k_wow_op_resume
	.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
	ldr	x20, [x0]
	add	x19, x20, #4
	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, [x20, #8]
	ldr	w1, [x8]
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	bl	_ath10k_hif_resume
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_ath10k_wow_wakeup
	cbz	w0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath10k_warn
LBB0_6:
	mov	x0, x20
	bl	_ath10k_wow_nlo_cleanup
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x20
	mov	x2, x21
	bl	_ath10k_warn
LBB0_9:
	ldr	w2, [x20]
	sub	w8, w2, #128
	cmp	w8, #4
	b.lo	LBB0_13
; %bb.10:
	cmp	w2, #133
	b.eq	LBB0_13
; %bb.11:
	cmp	w2, #132
	b.ne	LBB0_14
; %bb.12:
	mov	w8, #130
	str	w8, [x20]
	mov	w21, #1
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ath10k_warn
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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 resume hif: %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"failed to cleanup nlo: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"encountered unexpected device state %d on resume, cannot recover\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
