	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_cfg_he_sta
_iwl_mvm_cfg_he_sta:                    ## @iwl_mvm_cfg_he_sta
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -176(%rbp)
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, -168(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -160(%rbp)
	movups	%xmm0, -144(%rbp)
	movups	%xmm0, -128(%rbp)
	movl	$0, -112(%rbp)
	movl	64(%r12), %eax
	movl	%eax, -108(%rbp)
	movl	68(%r12), %eax
	movl	%eax, -104(%rbp)
	movq	_IWL_MAX_TID_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	movq	8(%r13), %rdi
	movq	_IWL_UCODE_TLV_API_MBSSID_HE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	movl	$4, %eax
	movl	$80, %ebx
	cmovel	%eax, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	(%r13), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_rcu_dereference
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
LBB0_2:
	cmpl	$0, 24(%r15)
	je	LBB0_11
## %bb.3:
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	je	LBB0_5
## %bb.4:
	movq	_STA_CTXT_HE_RU_2MHZ_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_5:
	movq	8(%r15), %rax
	movq	_IEEE80211_HE_MAC_CAP0_HTC_HE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_IWL_HE_HTC_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, %r14d
	movl	%eax, -112(%rbp)
	movq	8(%r15), %rax
LBB0_7:
	movq	_IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	movq	_IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	8(%rax), %edx
	movl	%ecx, %eax
	orl	%edx, %eax
	je	LBB0_14
## %bb.8:
	leal	(%rcx,%rdx,2), %eax
	cmpl	$2, %eax
	je	LBB0_12
## %bb.9:
	cmpl	$3, %eax
	jne	LBB0_14
## %bb.10:
	movq	_IWL_HE_HTC_LINK_ADAP_BOTH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
LBB0_12:
	movq	_IWL_HE_HTC_LINK_ADAP_UNSOLICITED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, %r14d
	movl	%r14d, -112(%rbp)
LBB0_14:
	movq	8(%r15), %rax
	movq	_IEEE80211_HE_MAC_CAP2_BSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_16
## %bb.15:
	movq	_IWL_HE_HTC_BSR_SUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, %r14d
	movl	%r14d, -112(%rbp)
	movq	8(%r15), %rax
LBB0_16:
	movq	_IEEE80211_HE_MAC_CAP3_OMI_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_18
## %bb.17:
	movq	_IWL_HE_HTC_OMI_SUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, %r14d
	movl	%r14d, -112(%rbp)
	movq	8(%r15), %rax
LBB0_18:
	leaq	-120(%rbp), %rbx
	movq	_IEEE80211_HE_MAC_CAP4_BQR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_20
## %bb.19:
	movq	_IWL_HE_HTC_BQR_SUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, %r14d
	movl	%r14d, -112(%rbp)
LBB0_20:
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$8, %edx
	callq	_memset
	movq	16(%r15), %rcx
	movq	_IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rcx)
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_32
## %bb.21:
	movq	(%r15), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	(%rax), %edx
	movq	_IEEE80211_PPE_THRES_NSS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	leal	1(%rax), %edx
	movq	_MAX_HE_SUPP_NSS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_23
## %bb.22:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_IWL_INFO
	movl	(%rbx), %edx
LBB0_23:
	testl	%edx, %edx
	jle	LBB0_31
## %bb.24:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	_MAX_HE_CHANNEL_BW_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$7, %ebx
	xorl	%ecx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-192(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	%rdx, %rcx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	cmpq	-184(%rbp), %rdx                ## 8-byte Folded Reload
	je	LBB0_31
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
	testl	%eax, %eax
	jle	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	xorl	%r13d, %r13d
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=2
	sarl	%r12d
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_25
LBB0_29:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$2, %r12b
	je	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_iwl_mvm_he_get_ppe_val
	movq	-120(%rbp), %rcx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, 8(%rcx)
	movq	_IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_iwl_mvm_he_get_ppe_val
	movq	-120(%rbp), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx)
	movq	_IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_MAX_HE_CHANNEL_BW_INDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_31:
	movq	_STA_CTXT_HE_PACKET_EXT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	(%rax), %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_54
LBB0_32:
	movq	_IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	36(%rcx), %eax
	movq	_IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
