	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_csa_count_down
_iwl_mvm_csa_count_down:                ## @iwl_mvm_csa_count_down
	.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
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r15
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r15)
	je	LBB0_9
LBB0_2:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_ieee80211_csa_is_complete
	testl	%eax, %eax
	je	LBB0_3
## %bb.8:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_iwl_mvm_te_scheduled
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	callq	_ieee80211_csa_finish
	movl	(%r14), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RCU_INIT_POINTER               ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_ieee80211_csa_update_counter
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iwl_mvm_mac_ctxt_beacon_changed
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.4:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_iwl_mvm_te_scheduled
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	incl	%r13d
	imull	(%rbx), %r13d
	movq	_IWL_MVM_CHANNEL_SWITCH_TIME_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%edx, %r13d
	shll	$10, %r13d
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_IWL_MVM_CHANNEL_SWITCH_MARGIN@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_schedule_csa_period    ## TAILCALL
LBB0_9:
	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_GO,4,2 ## @IWL_MVM_CHANNEL_SWITCH_TIME_GO
	.comm	_IWL_MVM_CHANNEL_SWITCH_MARGIN,4,2 ## @IWL_MVM_CHANNEL_SWITCH_MARGIN
	.no_dead_strip	_iwl_mvm_csa_count_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_csa_count_down
_iwl_mvm_csa_count_down:                ; @iwl_mvm_csa_count_down
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x23, x0
	cbnz	w22, LBB0_2
; %bb.1:
	ldr	w8, [x23]
	cbz	w8, LBB0_10
LBB0_2:
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x20
	bl	_ieee80211_csa_is_complete
	cbz	w0, LBB0_5
; %bb.3:
	add	x0, x23, #4
	bl	_iwl_mvm_te_scheduled
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x20
	bl	_ieee80211_csa_finish
	ldr	w0, [x19]
	mov	x1, #0
	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
	b	_RCU_INIT_POINTER
LBB0_5:
	mov	x0, x20
	bl	_ieee80211_csa_update_counter
	mov	x24, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_mac_ctxt_beacon_changed
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.6:
	add	x0, x23, #4
	bl	_iwl_mvm_te_scheduled
	cbz	w22, LBB0_10
; %bb.7:
	cbz	w21, LBB0_10
; %bb.8:
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IWL_MVM_CHANNEL_SWITCH_TIME_GO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_MVM_CHANNEL_SWITCH_TIME_GO@GOTPAGEOFF]
	madd	w8, w8, w24, w8
Lloh2:
	ldr	w9, [x9]
	sub	w8, w8, w9
	add	w3, w21, w8, lsl #10
Lloh3:
	adrp	x8, _IWL_MVM_CHANNEL_SWITCH_MARGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_CHANNEL_SWITCH_MARGIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w2, w9, w8
	mov	x0, x19
	mov	x1, x20
	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
	b	_iwl_mvm_schedule_csa_period
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_CHANNEL_SWITCH_TIME_GO,4,2 ; @IWL_MVM_CHANNEL_SWITCH_TIME_GO
	.comm	_IWL_MVM_CHANNEL_SWITCH_MARGIN,4,2 ; @IWL_MVM_CHANNEL_SWITCH_MARGIN
	.no_dead_strip	_iwl_mvm_csa_count_down
.subsections_via_symbols
