	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_cfg80211_deepsleep_suspend
_ath6kl_cfg80211_deepsleep_suspend:     ## @ath6kl_cfg80211_deepsleep_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ath6kl_vif_first
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_WMI_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_ath6kl_cfg80211_stop_all
	movq	(%rbx), %rdi
	movl	(%rdi), %eax
	movl	%eax, 4(%rdi)
	movq	_REC_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_ath6kl_wmi_powermode_cmd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	movq	_ATH6KL_WOW_MODE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ath6kl_wmi_set_wow_mode_cmd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_ath6kl_tx_data_cleanup
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath6kl_cfg80211_host_sleep     ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_err
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WMI_READY,4,2                  ## @WMI_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deepsleep failed as wmi is not ready\n"

	.comm	_REC_POWER,4,2                  ## @REC_POWER
	.comm	_ATH6KL_WOW_MODE_DISABLE,4,2    ## @ATH6KL_WOW_MODE_DISABLE
	.no_dead_strip	_ath6kl_cfg80211_deepsleep_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_cfg80211_deepsleep_suspend
_ath6kl_cfg80211_deepsleep_suspend:     ; @ath6kl_cfg80211_deepsleep_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	x19, x0
	bl	_ath6kl_vif_first
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _WMI_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_ath6kl_cfg80211_stop_all
	ldr	x0, [x19]
	ldr	w8, [x0]
	str	w8, [x0, #4]
Lloh3:
	adrp	x8, _REC_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REC_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_ath6kl_wmi_powermode_cmd
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19]
	ldr	w1, [x20]
Lloh6:
	adrp	x8, _ATH6KL_WOW_MODE_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH6KL_WOW_MODE_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #0
	mov	w4, #0
	bl	_ath6kl_wmi_set_wow_mode_cmd
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_ath6kl_tx_data_cleanup
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath6kl_cfg80211_host_sleep
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
LBB0_6:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WMI_READY,4,2                  ; @WMI_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deepsleep failed as wmi is not ready\n"

	.comm	_REC_POWER,4,2                  ; @REC_POWER
	.comm	_ATH6KL_WOW_MODE_DISABLE,4,2    ; @ATH6KL_WOW_MODE_DISABLE
	.no_dead_strip	_ath6kl_cfg80211_deepsleep_suspend
.subsections_via_symbols