## %bb.33:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_53:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_54:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_STA_CTXT_HE_MU_EDCA_CW@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_59
## %bb.55:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r13
	movq	(%r15), %r15
	movl	%r14d, %edi
	callq	_iwl_mvm_mac80211_ac_to_ucode_ac
	movl	%eax, %ebx
	movq	(%r13), %rax
	cmpl	$0, (%rax,%r12)
	je	LBB0_60
## %bb.57:                              ##   in Loop: Header=BB0_56 Depth=1
	movl	4(%r15,%r12), %edi
	andl	$15, %edi
	callq	_cpu_to_le16
	movq	-128(%rbp), %rcx
	movslq	%ebx, %rbx
	shlq	$5, %rbx
	movq	%rax, 24(%rcx,%rbx)
	movl	4(%r15,%r12), %edi
	shrl	$4, %edi
	andl	$15, %edi
	callq	_cpu_to_le16
	movq	-128(%rbp), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movl	8(%r15,%r12), %edi
	callq	_cpu_to_le16
	movq	-128(%rbp), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movl	12(%r15,%r12), %edi
	callq	_cpu_to_le16
	movq	-128(%rbp), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r14
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r12
	cmpq	%rax, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_56
## %bb.58:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_61
LBB0_59:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_62
LBB0_60:
	movq	_STA_CTXT_HE_MU_EDCA_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_61:
	xorl	%r13d, %r13d
LBB0_62:
	cmpq	$0, 56(%r15)
	movl	$0, %r12d
	je	LBB0_64
## %bb.63:
	movq	_STA_CTXT_HE_32BIT_BA_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_64:
	orl	%ebx, %r12d
	cmpq	$0, 48(%r15)
	je	LBB0_66
## %bb.65:
	movq	_STA_CTXT_HE_ACK_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_66:
	orl	%r13d, %r12d
	cmpq	$0, 40(%r15)
	je	LBB0_68
## %bb.67:
	movq	_STA_CTXT_HE_TRIG_RND_ALLOC@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	4(%r15), %eax
	movl	%eax, %ecx
	andl	$7, %ecx
	movl	%ecx, -160(%rbp)
	shrl	$3, %eax
	andl	$7, %eax
	movl	%eax, -156(%rbp)
LBB0_68:
	cmpq	$0, 32(%r15)
	je	LBB0_70
## %bb.69:
	movq	_STA_CTXT_HE_REF_BSSID_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	-132(%rbp), %edi
	movl	24(%r15), %esi
	callq	_ether_addr_copy
	movups	8(%r15), %xmm0
	movups	%xmm0, -148(%rbp)
LBB0_70:
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movl	%eax, -152(%rbp)
	movq	_STA_HE_CTXT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DATA_PATH_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_iwl_cmd_id
	leaq	-176(%rbp), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	callq	_iwl_mvm_send_cmd_pdu
	testq	%rax, %rax
	je	LBB0_72
## %bb.71:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_ERR
LBB0_72:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	cmpl	$128, %eax
	je	LBB0_38
## %bb.35:
	cmpl	$129, %eax
	je	LBB0_39
## %bb.36:
	cmpl	$130, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_53
## %bb.37:
	movq	_IWL_HE_PKT_EXT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	jmp	LBB0_41
LBB0_38:
	movq	_IWL_HE_PKT_EXT_BPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IWL_HE_PKT_EXT_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_40
LBB0_39:
	movq	_IWL_HE_PKT_EXT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IWL_HE_PKT_EXT_BPSK@GOTPCREL(%rip), %rcx
LBB0_40:
	movl	(%rcx), %ecx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_41:
	testl	%eax, %eax
	js	LBB0_53
## %bb.42:
	testl	%ecx, %ecx
	js	LBB0_53
## %bb.43:
	movq	_MAX_HE_SUPP_NSS@GOTPCREL(%rip), %r8
	movl	(%r8), %esi
	testl	%esi, %esi
	jle	LBB0_50
## %bb.44:
	movq	-120(%rbp), %r9
	movq	_MAX_HE_CHANNEL_BW_INDX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	xorl	%r10d, %r10d
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=1
	incq	%r10
	movslq	%esi, %rbx
	cmpq	%rbx, %r10
	jge	LBB0_50
