	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_power_update_mac       ## -- Begin function iwl_mvm_power_update_mac
	.p2align	4, 0x90
_iwl_mvm_power_update_mac:              ## @iwl_mvm_power_update_mac
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	%rdi, -32(%rbp)
	addq	$4, %rdi
	callq	_lockdep_assert_held
	movl	(%rbx), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_power_get_vifs_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r14
	movq	%r14, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_power_set_pm
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_set_ps
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_send_cmd
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:
	movq	-40(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_send_cmd
	testl	%eax, %eax
	jne	LBB0_8
LBB0_5:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_set_ba
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_power_get_vifs_iterator,4,2 ## @iwl_mvm_power_get_vifs_iterator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_power_update_mac       ; -- Begin function iwl_mvm_power_update_mac
	.p2align	2
_iwl_mvm_power_update_mac:              ; @iwl_mvm_power_update_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	x0, [sp, #24]
	add	x0, x0, #4
	bl	_lockdep_assert_held
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _iwl_mvm_power_get_vifs_iterator@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iwl_mvm_power_get_vifs_iterator@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_ieee80211_iterate_active_interfaces_atomic
	add	x1, sp, #8
	mov	x0, x19
	bl	_iwl_mvm_power_set_pm
	mov	x0, x19
	bl	_iwl_mvm_power_set_ps
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_iwl_mvm_power_send_cmd
	cbnz	w0, LBB0_1
LBB0_4:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_iwl_mvm_power_send_cmd
	cbnz	w0, LBB0_1
LBB0_6:
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_iwl_mvm_power_set_ba
	b	LBB0_1
LBB0_8:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_power_get_vifs_iterator,4,2 ; @iwl_mvm_power_get_vifs_iterator
.subsections_via_symbols
