	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_channel_switch_rx_beacon
_iwl_mvm_channel_switch_rx_beacon:      ## @iwl_mvm_channel_switch_rx_beacon
	.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	$40, %rsp
	.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, %r14
	movq	%rdi, %r12
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %rbx
	movups	(%r13), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	16(%r13), %edi
	callq	_cpu_to_le32
	movl	%eax, -64(%rbp)
	movq	_FW_CTXT_ACTION_MODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -60(%rbp)
	movl	12(%rbx), %edi
	movl	16(%rbx), %esi
	callq	_FW_CMD_ID_AND_COLOR
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -56(%rbp)
	movq	(%r15), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CS_MODIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%r13), %rax
	cmpq	(%rbx), %rax
	jl	LBB0_6
## %bb.2:
	cmpq	$0, 8(%r13)
	je	LBB0_6
## %bb.3:
	cmpl	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_abort_channel_switch
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_chswitch_done
	movl	$0, 8(%rbx)
	jmp	LBB0_7
LBB0_5:
	movl	$1, 8(%rbx)
LBB0_6:
	movq	%rax, (%rbx)
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_DEBUG_MAC80211
	movq	_MAC_CONF_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHANNEL_SWITCH_TIME_EVENT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-80(%rbp), %r8
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$32, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CTXT_ACTION_MODIFY,4,2      ## @FW_CTXT_ACTION_MODIFY
	.comm	_IWL_UCODE_TLV_CAPA_CS_MODIFY,4,2 ## @IWL_UCODE_TLV_CAPA_CS_MODIFY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Modify CSA on mac %d\n"

	.comm	_MAC_CONF_GROUP,4,2             ## @MAC_CONF_GROUP
	.comm	_CHANNEL_SWITCH_TIME_EVENT_CMD,4,2 ## @CHANNEL_SWITCH_TIME_EVENT_CMD
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
	.no_dead_strip	_iwl_mvm_channel_switch_rx_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_channel_switch_rx_beacon
_iwl_mvm_channel_switch_rx_beacon:      ; @iwl_mvm_channel_switch_rx_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x22, x0
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	mov	x0, x21
	bl	_iwl_mvm_vif_from_mac80211
	mov	x20, x0
	ldr	q0, [x23]
	str	q0, [sp]
	ldr	w0, [x23, #16]
	bl	_cpu_to_le32
	str	w0, [sp, #16]
Lloh0:
	adrp	x8, _FW_CTXT_ACTION_MODIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_CTXT_ACTION_MODIFY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
	ldp	w0, w1, [x20, #12]
	bl	_FW_CMD_ID_AND_COLOR
	bl	_cpu_to_le32
	str	w0, [sp, #24]
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _IWL_UCODE_TLV_CAPA_CS_MODIFY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_CS_MODIFY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x23]
	ldr	x9, [x20]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.2:
	ldr	x9, [x23, #8]
	cbz	x9, LBB0_6
; %bb.3:
	ldr	w9, [x20, #8]
	cbz	w9, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	bl	_iwl_mvm_abort_channel_switch
	mov	x0, x21
	mov	w1, #0
	bl	_ieee80211_chswitch_done
	str	wzr, [x20, #8]
	b	LBB0_7
LBB0_5:
	mov	w9, #1
	str	w9, [x20, #8]
LBB0_6:
	str	x8, [x20]
	ldr	w2, [x20, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
Lloh8:
	adrp	x8, _MAC_CONF_GROUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_CONF_GROUP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _CHANNEL_SWITCH_TIME_EVENT_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CHANNEL_SWITCH_TIME_EVENT_CMD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_WIDE_ID
	mov	x1, x0
Lloh14:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w3, #32
	bl	_iwl_mvm_send_cmd_pdu
	bl	_WARN_ON
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CTXT_ACTION_MODIFY,4,2      ; @FW_CTXT_ACTION_MODIFY
	.comm	_IWL_UCODE_TLV_CAPA_CS_MODIFY,4,2 ; @IWL_UCODE_TLV_CAPA_CS_MODIFY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Modify CSA on mac %d\n"

	.comm	_MAC_CONF_GROUP,4,2             ; @MAC_CONF_GROUP
	.comm	_CHANNEL_SWITCH_TIME_EVENT_CMD,4,2 ; @CHANNEL_SWITCH_TIME_EVENT_CMD
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
	.no_dead_strip	_iwl_mvm_channel_switch_rx_beacon
.subsections_via_symbols