LBB0_46:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_48 Depth 2
	testl	%edx, %edx
	jle	LBB0_45
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	(%r9,%r10,8), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_48:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rbx,8), %rdx
	movl	%eax, (%rdx)
	movl	%ecx, 4(%rdx)
	incq	%rbx
	movslq	(%rdi), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_48
## %bb.49:                              ##   in Loop: Header=BB0_46 Depth=1
	movl	(%r8), %esi
	jmp	LBB0_45
LBB0_50:
	movq	_STA_CTXT_HE_PACKET_EXT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	(%rax), %ebx
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MAX_TID_COUNT,4,2          ## @IWL_MAX_TID_COUNT
	.comm	_IWL_UCODE_TLV_API_MBSSID_HE,4,2 ## @IWL_UCODE_TLV_API_MBSSID_HE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find STA to configure HE\n"

	.comm	_STA_CTXT_HE_RU_2MHZ_BLOCK,4,2  ## @STA_CTXT_HE_RU_2MHZ_BLOCK
	.comm	_IEEE80211_HE_MAC_CAP0_HTC_HE,4,2 ## @IEEE80211_HE_MAC_CAP0_HTC_HE
	.comm	_IWL_HE_HTC_SUPPORT,4,2         ## @IWL_HE_HTC_SUPPORT
	.comm	_IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION,4,2 ## @IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION
	.comm	_IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION,4,2 ## @IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION
	.comm	_IWL_HE_HTC_LINK_ADAP_UNSOLICITED,4,2 ## @IWL_HE_HTC_LINK_ADAP_UNSOLICITED
	.comm	_IWL_HE_HTC_LINK_ADAP_BOTH,4,2  ## @IWL_HE_HTC_LINK_ADAP_BOTH
	.comm	_IEEE80211_HE_MAC_CAP2_BSR,4,2  ## @IEEE80211_HE_MAC_CAP2_BSR
	.comm	_IWL_HE_HTC_BSR_SUPP,4,2        ## @IWL_HE_HTC_BSR_SUPP
	.comm	_IEEE80211_HE_MAC_CAP3_OMI_CONTROL,4,2 ## @IEEE80211_HE_MAC_CAP3_OMI_CONTROL
	.comm	_IWL_HE_HTC_OMI_SUPP,4,2        ## @IWL_HE_HTC_OMI_SUPP
	.comm	_IEEE80211_HE_MAC_CAP4_BQR,4,2  ## @IEEE80211_HE_MAC_CAP4_BQR
	.comm	_IWL_HE_HTC_BQR_SUPP,4,2        ## @IWL_HE_HTC_BQR_SUPP
	.comm	_IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT,4,2 ## @IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT
	.comm	_IEEE80211_PPE_THRES_NSS_MASK,4,2 ## @IEEE80211_PPE_THRES_NSS_MASK
	.comm	_IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK,4,2 ## @IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK
	.comm	_IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS,4,2 ## @IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS
	.comm	_MAX_HE_SUPP_NSS,4,2            ## @MAX_HE_SUPP_NSS
L_.str.1:                               ## @.str.1
	.asciz	"Got NSS = %d - trimming to %d\n"

	.comm	_MAX_HE_CHANNEL_BW_INDX,4,2     ## @MAX_HE_CHANNEL_BW_INDX
	.comm	_IEEE80211_PPE_THRES_INFO_PPET_SIZE,8,3 ## @IEEE80211_PPE_THRES_INFO_PPET_SIZE
	.comm	_STA_CTXT_HE_PACKET_EXT,4,2     ## @STA_CTXT_HE_PACKET_EXT
	.comm	_IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK,4,2 ## @IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK
	.comm	_IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED,4,2 ## @IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED
	.comm	_IWL_HE_PKT_EXT_NONE,4,2        ## @IWL_HE_PKT_EXT_NONE
	.comm	_IWL_HE_PKT_EXT_BPSK,4,2        ## @IWL_HE_PKT_EXT_BPSK
	.comm	_STA_CTXT_HE_MU_EDCA_CW,4,2     ## @STA_CTXT_HE_MU_EDCA_CW
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_STA_CTXT_HE_32BIT_BA_BITMAP,4,2 ## @STA_CTXT_HE_32BIT_BA_BITMAP
	.comm	_STA_CTXT_HE_ACK_ENABLED,4,2    ## @STA_CTXT_HE_ACK_ENABLED
	.comm	_STA_CTXT_HE_TRIG_RND_ALLOC,4,2 ## @STA_CTXT_HE_TRIG_RND_ALLOC
	.comm	_STA_CTXT_HE_REF_BSSID_VALID,4,2 ## @STA_CTXT_HE_REF_BSSID_VALID
	.comm	_STA_HE_CTXT_CMD,4,2            ## @STA_HE_CTXT_CMD
	.comm	_DATA_PATH_GROUP,4,2            ## @DATA_PATH_GROUP
