	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_sta_powersave
_ath9k_hw_set_sta_powersave:            ## @ath9k_hw_set_sta_powersave
	.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
	callq	_ath9k_hw_mci_is_enabled
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_MCI_STATE_GET_WLAN_PS_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ar9003_mci_state
	movq	_MCI_PS_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	_AR_STA_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_STA_ID1_PWR_SAV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_SET_BIT                    ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCI_STATE_GET_WLAN_PS_STATE,4,2 ## @MCI_STATE_GET_WLAN_PS_STATE
	.comm	_MCI_PS_DISABLE,8,3             ## @MCI_PS_DISABLE
	.comm	_AR_STA_ID1,4,2                 ## @AR_STA_ID1
	.comm	_AR_STA_ID1_PWR_SAV,4,2         ## @AR_STA_ID1_PWR_SAV
	.no_dead_strip	_ath9k_hw_set_sta_powersave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_set_sta_powersave
_ath9k_hw_set_sta_powersave:            ; @ath9k_hw_set_sta_powersave
	.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	_ath9k_hw_mci_is_enabled
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MCI_STATE_GET_WLAN_PS_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCI_STATE_GET_WLAN_PS_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ar9003_mci_state
Lloh3:
	adrp	x8, _MCI_PS_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCI_PS_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _AR_STA_ID1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_STA_ID1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AR_STA_ID1_PWR_SAV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR_STA_ID1_PWR_SAV@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_SET_BIT
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MCI_STATE_GET_WLAN_PS_STATE,4,2 ; @MCI_STATE_GET_WLAN_PS_STATE
	.comm	_MCI_PS_DISABLE,8,3             ; @MCI_PS_DISABLE
	.comm	_AR_STA_ID1,4,2                 ; @AR_STA_ID1
	.comm	_AR_STA_ID1_PWR_SAV,4,2         ; @AR_STA_ID1_PWR_SAV
	.no_dead_strip	_ath9k_hw_set_sta_powersave
.subsections_via_symbols
