	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_sta_state
_iwl_mvm_mac_sta_state:                 ## @iwl_mvm_mac_sta_state
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movl	%r13d, %ecx
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_MAC80211
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movq	%r14, %rbx
LBB0_68:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	_IEEE80211_STA_NONE@GOTPCREL(%rip), %rax
	movq	_IEEE80211_STA_NOTEXIST@GOTPCREL(%rip), %r12
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, (%rax)
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_5
## %bb.3:
	cmpl	%r14d, (%r12)
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %rdi
	callq	_flush_work
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	(%r12), %eax
	movq	_IEEE80211_STA_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r15d, %eax
	jne	LBB0_20
## %bb.6:
	cmpl	%r14d, %ecx
	jne	LBB0_20
## %bb.7:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movl	8(%rsi), %ecx
	cmpl	$15, %ecx
	jg	LBB0_10
## %bb.9:
	movq	%rbx, %r12
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_20:
	movq	_IEEE80211_STA_AUTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%r15d, %ecx
	jne	LBB0_23
## %bb.21:
	cmpl	%r14d, %edx
	jne	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, (%rdi)
	movq	%rbx, %r12
	movl	16(%rbx), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_check_uapsd
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_10:
	movq	%rbx, %r12
	cmpq	$0, 8(%rbx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_16
## %bb.11:
	cmpq	$0, 24(%rsi)
	jne	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_tdls_sta_count
	movq	_IWL_MVM_TDLS_STA_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	callq	_iwl_mvm_phy_ctx_count
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	$2, %eax
	jl	LBB0_16
LBB0_14:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_MAC80211
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_23:
	movq	_IEEE80211_STA_ASSOC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%r15d, %edx
	jne	LBB0_34
## %bb.24:
	cmpl	%r14d, %esi
	jne	LBB0_34
## %bb.25:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.26:
	movq	24(%rbx), %rax
	movq	%rax, 16(%r15)
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	incl	4(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
	cmpq	$0, 16(%r15)
	je	LBB0_33
## %bb.27:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_33
## %bb.28:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_iwl_mvm_cfg_he_sta
	jmp	LBB0_33
LBB0_16:
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_iwl_mvm_add_sta
	movl	%eax, %ebx
	cmpq	$0, 8(%r12)
	je	LBB0_19
## %bb.17:
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.18:
	movq	%r13, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_iwl_mvm_recalc_tdls_state
	movl	16(%r12), %edx
	movq	_NL80211_TDLS_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_tdls_check_trigger
LBB0_19:
	movl	$1, (%r12)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_34:
	movq	_IEEE80211_STA_AUTHORIZED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpl	%r15d, %esi
	jne	LBB0_41
## %bb.35:
	cmpl	%r14d, %edi
	jne	LBB0_41
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_mvm_phy_ctx_count
	cmpl	$2, %eax
	jl	LBB0_38
## %bb.37:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_mvm_teardown_tdls_peers
LBB0_38:
	movq	%rbx, %r12
	cmpq	$0, 8(%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_40
## %bb.39:
	movl	16(%r12), %edx
	movq	_NL80211_TDLS_ENABLE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_tdls_check_trigger
LBB0_40:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_iwl_mvm_enable_beacon_filter
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_iwl_mvm_rs_rate_init
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_29:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_33
## %bb.30:
	movq	24(%rbx), %rax
	movq	%rax, 16(%r15)
	movl	$0, (%r12)
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_iwl_mvm_check_he_obss_narrow_bw_ru
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_32:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
LBB0_33:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %r12
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_iwl_mvm_rs_rate_init
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_iwl_mvm_update_sta
	movl	%eax, %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_41:
	cmpl	%r15d, %edi
	jne	LBB0_46
## %bb.42:
	cmpl	%r14d, %esi
	jne	LBB0_46
## %bb.43:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_iwl_mvm_disable_beacon_filter
	movl	$0, %edi
	testl	%eax, %eax
	movq	%rbx, %r12
	je	LBB0_45
## %bb.44:
	movq	_IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r14
	movq	%r14, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_45:
	callq	_WARN_ON
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
LBB0_60:
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpq	$0, 8(%r12)
	je	LBB0_68
## %bb.61:
	testl	%ebx, %ebx
	jne	LBB0_68
## %bb.62:
	movq	_IEEE80211_STA_NOTEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IEEE80211_STA_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %eax
	jne	LBB0_65
## %bb.63:
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_65
## %bb.64:
	movq	_IWL_MVM_TDLS_FW_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ieee80211_reserve_tid
	xorl	%ebx, %ebx
	jmp	LBB0_68
LBB0_65:
	xorl	%ebx, %ebx
	cmpl	%edx, %ecx
	jne	LBB0_68
## %bb.66:
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_68
## %bb.67:
	movq	_IWL_MVM_TDLS_FW_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ieee80211_unreserve_tid
	jmp	LBB0_68
LBB0_46:
	cmpl	%r15d, %esi
	movq	%rbx, %r12
	jne	LBB0_50
## %bb.47:
	cmpl	%r14d, %edx
	jne	LBB0_50
## %bb.48:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_60
## %bb.49:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	decl	4(%rax)
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
	jmp	LBB0_60
LBB0_50:
	cmpl	%r15d, %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_52
## %bb.51:
	xorl	%ebx, %ebx
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_60
LBB0_52:
	cmpl	-76(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_59
## %bb.53:
	cmpl	%ecx, %eax
	jne	LBB0_59
## %bb.54:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_iwl_mvm_rm_sta
	movl	%eax, %r13d
	cmpq	$0, 8(%r12)
	je	LBB0_56
## %bb.55:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_iwl_mvm_recalc_tdls_state
	movl	16(%r12), %edx
	movq	_NL80211_TDLS_DISABLE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_tdls_check_trigger
LBB0_56:
	xorl	%ebx, %ebx
	movl	$0, %edi
	testl	%r13d, %r13d
	je	LBB0_58
## %bb.57:
	movq	_IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$8, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_58:
	callq	_unlikely
	testq	%rax, %rax
	cmovel	%r13d, %ebx
	jmp	LBB0_60
LBB0_59:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_60
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"station %pM state change %d->%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_STA_NONE,4,2         ## @IEEE80211_STA_NONE
	.comm	_IEEE80211_STA_NOTEXIST,4,2     ## @IEEE80211_STA_NOTEXIST
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
L_.str.1:                               ## @.str.1
	.asciz	"AP %pM beacon interval is %d, refusing due to firmware bug!\n"

	.comm	_IWL_MVM_TDLS_STA_COUNT,8,3     ## @IWL_MVM_TDLS_STA_COUNT
L_.str.2:                               ## @.str.2
	.asciz	"refusing TDLS sta\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NL80211_TDLS_SETUP,4,2         ## @NL80211_TDLS_SETUP
	.comm	_IEEE80211_STA_AUTH,4,2         ## @IEEE80211_STA_AUTH
	.comm	_IEEE80211_STA_ASSOC,4,2        ## @IEEE80211_STA_ASSOC
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_iwlwifi_mod_params,4,2         ## @iwlwifi_mod_params
	.comm	_IEEE80211_STA_AUTHORIZED,4,2   ## @IEEE80211_STA_AUTHORIZED
	.comm	_NL80211_TDLS_ENABLE_LINK,4,2   ## @NL80211_TDLS_ENABLE_LINK
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ## @IWL_MVM_STATUS_HW_RESTART_REQUESTED
	.comm	_NL80211_TDLS_DISABLE_LINK,4,2  ## @NL80211_TDLS_DISABLE_LINK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IWL_MVM_TDLS_FW_TID,4,2        ## @IWL_MVM_TDLS_FW_TID
	.no_dead_strip	_iwl_mvm_mac_sta_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_sta_state
_iwl_mvm_mac_sta_state:                 ; @iwl_mvm_mac_sta_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x24, x1
	mov	x26, x0
	bl	_IWL_MAC80211_GET_MVM
	mov	x23, x0
	mov	x0, x24
	bl	_iwl_mvm_vif_from_mac80211
	mov	x25, x0
	mov	x0, x19
	bl	_iwl_mvm_sta_from_mac80211
	mov	x27, x0
	ldr	w8, [x19, #16]
	stp	x21, x20, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_IWL_DEBUG_MAC80211
	ldr	x8, [x25, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_2:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
Lloh5:
	adrp	x28, _IEEE80211_STA_NONE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _IEEE80211_STA_NONE@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh7:
	adrp	x22, _IEEE80211_STA_NOTEXIST@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IEEE80211_STA_NOTEXIST@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w21
	ccmp	w9, w20, #0, eq
	b.ne	LBB0_5
; %bb.4:
	add	x0, x23, #12
	bl	_flush_work
LBB0_5:
	add	x0, x23, #4
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	bl	_mutex_lock
	str	w20, [x27]
	ldr	w8, [x22]
	ldr	w9, [x28]
	cmp	w8, w21
	ccmp	w9, w20, #0, eq
	b.eq	LBB0_15
; %bb.6:
Lloh9:
	adrp	x10, _IEEE80211_STA_AUTH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_STA_AUTH@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w21
	ccmp	w10, w20, #0, eq
	b.eq	LBB0_24
; %bb.7:
Lloh12:
	adrp	x11, _IEEE80211_STA_ASSOC@GOTPAGE
Lloh13:
	ldr	x11, [x11, _IEEE80211_STA_ASSOC@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	cmp	w10, w21
	ccmp	w11, w20, #0, eq
	b.eq	LBB0_29
; %bb.8:
Lloh15:
	adrp	x12, _IEEE80211_STA_AUTHORIZED@GOTPAGE
Lloh16:
	ldr	x12, [x12, _IEEE80211_STA_AUTHORIZED@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	cmp	w11, w21
	b.ne	LBB0_33
; %bb.9:
	cmp	w12, w20
	b.ne	LBB0_33
; %bb.10:
	mov	x0, x23
	bl	_iwl_mvm_phy_ctx_count
	cmp	w0, #2
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_iwl_mvm_teardown_tdls_peers
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w2, [x19, #16]
Lloh18:
	adrp	x8, _NL80211_TDLS_ENABLE_LINK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NL80211_TDLS_ENABLE_LINK@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_tdls_check_trigger
LBB0_14:
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	bl	_iwl_mvm_enable_beacon_filter
	bl	_WARN_ON
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #1
	bl	_iwl_mvm_rs_rate_init
	mov	w25, #0
	b	LBB0_43
LBB0_15:
	ldr	x8, [x24]
Lloh21:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:
	ldr	w3, [x24, #8]
	cmp	w3, #15
	b.gt	LBB0_18
; %bb.17:
	ldr	w2, [x19, #16]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_IWL_ERR
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_25
; %bb.19:
	ldr	x8, [x24, #24]
	cbnz	x8, LBB0_22
; %bb.20:
	mov	x0, x23
	mov	x1, #0
	bl	_iwl_mvm_tdls_sta_count
Lloh28:
	adrp	x8, _IWL_MVM_TDLS_STA_COUNT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IWL_MVM_TDLS_STA_COUNT@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x23
	bl	_iwl_mvm_phy_ctx_count
	cmp	w0, #2
	b.lt	LBB0_25
LBB0_22:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_IWL_DEBUG_MAC80211
Lloh33:
	adrp	x8, _EBUSY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_43
LBB0_24:
	mov	w8, #1
	str	w8, [x23]
	ldr	w2, [x19, #16]
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_check_uapsd
	mov	w25, #0
	b	LBB0_43
LBB0_25:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x19
	bl	_iwl_mvm_add_sta
	mov	x25, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_28
; %bb.26:
	cbnz	w25, LBB0_28
; %bb.27:
	mov	x0, x23
	mov	x1, x24
	mov	w2, #1
	bl	_iwl_mvm_recalc_tdls_state
	ldr	w2, [x19, #16]
Lloh35:
	adrp	x8, _NL80211_TDLS_SETUP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NL80211_TDLS_SETUP@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_tdls_check_trigger
LBB0_28:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_43
LBB0_29:
	ldr	x8, [x24]
Lloh38:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.30:
	ldr	x8, [x19, #24]
	str	x8, [x24, #16]
	ldr	w8, [x25, #4]
	add	w8, w8, #1
	str	w8, [x25, #4]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_42
; %bb.31:
Lloh41:
	adrp	x8, _iwlwifi_mod_params@GOTPAGE
Lloh42:
	ldr	x8, [x8, _iwlwifi_mod_params@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cbnz	w8, LBB0_42
; %bb.32:
	ldr	w2, [x27, #4]
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_cfg_he_sta
	b	LBB0_42
LBB0_33:
	cmp	w12, w21
	b.ne	LBB0_53
; %bb.34:
	cmp	w11, w20
	b.ne	LBB0_53
; %bb.35:
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	bl	_iwl_mvm_disable_beacon_filter
	cbz	w0, LBB0_37
; %bb.36:
Lloh44:
	adrp	x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	add	x1, x23, #8
	bl	_test_bit
	cmp	x0, #0
	cset	w0, eq
LBB0_37:
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	bl	_WARN_ON
	mov	w25, #0
	b	LBB0_44
LBB0_38:
Lloh47:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh48:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.39:
	ldr	x8, [x19, #24]
	str	x8, [x24, #16]
	str	wzr, [x25]
	cbz	x8, LBB0_41
; %bb.40:
	mov	x0, x26
	mov	x1, x24
	bl	_iwl_mvm_check_he_obss_narrow_bw_ru
LBB0_41:
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
LBB0_42:
	ldr	x8, [x25, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	bl	_iwl_mvm_rs_rate_init
	mov	x0, x23
	mov	x1, x24
	mov	x2, x19
	bl	_iwl_mvm_update_sta
	mov	x25, x0
LBB0_43:
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
LBB0_44:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.45:
	cbnz	w25, LBB0_2
; %bb.46:
Lloh50:
	adrp	x8, _IEEE80211_STA_NOTEXIST@GOTPAGE
Lloh51:
	ldr	x8, [x8, _IEEE80211_STA_NOTEXIST@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x28]
	cmp	w8, w21
	b.ne	LBB0_49
; %bb.47:
	cmp	w9, w20
	b.ne	LBB0_49
; %bb.48:
Lloh53:
	adrp	x8, _IWL_MVM_TDLS_FW_TID@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IWL_MVM_TDLS_FW_TID@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_reserve_tid
	b	LBB0_52
LBB0_49:
	mov	w25, #0
	cmp	w9, w21
	b.ne	LBB0_2
; %bb.50:
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.51:
Lloh56:
	adrp	x8, _IWL_MVM_TDLS_FW_TID@GOTPAGE
Lloh57:
	ldr	x8, [x8, _IWL_MVM_TDLS_FW_TID@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ieee80211_unreserve_tid
LBB0_52:
	mov	w25, #0
	b	LBB0_2
LBB0_53:
	cmp	w11, w21
	b.ne	LBB0_57
; %bb.54:
	cmp	w10, w20
	b.ne	LBB0_57
; %bb.55:
	ldr	x8, [x24]
Lloh59:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh60:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_59
; %bb.56:
	ldr	w8, [x25, #4]
	sub	w8, w8, #1
	str	w8, [x25, #4]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
	mov	w25, #0
	b	LBB0_43
LBB0_57:
	cmp	w10, w21
	b.ne	LBB0_60
; %bb.58:
	cmp	w9, w20
	b.ne	LBB0_60
LBB0_59:
	mov	w25, #0
	b	LBB0_43
LBB0_60:
	cmp	w9, w21
	b.ne	LBB0_66
; %bb.61:
	cmp	w8, w20
	b.ne	LBB0_66
; %bb.62:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x19
	bl	_iwl_mvm_rm_sta
	mov	x25, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_64
; %bb.63:
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	bl	_iwl_mvm_recalc_tdls_state
	ldr	w2, [x19, #16]
Lloh62:
	adrp	x8, _NL80211_TDLS_DISABLE_LINK@GOTPAGE
Lloh63:
	ldr	x8, [x8, _NL80211_TDLS_DISABLE_LINK@GOTPAGEOFF]
Lloh64:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_iwl_mvm_tdls_check_trigger
LBB0_64:
	cbz	w25, LBB0_67
; %bb.65:
Lloh65:
	adrp	x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGE
Lloh66:
	ldr	x8, [x8, _IWL_MVM_STATUS_HW_RESTART_REQUESTED@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	add	x1, x23, #8
	bl	_test_bit
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_68
LBB0_66:
Lloh68:
	adrp	x8, _EIO@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_23
LBB0_67:
	mov	w0, #0
LBB0_68:
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	bl	_unlikely
	cmp	x0, #0
	csel	w25, w25, wzr, eq
	b	LBB0_44
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"station %pM state change %d->%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_STA_NONE,4,2         ; @IEEE80211_STA_NONE
	.comm	_IEEE80211_STA_NOTEXIST,4,2     ; @IEEE80211_STA_NOTEXIST
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
l_.str.1:                               ; @.str.1
	.asciz	"AP %pM beacon interval is %d, refusing due to firmware bug!\n"

	.comm	_IWL_MVM_TDLS_STA_COUNT,8,3     ; @IWL_MVM_TDLS_STA_COUNT
l_.str.2:                               ; @.str.2
	.asciz	"refusing TDLS sta\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NL80211_TDLS_SETUP,4,2         ; @NL80211_TDLS_SETUP
	.comm	_IEEE80211_STA_AUTH,4,2         ; @IEEE80211_STA_AUTH
	.comm	_IEEE80211_STA_ASSOC,4,2        ; @IEEE80211_STA_ASSOC
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_iwlwifi_mod_params,4,2         ; @iwlwifi_mod_params
	.comm	_IEEE80211_STA_AUTHORIZED,4,2   ; @IEEE80211_STA_AUTHORIZED
	.comm	_NL80211_TDLS_ENABLE_LINK,4,2   ; @NL80211_TDLS_ENABLE_LINK
	.comm	_IWL_MVM_STATUS_HW_RESTART_REQUESTED,4,2 ; @IWL_MVM_STATUS_HW_RESTART_REQUESTED
	.comm	_NL80211_TDLS_DISABLE_LINK,4,2  ; @NL80211_TDLS_DISABLE_LINK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IWL_MVM_TDLS_FW_TID,4,2        ; @IWL_MVM_TDLS_FW_TID
	.no_dead_strip	_iwl_mvm_mac_sta_state
.subsections_via_symbols
