	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_schedule_csa_period    ## -- Begin function iwl_mvm_schedule_csa_period
	.p2align	4, 0x90
_iwl_mvm_schedule_csa_period:           ## @iwl_mvm_schedule_csa_period
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r13
	leaq	8(%rax), %r15
	movq	$0, -96(%rbp)
	leaq	4(%r12), %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 16(%r13)
	je	LBB0_4
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	(%r15), %rbx
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	_TE_CHANNEL_SWITCH_PERIOD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_DEBUG_TE
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_iwl_mvm_remove_time_event
	movq	%r14, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_4:
	movq	_FW_CTXT_ACTION_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movq	_TE_CHANNEL_SWITCH_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, -88(%rbp)
	movq	_TE_V2_FRAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, -104(%rbp)
	movl	$1, -120(%rbp)
	movl	$1, %edi
	callq	_cpu_to_le32
	movq	%rax, -112(%rbp)
	movq	_TE_V2_NOTIF_HOST_EVENT_START@GOTPCREL(%rip), %rax
	movq	_TE_V2_ABSENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rbx, %rcx
	movl	%eax, -116(%rbp)
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	_TE_V2_START_IMMEDIATELY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, %ebx
	movl	%ebx, -116(%rbp)
LBB0_6:
	leaq	-120(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_iwl_mvm_time_event_send_add
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TE_CHANNEL_SWITCH_PERIOD,8,3   ## @TE_CHANNEL_SWITCH_PERIOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CS period is already scheduled\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_FW_CTXT_ACTION_ADD,4,2         ## @FW_CTXT_ACTION_ADD
	.comm	_TE_V2_FRAG_NONE,4,2            ## @TE_V2_FRAG_NONE
	.comm	_TE_V2_NOTIF_HOST_EVENT_START,4,2 ## @TE_V2_NOTIF_HOST_EVENT_START
	.comm	_TE_V2_ABSENCE,4,2              ## @TE_V2_ABSENCE
	.comm	_TE_V2_START_IMMEDIATELY,4,2    ## @TE_V2_START_IMMEDIATELY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_schedule_csa_period    ; -- Begin function iwl_mvm_schedule_csa_period
	.p2align	2
_iwl_mvm_schedule_csa_period:           ; @iwl_mvm_schedule_csa_period
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x24, x0
	add	x21, x0, #8
	str	xzr, [sp, #24]
	add	x0, x19, #4
	bl	_lockdep_assert_held
	ldr	x8, [x24, #16]
Lloh0:
	adrp	x25, _TE_CHANNEL_SWITCH_PERIOD@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TE_CHANNEL_SWITCH_PERIOD@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x26, [x21]
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	x8, [x25]
	cmp	x26, x8
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TE
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	bl	_iwl_mvm_remove_time_event
LBB0_4:
Lloh7:
	adrp	x8, _FW_CTXT_ACTION_ADD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FW_CTXT_ACTION_ADD@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #56]
	ldp	w1, w0, [x24]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	str	x0, [sp, #48]
	ldr	w0, [x25]
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [sp, #32]
Lloh10:
	adrp	x8, _TE_V2_FRAG_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TE_V2_FRAG_NONE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	mov	w8, #1
	str	w8, [sp]
	mov	w0, #1
	bl	_cpu_to_le32
Lloh13:
	adrp	x8, _TE_V2_NOTIF_HOST_EVENT_START@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TE_V2_NOTIF_HOST_EVENT_START@GOTPAGEOFF]
	str	x0, [sp, #8]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _TE_V2_ABSENCE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TE_V2_ABSENCE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le16
	str	w0, [sp, #4]
	cbnz	x22, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh19:
	adrp	x8, _TE_V2_START_IMMEDIATELY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TE_V2_START_IMMEDIATELY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	orr	w8, w23, w0
	str	w8, [sp, #4]
LBB0_6:
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_iwl_mvm_time_event_send_add
LBB0_7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TE_CHANNEL_SWITCH_PERIOD,8,3   ; @TE_CHANNEL_SWITCH_PERIOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CS period is already scheduled\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_FW_CTXT_ACTION_ADD,4,2         ; @FW_CTXT_ACTION_ADD
	.comm	_TE_V2_FRAG_NONE,4,2            ; @TE_V2_FRAG_NONE
	.comm	_TE_V2_NOTIF_HOST_EVENT_START,4,2 ; @TE_V2_NOTIF_HOST_EVENT_START
	.comm	_TE_V2_ABSENCE,4,2              ; @TE_V2_ABSENCE
	.comm	_TE_V2_START_IMMEDIATELY,4,2    ; @TE_V2_START_IMMEDIATELY
.subsections_via_symbols
