	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_recalc_tdls_state      ## -- Begin function iwl_mvm_recalc_tdls_state
	.p2align	4, 0x90
_iwl_mvm_recalc_tdls_state:             ## @iwl_mvm_recalc_tdls_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_iwl_mvm_tdls_sta_count
	movl	%eax, %r12d
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	cmpl	$1, %r12d
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_update_mac
LBB0_3:
	movq	(%rbx), %rdi
	movq	_IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_iwl_mvm_tdls_config
LBB0_5:
	orl	%r14d, %r12d
	je	LBB0_7
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_power_update_mac       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH,4,2 ## @IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_recalc_tdls_state      ; -- Begin function iwl_mvm_recalc_tdls_state
	.p2align	2
_iwl_mvm_recalc_tdls_state:             ; @iwl_mvm_recalc_tdls_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iwl_mvm_tdls_sta_count
	mov	x22, x0
	cbz	w20, LBB0_3
; %bb.1:
	cmp	w22, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_iwl_mvm_power_update_mac
LBB0_3:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_tdls_config
LBB0_5:
	orr	w8, w22, w20
	cbz	w8, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iwl_mvm_power_update_mac
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH,4,2 ; @IWL_UCODE_TLV_CAPA_TDLS_CHANNEL_SWITCH
.subsections_via_symbols
