	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_suspend                  ## -- Begin function ath9k_suspend
	.p2align	4, 0x90
_ath9k_suspend:                         ## @ath9k_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	(%rdi), %rbx
	movq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ath9k_deinit_channel_context
	leaq	4(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_ATH_OP_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_3:
	xorl	%edi, %edi
	testq	%r13, %r13
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_22
LBB0_5:
	movq	24(%rbx), %rax
	cmpl	$2, (%rax)
	jl	LBB0_8
## %bb.6:
	movq	_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	callq	_ath9k_is_chanctx_enabled
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_ATH_OP_MULTI_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_7
LBB0_11:
	movq	_ATH_OP_PRIM_STA_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ath9k_wow_map_triggers
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ath_cancel_work
	movq	%rbx, %rdi
	callq	_ath_stop_ani
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	movq	%rbx, %rdi
	callq	_ath9k_stop_btcoex
	movq	%rbx, %rdi
	callq	_ath9k_wow_add_disassoc_deauth_pattern
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_17
LBB0_12:
	movq	_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_7
LBB0_14:
	movq	_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_7:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath_dbg
	movl	$1, %r14d
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_AH_WOW_USER_PATTERN_EN@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_21
## %bb.19:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ath9k_wow_add_pattern
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r14d
	leaq	L_.str.7(%rip), %rsi
LBB0_17:
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_ath_err
	jmp	LBB0_22
LBB0_21:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	_ATH9K_INT_GLOBAL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	callq	_ath9k_hw_disable_interrupts
	movq	_ATH9K_INT_BMISS@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	%r12, %rdi
	callq	_ath9k_hw_set_interrupts
	movq	%r12, %rdi
	callq	_ath9k_hw_enable_interrupts
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	12(%rbx), %edi
	callq	_synchronize_irq
	leaq	8(%rbx), %rdi
	callq	_tasklet_kill
	movq	%r12, %rdi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_ath9k_hw_wow_enable
	movq	%rbx, %rdi
	callq	_ath9k_ps_restore
	movq	_WOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_ath_dbg
	movq	_ATH_OP_WOW_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_OP_INVALID,4,2             ## @ATH_OP_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device not present\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"None of the WoW triggers enabled\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WOW,4,2                        ## @WOW
L_.str.2:                               ## @.str.2
	.asciz	"WoW for multivif is not yet supported\n"

	.comm	_ATH_OP_MULTI_CHANNEL,4,2       ## @ATH_OP_MULTI_CHANNEL
L_.str.3:                               ## @.str.3
	.asciz	"Multi-channel WOW is not supported\n"

	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ## @ATH_OP_PRIM_STA_VIF
L_.str.4:                               ## @.str.4
	.asciz	"None of the STA vifs are associated\n"

L_.str.5:                               ## @.str.5
	.asciz	"No valid WoW triggers\n"

L_.str.6:                               ## @.str.6
	.asciz	"Unable to add disassoc/deauth pattern: %d\n"

	.comm	_AH_WOW_USER_PATTERN_EN,4,2     ## @AH_WOW_USER_PATTERN_EN
L_.str.7:                               ## @.str.7
	.asciz	"Unable to add user pattern: %d\n"

	.comm	_ATH9K_INT_GLOBAL,4,2           ## @ATH9K_INT_GLOBAL
	.comm	_ATH9K_INT_BMISS,4,2            ## @ATH9K_INT_BMISS
L_.str.8:                               ## @.str.8
	.asciz	"Suspend with WoW triggers: 0x%x\n"

	.comm	_ATH_OP_WOW_ENABLED,4,2         ## @ATH_OP_WOW_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_suspend                  ; -- Begin function ath9k_suspend
	.p2align	2
_ath9k_suspend:                         ; @ath9k_suspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	ldr	x21, [x0]
	ldr	x22, [x21, #32]
	mov	x0, x22
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, x21
	bl	_ath9k_deinit_channel_context
	add	x19, x21, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ATH_OP_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_OP_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	x23, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:
Lloh11:
	adrp	x8, _WOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_8:
	bl	_ath9k_is_chanctx_enabled
	cbz	x0, LBB0_11
; %bb.9:
Lloh16:
	adrp	x8, _ATH_OP_MULTI_CHANNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATH_OP_MULTI_CHANNEL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _WOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WOW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_11:
Lloh24:
	adrp	x8, _ATH_OP_PRIM_STA_VIF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ATH_OP_PRIM_STA_VIF@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x21
	mov	x1, x23
	bl	_ath9k_wow_map_triggers
	cbz	w0, LBB0_16
; %bb.13:
	mov	x24, x0
	mov	x0, x21
	bl	_ath_cancel_work
	mov	x0, x21
	bl	_ath_stop_ani
	mov	x0, x21
	bl	_ath9k_ps_wakeup
	mov	x0, x21
	bl	_ath9k_stop_btcoex
	mov	x0, x21
	bl	_ath9k_wow_add_disassoc_deauth_pattern
	cbz	w0, LBB0_18
; %bb.14:
	mov	x25, x0
	str	x25, [sp]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_ath_err
	b	LBB0_5
LBB0_15:
Lloh29:
	adrp	x8, _WOW@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WOW@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.4@PAGE
Lloh33:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_16:
Lloh34:
	adrp	x8, _WOW@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WOW@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str.5@PAGE
Lloh38:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_17:
	mov	x0, x20
	bl	_ath_dbg
	mov	w25, #1
	b	LBB0_5
LBB0_18:
Lloh39:
	adrp	x8, _AH_WOW_USER_PATTERN_EN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AH_WOW_USER_PATTERN_EN@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_21
; %bb.19:
	mov	x0, x21
	mov	x1, x23
	bl	_ath9k_wow_add_pattern
	cbz	w0, LBB0_21
; %bb.20:
	mov	x25, x0
	str	x25, [sp]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_ath_err
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	b	LBB0_5
LBB0_21:
	add	x23, x21, #16
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	w8, [x22]
	str	w8, [x21]
Lloh44:
	adrp	x25, _ATH9K_INT_GLOBAL@GOTPAGE
Lloh45:
	ldr	x25, [x25, _ATH9K_INT_GLOBAL@GOTPAGEOFF]
	ldr	w9, [x25]
	bic	w8, w8, w9
	str	w8, [x22]
	mov	x0, x22
	bl	_ath9k_hw_disable_interrupts
Lloh46:
	adrp	x8, _ATH9K_INT_BMISS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ATH9K_INT_BMISS@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x22]
	mov	x0, x22
	bl	_ath9k_hw_set_interrupts
	mov	x0, x22
	bl	_ath9k_hw_enable_interrupts
	mov	x0, x23
	bl	_spin_unlock_bh
	ldr	w0, [x21, #12]
	bl	_synchronize_irq
	add	x0, x21, #8
	bl	_tasklet_kill
	mov	x0, x22
	mov	x1, x24
	bl	_ath9k_hw_wow_enable
	mov	x0, x21
	bl	_ath9k_ps_restore
Lloh49:
	adrp	x8, _WOW@GOTPAGE
Lloh50:
	ldr	x8, [x8, _WOW@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	str	x24, [sp]
Lloh52:
	adrp	x2, l_.str.8@PAGE
Lloh53:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_ath_dbg
Lloh54:
	adrp	x8, _ATH_OP_WOW_ENABLED@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ATH_OP_WOW_ENABLED@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	w25, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_OP_INVALID,4,2             ; @ATH_OP_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device not present\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"None of the WoW triggers enabled\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WOW,4,2                        ; @WOW
l_.str.2:                               ; @.str.2
	.asciz	"WoW for multivif is not yet supported\n"

	.comm	_ATH_OP_MULTI_CHANNEL,4,2       ; @ATH_OP_MULTI_CHANNEL
l_.str.3:                               ; @.str.3
	.asciz	"Multi-channel WOW is not supported\n"

	.comm	_ATH_OP_PRIM_STA_VIF,4,2        ; @ATH_OP_PRIM_STA_VIF
l_.str.4:                               ; @.str.4
	.asciz	"None of the STA vifs are associated\n"

l_.str.5:                               ; @.str.5
	.asciz	"No valid WoW triggers\n"

l_.str.6:                               ; @.str.6
	.asciz	"Unable to add disassoc/deauth pattern: %d\n"

	.comm	_AH_WOW_USER_PATTERN_EN,4,2     ; @AH_WOW_USER_PATTERN_EN
l_.str.7:                               ; @.str.7
	.asciz	"Unable to add user pattern: %d\n"

	.comm	_ATH9K_INT_GLOBAL,4,2           ; @ATH9K_INT_GLOBAL
	.comm	_ATH9K_INT_BMISS,4,2            ; @ATH9K_INT_BMISS
l_.str.8:                               ; @.str.8
	.asciz	"Suspend with WoW triggers: 0x%x\n"

	.comm	_ATH_OP_WOW_ENABLED,4,2         ; @ATH_OP_WOW_ENABLED
.subsections_via_symbols
