	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_set_power_network_sleep
_ath9k_set_power_network_sleep:         ## @ath9k_set_power_network_sleep
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AR_STA_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_STA_ID1_PWR_SAV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_REG_SET_BIT
	movq	_ATH9K_HW_CAP_AUTOSLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_AR_MCI_INTERRUPT_RX_MSG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_MCI_INTERRUPT_RX_HW_MSG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
LBB0_4:
	movq	_AR_RTC_FORCE_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_RTC_FORCE_WAKE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_CLR_BIT
	movq	%rbx, %rdi
	callq	_ath9k_hw_mci_is_enabled
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$30, %edi
	callq	_udelay
	jmp	LBB0_6
LBB0_1:
	movq	_AR_RTC_FORCE_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_RTC_FORCE_WAKE_ON_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_WRITE
LBB0_6:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_AR_WA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_WA_D3_L1_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rbx), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_STA_ID1,4,2                 ## @AR_STA_ID1
	.comm	_AR_STA_ID1_PWR_SAV,4,2         ## @AR_STA_ID1_PWR_SAV
	.comm	_ATH9K_HW_CAP_AUTOSLEEP,4,2     ## @ATH9K_HW_CAP_AUTOSLEEP
	.comm	_AR_RTC_FORCE_WAKE,4,2          ## @AR_RTC_FORCE_WAKE
	.comm	_AR_RTC_FORCE_WAKE_ON_INT,4,2   ## @AR_RTC_FORCE_WAKE_ON_INT
	.comm	_AR_MCI_INTERRUPT_RX_MSG_EN,4,2 ## @AR_MCI_INTERRUPT_RX_MSG_EN
	.comm	_AR_MCI_INTERRUPT_RX_HW_MSG_MASK,4,2 ## @AR_MCI_INTERRUPT_RX_HW_MSG_MASK
	.comm	_AR_RTC_FORCE_WAKE_EN,4,2       ## @AR_RTC_FORCE_WAKE_EN
	.comm	_AR_WA,4,2                      ## @AR_WA
	.comm	_AR_WA_D3_L1_DISABLE,4,2        ## @AR_WA_D3_L1_DISABLE
	.no_dead_strip	_ath9k_set_power_network_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_set_power_network_sleep
_ath9k_set_power_network_sleep:         ; @ath9k_set_power_network_sleep
	.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
Lloh0:
	adrp	x8, _AR_STA_ID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_STA_ID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AR_STA_ID1_PWR_SAV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_STA_ID1_PWR_SAV@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_REG_SET_BIT
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _ATH9K_HW_CAP_AUTOSLEEP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATH9K_HW_CAP_AUTOSLEEP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _AR_MCI_INTERRUPT_RX_MSG_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR_MCI_INTERRUPT_RX_MSG_EN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _AR_MCI_INTERRUPT_RX_HW_MSG_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR_MCI_INTERRUPT_RX_HW_MSG_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
LBB0_3:
Lloh15:
	adrp	x8, _AR_RTC_FORCE_WAKE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_RTC_FORCE_WAKE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AR_RTC_FORCE_WAKE_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_RTC_FORCE_WAKE_EN@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
	mov	x0, x19
	bl	_ath9k_hw_mci_is_enabled
	cbz	x0, LBB0_6
; %bb.4:
	mov	w0, #30
	bl	_udelay
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x8, _AR_RTC_FORCE_WAKE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_RTC_FORCE_WAKE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _AR_RTC_FORCE_WAKE_ON_INT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_RTC_FORCE_WAKE_ON_INT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_WRITE
LBB0_6:
	mov	x0, x19
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_8
; %bb.7:
Lloh27:
	adrp	x8, _AR_WA@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR_WA@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _AR_WA_D3_L1_DISABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_WA_D3_L1_DISABLE@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh32:
	ldr	w8, [x8]
	bic	w2, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WRITE
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_STA_ID1,4,2                 ; @AR_STA_ID1
	.comm	_AR_STA_ID1_PWR_SAV,4,2         ; @AR_STA_ID1_PWR_SAV
	.comm	_ATH9K_HW_CAP_AUTOSLEEP,4,2     ; @ATH9K_HW_CAP_AUTOSLEEP
	.comm	_AR_RTC_FORCE_WAKE,4,2          ; @AR_RTC_FORCE_WAKE
	.comm	_AR_RTC_FORCE_WAKE_ON_INT,4,2   ; @AR_RTC_FORCE_WAKE_ON_INT
	.comm	_AR_MCI_INTERRUPT_RX_MSG_EN,4,2 ; @AR_MCI_INTERRUPT_RX_MSG_EN
	.comm	_AR_MCI_INTERRUPT_RX_HW_MSG_MASK,4,2 ; @AR_MCI_INTERRUPT_RX_HW_MSG_MASK
	.comm	_AR_RTC_FORCE_WAKE_EN,4,2       ; @AR_RTC_FORCE_WAKE_EN
	.comm	_AR_WA,4,2                      ; @AR_WA
	.comm	_AR_WA_D3_L1_DISABLE,4,2        ; @AR_WA_D3_L1_DISABLE
	.no_dead_strip	_ath9k_set_power_network_sleep
.subsections_via_symbols
