	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_cfg80211_deepsleep_resume
_ath6kl_cfg80211_deepsleep_resume:      ## @ath6kl_cfg80211_deepsleep_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	%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	(%rbx), %rdi
	movq	8(%rdi), %rdx
	cmpq	%rdx, (%rdi)
	je	LBB0_5
## %bb.3:
	xorl	%esi, %esi
	callq	_ath6kl_wmi_powermode_cmd
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	(%rbx), %rdi
LBB0_5:
	movl	(%r14), %esi
	movq	_ATH6KL_HOST_MODE_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ath6kl_wmi_set_host_sleep_mode_cmd
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_ATH6KL_STATE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$3
	pushq	$0
	pushq	$0
	callq	_ath6kl_wmi_scanparams_cmd
	addq	$48, %rsp
	jmp	LBB0_7
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ATH6KL_HOST_MODE_AWAKE,4,2     ## @ATH6KL_HOST_MODE_AWAKE
	.comm	_ATH6KL_STATE_ON,4,2            ## @ATH6KL_STATE_ON
	.no_dead_strip	_ath6kl_cfg80211_deepsleep_resume
.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_resume
_ath6kl_cfg80211_deepsleep_resume:      ; @ath6kl_cfg80211_deepsleep_resume
	.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	x19, x0
	bl	_ath6kl_vif_first
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
	ldp	x8, x2, [x0]
	cmp	x8, x2
	b.eq	LBB0_4
; %bb.2:
	mov	w1, #0
	bl	_ath6kl_wmi_powermode_cmd
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19]
LBB0_4:
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _ATH6KL_HOST_MODE_AWAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_HOST_MODE_AWAKE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_ath6kl_wmi_set_host_sleep_mode_cmd
	cbnz	w0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _ATH6KL_STATE_ON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH6KL_STATE_ON@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x0, [x19]
	ldr	w1, [x20]
	mov	w8, #3
	stp	x8, xzr, [sp]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ath6kl_wmi_scanparams_cmd
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ATH6KL_HOST_MODE_AWAKE,4,2     ; @ATH6KL_HOST_MODE_AWAKE
	.comm	_ATH6KL_STATE_ON,4,2            ; @ATH6KL_STATE_ON
	.no_dead_strip	_ath6kl_cfg80211_deepsleep_resume
.subsections_via_symbols
