	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_old_pre_chan_sw_sta
_iwl_mvm_old_pre_chan_sw_sta:           ## @iwl_mvm_old_pre_chan_sw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r12
	movslq	(%r13), %rbx
	cmpq	$2, %rbx
	jge	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r13)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movslq	(%r15), %rax
	decq	%rbx
	imulq	%rax, %rbx
	movq	_IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%rax, %rbx
	shlq	$10, %rbx
	addq	16(%r13), %rbx
	cmpq	$0, 8(%r13)
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_mvm_csa_client_absent
LBB0_5:
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_iwl_mvm_disable_beacon_filter
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rcx
	callq	_iwl_mvm_schedule_csa_period
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT,4,2 ## @IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT
	.no_dead_strip	_iwl_mvm_old_pre_chan_sw_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_old_pre_chan_sw_sta
_iwl_mvm_old_pre_chan_sw_sta:           ; @iwl_mvm_old_pre_chan_sw_sta
	.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	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x22, x0
	ldr	w8, [x23]
	cmp	w8, #2
	b.ge	LBB0_2
; %bb.1:
	mov	x21, #0
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	x9, [x23, #16]
	ldr	w10, [x19]
	sub	w8, w8, #1
	mul	w8, w10, w8
Lloh0:
	adrp	x10, _IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w8, w8, w10
	lsl	w8, w8, #10
	add	x21, x9, w8, sxtw
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_csa_client_absent
LBB0_4:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_iwl_mvm_disable_beacon_filter
	cbnz	w0, LBB0_7
LBB0_6:
	ldr	w2, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_iwl_mvm_schedule_csa_period
	mov	w0, #0
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT,4,2 ; @IWL_MVM_CHANNEL_SWITCH_TIME_CLIENT
	.no_dead_strip	_iwl_mvm_old_pre_chan_sw_sta
.subsections_via_symbols
