	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_power_set_ps
_iwl_mvm_power_set_ps:                  ## @iwl_mvm_power_set_ps
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_iwlmvm_mod_params@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IWL_POWER_SCHEME_CAM@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movq	%rdi, %rbx
	sete	%dl
	movl	%edx, -28(%rbp)
	movl	4(%rdi), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_power_ps_disabled_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movl	(%rbx), %r15d
	movl	-28(%rbp), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, %r15d
	je	LBB0_3
## %bb.1:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_update_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%r15d, (%rbx)
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iwlmvm_mod_params,8,3          ## @iwlmvm_mod_params
	.comm	_IWL_POWER_SCHEME_CAM,8,3       ## @IWL_POWER_SCHEME_CAM
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_power_ps_disabled_iterator,4,2 ## @iwl_mvm_power_ps_disabled_iterator
	.no_dead_strip	_iwl_mvm_power_set_ps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_power_set_ps
_iwl_mvm_power_set_ps:                  ; @iwl_mvm_power_set_ps
	.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
Lloh0:
	adrp	x8, _iwlmvm_mod_params@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwlmvm_mod_params@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IWL_POWER_SCHEME_CAM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IWL_POWER_SCHEME_CAM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [sp, #12]
	ldr	w0, [x0, #4]
Lloh6:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _iwl_mvm_power_ps_disabled_iterator@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iwl_mvm_power_ps_disabled_iterator@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	w20, [x19]
	ldr	w8, [sp, #12]
	cmp	w20, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	str	w8, [x19]
	mov	x0, x19
	bl	_iwl_mvm_power_update_device
	cbz	w0, LBB0_4
; %bb.3:
	str	w20, [x19]
LBB0_4:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_iwlmvm_mod_params,8,3          ; @iwlmvm_mod_params
	.comm	_IWL_POWER_SCHEME_CAM,8,3       ; @IWL_POWER_SCHEME_CAM
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_power_ps_disabled_iterator,4,2 ; @iwl_mvm_power_ps_disabled_iterator
	.no_dead_strip	_iwl_mvm_power_set_ps
.subsections_via_symbols
