	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_check_uapsd
_iwl_mvm_check_uapsd:                   ## @iwl_mvm_check_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_IWL_MVM_STATUS_IN_HW_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	16(%r13), %r12
	movq	%r14, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	(%rax), %rbx
	leaq	(%r12,%rbx,8), %rdi
	addq	$4, %rdi
	callq	_ewma_rate_init
	movl	$0, (%r12,%rbx,8)
LBB0_2:
	movq	8(%r13), %rax
	movq	_IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	callq	_iwl_mvm_is_p2p_scm_uapsd_supported
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	cmpq	$0, 8(%r14)
	jne	LBB0_8
LBB0_7:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	movq	_IWL_DISABLE_UAPSD_BSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_5:
	movq	_IEEE80211_VIF_SUPPORTS_UAPSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_13
LBB0_8:
	movq	_IWL_MVM_UAPSD_NOAGG_LIST_LEN@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_ether_addr_equal
	testq	%rax, %rax
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	_IEEE80211_VIF_SUPPORTS_UAPSD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ## @IWL_MVM_STATUS_IN_HW_RESTART
	.comm	_IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT,4,2 ## @IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT
	.comm	_IEEE80211_VIF_SUPPORTS_UAPSD,4,2 ## @IEEE80211_VIF_SUPPORTS_UAPSD
	.comm	_iwlwifi_mod_params,4,2         ## @iwlwifi_mod_params
	.comm	_IWL_DISABLE_UAPSD_BSS,4,2      ## @IWL_DISABLE_UAPSD_BSS
	.comm	_IWL_MVM_UAPSD_NOAGG_LIST_LEN,4,2 ## @IWL_MVM_UAPSD_NOAGG_LIST_LEN
	.no_dead_strip	_iwl_mvm_check_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_check_uapsd
_iwl_mvm_check_uapsd:                   ; @iwl_mvm_check_uapsd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #24
	bl	_test_bit
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x22, [x21, #16]
	mov	x0, x19
	bl	_iwl_mvm_vif_from_mac80211
	ldr	x8, [x0]
	add	x22, x22, x8, lsl #3
	add	x0, x22, #4
	bl	_ewma_rate_init
	str	wzr, [x22]
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_iwl_mvm_is_p2p_scm_uapsd_supported
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IWL_DISABLE_UAPSD_BSS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IWL_DISABLE_UAPSD_BSS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _IEEE80211_VIF_SUPPORTS_UAPSD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_VIF_SUPPORTS_UAPSD@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_13
LBB0_8:
Lloh15:
	adrp	x22, _IWL_MVM_UAPSD_NOAGG_LIST_LEN@GOTPAGE
Lloh16:
	ldr	x22, [x22, _IWL_MVM_UAPSD_NOAGG_LIST_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x23, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x23, lsl #2]
	mov	x1, x20
	bl	_ether_addr_equal
	cbnz	x0, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_10
LBB0_12:
Lloh17:
	adrp	x8, _IEEE80211_VIF_SUPPORTS_UAPSD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_VIF_SUPPORTS_UAPSD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_13:
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ; @IWL_MVM_STATUS_IN_HW_RESTART
	.comm	_IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT,4,2 ; @IWL_UCODE_TLV_FLAGS_UAPSD_SUPPORT
	.comm	_IEEE80211_VIF_SUPPORTS_UAPSD,4,2 ; @IEEE80211_VIF_SUPPORTS_UAPSD
	.comm	_iwlwifi_mod_params,4,2         ; @iwlwifi_mod_params
	.comm	_IWL_DISABLE_UAPSD_BSS,4,2      ; @IWL_DISABLE_UAPSD_BSS
	.comm	_IWL_MVM_UAPSD_NOAGG_LIST_LEN,4,2 ; @IWL_MVM_UAPSD_NOAGG_LIST_LEN
	.no_dead_strip	_iwl_mvm_check_uapsd
.subsections_via_symbols