L_.str.2:                               ## @.str.2
	.asciz	"Failed to config FW to work HE!\n"

	.no_dead_strip	_iwl_mvm_cfg_he_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_cfg_he_sta
_iwl_mvm_cfg_he_sta:                    ; @iwl_mvm_cfg_he_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x28, x1
	mov	x22, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x20, x0
	str	w23, [sp, #48]
	ldr	w0, [x28]
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	str	q0, [sp, #96]
	str	wzr, [sp, #112]
	ldr	d0, [x28, #64]
	stur	d0, [sp, #116]
Lloh0:
	adrp	x8, _IWL_MAX_TID_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MAX_TID_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #124]
	ldr	x0, [x22, #8]
Lloh3:
	adrp	x8, _IWL_UCODE_TLV_API_MBSSID_HE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_MBSSID_HE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fw_has_api
	cmp	x0, #0
	mov	w8, #80
	mov	w9, #4
	csel	w19, w9, w8, eq
	bl	_rcu_read_lock
	ldr	x8, [x22]
	ldr	w0, [x8, w23, sxtw #2]
	bl	_rcu_dereference
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	bl	_rcu_read_unlock
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_WARN
LBB0_2:
	ldr	w8, [x23, #24]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _STA_CTXT_HE_RU_2MHZ_BLOCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STA_CTXT_HE_RU_2MHZ_BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w21, wzr, w9, eq
	ldr	x8, [x23, #8]
	ldr	w9, [x8]
Lloh11:
	adrp	x10, _IEEE80211_HE_MAC_CAP0_HTC_HE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IEEE80211_HE_MAC_CAP0_HTC_HE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _IWL_HE_HTC_SUPPORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IWL_HE_HTC_SUPPORT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	mov	x24, x0
	str	w0, [sp, #112]
	ldr	x8, [x23, #8]
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_rcu_read_unlock
LBB0_6:
	mov	w24, #0
LBB0_7:
Lloh17:
	adrp	x9, _IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldp	w10, w11, [x8, #4]
	and	w8, w9, w10
Lloh20:
	adrp	x9, _IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w9, w9, w11
	orr	w10, w8, w9
	str	w19, [sp, #40]                  ; 4-byte Folded Spill
	cbz	w10, LBB0_13
; %bb.8:
	add	w8, w8, w9, lsl #1
	cmp	w8, #2
	b.eq	LBB0_11
; %bb.9:
	cmp	w8, #3
	b.ne	LBB0_13
; %bb.10:
Lloh23:
	adrp	x8, _IWL_HE_HTC_LINK_ADAP_BOTH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IWL_HE_HTC_LINK_ADAP_BOTH@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _IWL_HE_HTC_LINK_ADAP_UNSOLICITED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IWL_HE_HTC_LINK_ADAP_UNSOLICITED@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	orr	w24, w24, w0
	str	w24, [sp, #112]
LBB0_13:
	add	x19, sp, #48
	ldr	x8, [x23, #8]
	ldr	w9, [x8, #8]
Lloh27:
	adrp	x10, _IEEE80211_HE_MAC_CAP2_BSR@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IEEE80211_HE_MAC_CAP2_BSR@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
Lloh30:
	adrp	x8, _IWL_HE_HTC_BSR_SUPP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IWL_HE_HTC_BSR_SUPP@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	orr	w24, w24, w0
	str	w24, [sp, #112]
	ldr	x8, [x23, #8]
LBB0_15:
	add	x25, x19, #56
	ldr	w9, [x8, #12]
Lloh33:
	adrp	x10, _IEEE80211_HE_MAC_CAP3_OMI_CONTROL@GOTPAGE
Lloh34:
	ldr	x10, [x10, _IEEE80211_HE_MAC_CAP3_OMI_CONTROL@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.16:
Lloh36:
	adrp	x8, _IWL_HE_HTC_OMI_SUPP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IWL_HE_HTC_OMI_SUPP@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	orr	w24, w24, w0
	str	w24, [sp, #112]
	ldr	x8, [x23, #8]
LBB0_17:
	ldr	w8, [x8, #16]
Lloh39:
	adrp	x9, _IEEE80211_HE_MAC_CAP4_BQR@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IEEE80211_HE_MAC_CAP4_BQR@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
Lloh42:
	adrp	x8, _IWL_HE_HTC_BQR_SUPP@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IWL_HE_HTC_BQR_SUPP@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	orr	w8, w24, w0
	str	w8, [sp, #112]
LBB0_19:
	mov	x0, x25
	mov	w1, #7
	mov	w2, #8
	bl	_memset
	ldr	x8, [x23, #16]
	ldr	w9, [x8, #24]
Lloh45:
	adrp	x10, _IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT@GOTPAGE
Lloh46:
	ldr	x10, [x10, _IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	tst	w10, w9
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	b.eq	LBB0_31
; %bb.20:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	stp	x20, x28, [sp, #16]             ; 16-byte Folded Spill
	ldr	x23, [x23]
	ldr	w19, [x23]
Lloh48:
	adrp	x8, _IEEE80211_PPE_THRES_NSS_MASK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IEEE80211_PPE_THRES_NSS_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	and	w8, w8, w19
	add	w2, w8, #1
Lloh51:
	adrp	x9, _IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK@GOTPAGEOFF]
Lloh53:
	adrp	x10, _IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS@GOTPAGE
Lloh54:
	ldr	x10, [x10, _IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS@GOTPAGEOFF]
Lloh55:
	ldr	w21, [x9]
Lloh56:
	ldr	w20, [x10]
Lloh57:
	adrp	x24, _MAX_HE_SUPP_NSS@GOTPAGE
Lloh58:
	ldr	x24, [x24, _MAX_HE_SUPP_NSS@GOTPAGEOFF]
	ldr	w3, [x24]
	cmp	w8, w3
	b.lt	LBB0_22
; %bb.21:
Lloh59:
	adrp	x1, l_.str.1@PAGE
Lloh60:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_IWL_INFO
	ldr	w2, [x24]
LBB0_22:
	cmp	w2, #1
	b.lt	LBB0_30
; %bb.23:
	mov	x25, #0
	and	w8, w21, w19
	asr	w8, w8, w20
	lsl	w8, w8, #1
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	w28, w2
Lloh61:
	adrp	x26, _MAX_HE_CHANNEL_BW_INDX@GOTPAGE
Lloh62:
	ldr	x26, [x26, _MAX_HE_CHANNEL_BW_INDX@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	w24, #7
Lloh63:
	adrp	x21, _IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPAGE
Lloh64:
	ldr	x21, [x21, _IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x25, x25, #1
	cmp	x25, x28
	b.eq	LBB0_30
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x19, #0
	ldr	w27, [sp, #44]                  ; 4-byte Folded Reload
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	asr	w27, w27, #1
	add	x19, x19, #1
	cmp	x19, w8, sxtw
	b.ge	LBB0_24
LBB0_28:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbz	w27, #1, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_he_get_ppe_val
	ldr	x8, [sp, #104]
	lsl	x22, x25, #3
	ldr	x8, [x8, x22]
	lsl	x20, x19, #3
	ldr	x8, [x8, x20]
	str	x0, [x8, #8]
	ldr	w8, [x21]
	add	w24, w24, w8
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_he_get_ppe_val
	ldr	x8, [sp, #104]
	ldr	x8, [x8, x22]
	ldr	x8, [x8, x20]
	str	x0, [x8]
	ldr	w8, [x21]
	add	w24, w24, w8
	ldr	w8, [x26]
	b	LBB0_27
LBB0_30:
Lloh65:
	adrp	x8, _STA_CTXT_HE_PACKET_EXT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _STA_CTXT_HE_PACKET_EXT@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	orr	w21, w8, w21
	ldp	x20, x28, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_49
LBB0_31:
	ldr	w8, [x8, #36]
Lloh68:
	adrp	x9, _IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK@GOTPAGE
Lloh69:
	ldr	x9, [x9, _IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh71:
	adrp	x9, _IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED@GOTPAGE
Lloh72:
	ldr	x9, [x9, _IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_49
; %bb.32:
	cmp	w8, #128
	b.eq	LBB0_36
; %bb.33:
	cmp	w8, #129
	b.eq	LBB0_37
; %bb.34:
	cmp	w8, #130
	b.ne	LBB0_49
; %bb.35:
Lloh74:
	adrp	x8, _IWL_HE_PKT_EXT_NONE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _IWL_HE_PKT_EXT_NONE@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
	mov	x9, x8
	b	LBB0_39
LBB0_36:
Lloh77:
	adrp	x8, _IWL_HE_PKT_EXT_BPSK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _IWL_HE_PKT_EXT_BPSK@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
Lloh80:
	adrp	x9, _IWL_HE_PKT_EXT_NONE@GOTPAGE
Lloh81:
	ldr	x9, [x9, _IWL_HE_PKT_EXT_NONE@GOTPAGEOFF]
	b	LBB0_38
LBB0_37:
Lloh82:
	adrp	x8, _IWL_HE_PKT_EXT_NONE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _IWL_HE_PKT_EXT_NONE@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
Lloh85:
	adrp	x9, _IWL_HE_PKT_EXT_BPSK@GOTPAGE
Lloh86:
	ldr	x9, [x9, _IWL_HE_PKT_EXT_BPSK@GOTPAGEOFF]
LBB0_38:
	ldr	w9, [x9]
LBB0_39:
	tbnz	w8, #31, LBB0_49
; %bb.40:
	tbnz	w9, #31, LBB0_49
; %bb.41:
Lloh87:
	adrp	x10, _MAX_HE_SUPP_NSS@GOTPAGE
Lloh88:
	ldr	x10, [x10, _MAX_HE_SUPP_NSS@GOTPAGEOFF]
	ldr	w14, [x10]
	cmp	w14, #1
	b.lt	LBB0_48
; %bb.42:
	mov	x11, #0
	ldr	x12, [sp, #104]
Lloh89:
	adrp	x13, _MAX_HE_CHANNEL_BW_INDX@GOTPAGE
Lloh90:
	ldr	x13, [x13, _MAX_HE_CHANNEL_BW_INDX@GOTPAGEOFF]
	ldr	w15, [x13]
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x11, x11, #1
	cmp	x11, w14, sxtw
	b.ge	LBB0_48
LBB0_44:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_46 Depth 2
	cmp	w15, #1
	b.lt	LBB0_43
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x14, #0
	ldr	x16, [x12, x11, lsl #3]
LBB0_46:                                ;   Parent Loop BB0_44 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x16, x14, lsl #3]
	stp	w8, w9, [x15]
	add	x14, x14, #1
	ldrsw	x15, [x13]
	cmp	x14, x15
	b.lt	LBB0_46
; %bb.47:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	w14, [x10]
	b	LBB0_43
LBB0_48:
Lloh91:
	adrp	x8, _STA_CTXT_HE_PACKET_EXT@GOTPAGE
Lloh92:
	ldr	x8, [x8, _STA_CTXT_HE_PACKET_EXT@GOTPAGEOFF]
Lloh93:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_49:
	bl	_rcu_read_unlock
Lloh94:
	adrp	x25, _STA_CTXT_HE_MU_EDCA_CW@GOTPAGE
Lloh95:
	ldr	x25, [x25, _STA_CTXT_HE_MU_EDCA_CW@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w21, w8, w21
Lloh96:
	adrp	x26, _IEEE80211_NUM_ACS@GOTPAGE
Lloh97:
	ldr	x26, [x26, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_54
; %bb.50:
	mov	x27, #0
	mov	x23, #0
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x20]
	mov	x0, x23
	bl	_iwl_mvm_mac80211_ac_to_ucode_ac
	ldr	x8, [x20]
	ldr	w8, [x8, x27]
	cbz	w8, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	mov	x24, x0
	add	x19, x19, x27
	ldr	w8, [x19, #4]
	and	w0, w8, #0xf
	bl	_cpu_to_le16
	ldr	x8, [sp, #96]
	mov	x22, x20
	sbfiz	x20, x24, #5, #32
	add	x8, x8, x20
	str	x0, [x8, #24]
	ldr	w8, [x19, #4]
	ubfx	w0, w8, #4, #4
	bl	_cpu_to_le16
	ldr	x8, [sp, #96]
	add	x8, x8, x20
	str	x0, [x8, #16]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le16
	ldr	x8, [sp, #96]
	add	x8, x8, x20
	str	x0, [x8, #8]
	ldr	w0, [x19, #12]
	bl	_cpu_to_le16
	ldr	x8, [sp, #96]
	str	x0, [x8, x20]
	mov	x20, x22
	add	x23, x23, #1
	ldrsw	x8, [x26]
	add	x27, x27, #16
	cmp	x23, x8
	b.lt	LBB0_51
	b	LBB0_54
LBB0_53:
	ldr	w8, [x25]
	bic	w21, w21, w8
LBB0_54:
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	ldp	x10, x8, [x28, #48]
Lloh98:
	adrp	x9, _STA_CTXT_HE_32BIT_BA_BITMAP@GOTPAGE
Lloh99:
	ldr	x9, [x9, _STA_CTXT_HE_32BIT_BA_BITMAP@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w8, w8, w21
Lloh101:
	adrp	x9, _STA_CTXT_HE_ACK_ENABLED@GOTPAGE
Lloh102:
	ldr	x9, [x9, _STA_CTXT_HE_ACK_ENABLED@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	ldr	x11, [x28, #40]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w22, w8, w9
	cbz	x11, LBB0_56
; %bb.55:
Lloh104:
	adrp	x8, _STA_CTXT_HE_TRIG_RND_ALLOC@GOTPAGE
Lloh105:
	ldr	x8, [x8, _STA_CTXT_HE_TRIG_RND_ALLOC@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w8, [x28, #4]
	and	w9, w8, #0x7
	ubfx	w8, w8, #3, #3
	stp	w9, w8, [sp, #64]
LBB0_56:
	ldr	x8, [x28, #32]
	cbz	x8, LBB0_58
; %bb.57:
Lloh107:
	adrp	x8, _STA_CTXT_HE_REF_BSSID_VALID@GOTPAGE
Lloh108:
	ldr	x8, [x8, _STA_CTXT_HE_REF_BSSID_VALID@GOTPAGEOFF]
Lloh109:
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w0, [sp, #92]
	ldr	w1, [x28, #24]
	bl	_ether_addr_copy
	ldur	q0, [x28, #8]
	stur	q0, [sp, #76]
LBB0_58:
	mov	x0, x22
	bl	_cpu_to_le32
	str	w0, [sp, #72]
Lloh110:
	adrp	x8, _STA_HE_CTXT_CMD@GOTPAGE
Lloh111:
	ldr	x8, [x8, _STA_HE_CTXT_CMD@GOTPAGEOFF]
Lloh112:
	ldr	w0, [x8]
Lloh113:
	adrp	x8, _DATA_PATH_GROUP@GOTPAGE
Lloh114:
	ldr	x8, [x8, _DATA_PATH_GROUP@GOTPAGEOFF]
Lloh115:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_iwl_cmd_id
	mov	x1, x0
	add	x4, sp, #48
	mov	x0, x19
	mov	w2, #0
	ldr	w3, [sp, #40]                   ; 4-byte Folded Reload
	bl	_iwl_mvm_send_cmd_pdu
	cbz	x0, LBB0_60
; %bb.59:
Lloh116:
	adrp	x1, l_.str.2@PAGE
Lloh117:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_60:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh55
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MAX_TID_COUNT,4,2          ; @IWL_MAX_TID_COUNT
	.comm	_IWL_UCODE_TLV_API_MBSSID_HE,4,2 ; @IWL_UCODE_TLV_API_MBSSID_HE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find STA to configure HE\n"

	.comm	_STA_CTXT_HE_RU_2MHZ_BLOCK,4,2  ; @STA_CTXT_HE_RU_2MHZ_BLOCK
	.comm	_IEEE80211_HE_MAC_CAP0_HTC_HE,4,2 ; @IEEE80211_HE_MAC_CAP0_HTC_HE
	.comm	_IWL_HE_HTC_SUPPORT,4,2         ; @IWL_HE_HTC_SUPPORT
	.comm	_IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION,4,2 ; @IEEE80211_HE_MAC_CAP1_LINK_ADAPTATION
	.comm	_IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION,4,2 ; @IEEE80211_HE_MAC_CAP2_LINK_ADAPTATION
	.comm	_IWL_HE_HTC_LINK_ADAP_UNSOLICITED,4,2 ; @IWL_HE_HTC_LINK_ADAP_UNSOLICITED
	.comm	_IWL_HE_HTC_LINK_ADAP_BOTH,4,2  ; @IWL_HE_HTC_LINK_ADAP_BOTH
	.comm	_IEEE80211_HE_MAC_CAP2_BSR,4,2  ; @IEEE80211_HE_MAC_CAP2_BSR
	.comm	_IWL_HE_HTC_BSR_SUPP,4,2        ; @IWL_HE_HTC_BSR_SUPP
	.comm	_IEEE80211_HE_MAC_CAP3_OMI_CONTROL,4,2 ; @IEEE80211_HE_MAC_CAP3_OMI_CONTROL
	.comm	_IWL_HE_HTC_OMI_SUPP,4,2        ; @IWL_HE_HTC_OMI_SUPP
	.comm	_IEEE80211_HE_MAC_CAP4_BQR,4,2  ; @IEEE80211_HE_MAC_CAP4_BQR
	.comm	_IWL_HE_HTC_BQR_SUPP,4,2        ; @IWL_HE_HTC_BQR_SUPP
	.comm	_IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT,4,2 ; @IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT
	.comm	_IEEE80211_PPE_THRES_NSS_MASK,4,2 ; @IEEE80211_PPE_THRES_NSS_MASK
	.comm	_IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK,4,2 ; @IEEE80211_PPE_THRES_RU_INDEX_BITMASK_MASK
	.comm	_IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS,4,2 ; @IEEE80211_PPE_THRES_RU_INDEX_BITMASK_POS
	.comm	_MAX_HE_SUPP_NSS,4,2            ; @MAX_HE_SUPP_NSS
l_.str.1:                               ; @.str.1
	.asciz	"Got NSS = %d - trimming to %d\n"

	.comm	_MAX_HE_CHANNEL_BW_INDX,4,2     ; @MAX_HE_CHANNEL_BW_INDX
	.comm	_IEEE80211_PPE_THRES_INFO_PPET_SIZE,8,3 ; @IEEE80211_PPE_THRES_INFO_PPET_SIZE
	.comm	_STA_CTXT_HE_PACKET_EXT,4,2     ; @STA_CTXT_HE_PACKET_EXT
	.comm	_IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK,4,2 ; @IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK
	.comm	_IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED,4,2 ; @IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_RESERVED
	.comm	_IWL_HE_PKT_EXT_NONE,4,2        ; @IWL_HE_PKT_EXT_NONE
	.comm	_IWL_HE_PKT_EXT_BPSK,4,2        ; @IWL_HE_PKT_EXT_BPSK
	.comm	_STA_CTXT_HE_MU_EDCA_CW,4,2     ; @STA_CTXT_HE_MU_EDCA_CW
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_STA_CTXT_HE_32BIT_BA_BITMAP,4,2 ; @STA_CTXT_HE_32BIT_BA_BITMAP
	.comm	_STA_CTXT_HE_ACK_ENABLED,4,2    ; @STA_CTXT_HE_ACK_ENABLED
	.comm	_STA_CTXT_HE_TRIG_RND_ALLOC,4,2 ; @STA_CTXT_HE_TRIG_RND_ALLOC
	.comm	_STA_CTXT_HE_REF_BSSID_VALID,4,2 ; @STA_CTXT_HE_REF_BSSID_VALID
	.comm	_STA_HE_CTXT_CMD,4,2            ; @STA_HE_CTXT_CMD
	.comm	_DATA_PATH_GROUP,4,2            ; @DATA_PATH_GROUP
l_.str.2:                               ; @.str.2
	.asciz	"Failed to config FW to work HE!\n"

	.no_dead_strip	_iwl_mvm_cfg_he_sta
.subsections_via_symbols
