	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_power_allow_uapsd
_iwl_mvm_power_allow_uapsd:             ## @iwl_mvm_power_allow_uapsd
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movl	(%rax), %edi
	movl	12(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	_IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_8
LBB0_3:
	movq	%r14, %rdi
	callq	_iwl_mvm_phy_ctx_count
	cmpl	$1, %eax
	jg	LBB0_8
## %bb.4:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	movl	$1, -28(%rbp)
	movq	%r14, %rdi
	callq	_iwl_mvm_is_p2p_scm_uapsd_supported
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	(%r14), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_p2p_standalone_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	cmpl	$0, -28(%rbp)
	je	LBB0_8
LBB0_7:
	movl	$1, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IEEE80211_P2P_OPPPS_ENABLE_BIT,4,2 ## @IEEE80211_P2P_OPPPS_ENABLE_BIT
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_p2p_standalone_iterator,4,2 ## @iwl_mvm_p2p_standalone_iterator
	.no_dead_strip	_iwl_mvm_power_allow_uapsd
.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_allow_uapsd
_iwl_mvm_power_allow_uapsd:             ; @iwl_mvm_power_allow_uapsd
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	ldr	w0, [x0]
	ldr	w1, [x20, #12]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_memcmp
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_P2P_OPPPS_ENABLE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_iwl_mvm_phy_ctx_count
	cmp	w0, #1
	b.le	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.6:
	mov	w8, #1
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_iwl_mvm_is_p2p_scm_uapsd_supported
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x19]
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_p2p_standalone_iterator@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iwl_mvm_p2p_standalone_iterator@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
LBB0_8:
	mov	w0, #1
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IEEE80211_P2P_OPPPS_ENABLE_BIT,4,2 ; @IEEE80211_P2P_OPPPS_ENABLE_BIT
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_p2p_standalone_iterator,4,2 ; @iwl_mvm_p2p_standalone_iterator
	.no_dead_strip	_iwl_mvm_power_allow_uapsd
.subsections_via_symbols
