	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_tdls_recv_channel_switch ## -- Begin function iwl_mvm_tdls_recv_channel_switch
	.p2align	4, 0x90
_iwl_mvm_tdls_recv_channel_switch:      ## @iwl_mvm_tdls_recv_channel_switch
	.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, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	movq	(%r12), %rax
	movq	_WLAN_TDLS_CHANNEL_SWITCH_REQUEST@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	32(%r12), %rax
	movl	4(%rax), %ecx
	movl	40(%r12), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_IWL_DEBUG_TDLS
	movq	(%r12), %rax
	movq	_WLAN_TDLS_CHANNEL_SWITCH_RESPONSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	cmpl	$0, 40(%r12)
	je	LBB0_6
## %bb.2:
	movq	8(%r15), %rcx
	movq	_IWL_MVM_TDLS_SW_REQ_SENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	movq	16(%r15), %rcx
	movq	_IWL_MVM_INVALID_STA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	movq	32(%r15), %rax
	movl	(%rax,%rcx,4), %ebx
	movq	%r15, %rdi
	callq	_lockdep_is_held
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	cmpq	32(%r12), %rax
	je	LBB0_11
## %bb.5:
	movq	(%r12), %rax
LBB0_6:
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.8:
	movq	_TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_TDLS_MOVE_CH@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edx
	movq	32(%r12), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movl	28(%r12), %r10d
	movl	24(%r12), %r11d
	movl	20(%r12), %r13d
	movl	16(%r12), %r14d
	movl	8(%r12), %eax
	movl	12(%r12), %r12d
	movq	%r15, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r12
	pushq	%r14
	pushq	%r13
	pushq	%r11
	pushq	%r10
	callq	_iwl_mvm_tdls_config_channel_switch
	addq	$48, %rsp
LBB0_10:
	movl	(%rbx), %eax
	imull	4(%rbx), %eax
	shll	$10, %eax
	cltq
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rbx
	addq	$24, %rbx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msecs_to_jiffies
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_mod_delayed_work
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_11:
	movq	_IWL_MVM_TDLS_SW_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_iwl_mvm_tdls_update_cs_state
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_TDLS_CHANNEL_SWITCH_REQUEST,8,3 ## @WLAN_TDLS_CHANNEL_SWITCH_REQUEST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"REQ"

L_.str.1:                               ## @.str.1
	.asciz	"RESP"

L_.str.2:                               ## @.str.2
	.asciz	"Received TDLS ch switch action %s from %pM status %d\n"

	.comm	_WLAN_TDLS_CHANNEL_SWITCH_RESPONSE,8,3 ## @WLAN_TDLS_CHANNEL_SWITCH_RESPONSE
	.comm	_IWL_MVM_TDLS_SW_REQ_SENT,8,3   ## @IWL_MVM_TDLS_SW_REQ_SENT
	.comm	_IWL_MVM_INVALID_STA,8,3        ## @IWL_MVM_INVALID_STA
	.comm	_IWL_MVM_TDLS_SW_IDLE,4,2       ## @IWL_MVM_TDLS_SW_IDLE
	.comm	_TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH,4,2 ## @TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH
	.comm	_TDLS_MOVE_CH,4,2               ## @TDLS_MOVE_CH
	.comm	_system_wq,4,2                  ## @system_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_tdls_recv_channel_switch ; -- Begin function iwl_mvm_tdls_recv_channel_switch
	.p2align	2
_iwl_mvm_tdls_recv_channel_switch:      ; @iwl_mvm_tdls_recv_channel_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x23, _WLAN_TDLS_CHANNEL_SWITCH_REQUEST@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WLAN_TDLS_CHANNEL_SWITCH_REQUEST@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh4:
	adrp	x11, l_.str@PAGE
Lloh5:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x22, x11, x10, eq
	bl	_mutex_lock
	ldr	x8, [x21, #32]
	ldr	w3, [x8, #4]
	ldr	w4, [x21, #40]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_IWL_DEBUG_TDLS
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _WLAN_TDLS_CHANNEL_SWITCH_RESPONSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WLAN_TDLS_CHANNEL_SWITCH_RESPONSE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w9, [x21, #40]
	cbz	w9, LBB0_6
; %bb.2:
	ldr	x9, [x19, #8]
Lloh11:
	adrp	x10, _IWL_MVM_TDLS_SW_REQ_SENT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IWL_MVM_TDLS_SW_REQ_SENT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x19, #16]
Lloh14:
	adrp	x10, _IWL_MVM_INVALID_STA@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IWL_MVM_INVALID_STA@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x19, #32]
	ldr	w22, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	ldr	x8, [x21, #32]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x21]
LBB0_6:
	ldr	x9, [x23]
Lloh17:
	adrp	x10, _TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH@GOTPAGE
Lloh18:
	ldr	x10, [x10, _TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH@GOTPAGEOFF]
Lloh19:
	adrp	x11, _TDLS_MOVE_CH@GOTPAGE
Lloh20:
	ldr	x11, [x11, _TDLS_MOVE_CH@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	ldr	x8, [x21, #32]
	ldp	w4, w3, [x8]
	ldp	w7, w6, [x21, #24]
	ldp	w9, w8, [x21, #16]
	ldp	w11, w10, [x21, #8]
	stp	w10, w11, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	w5, #0
	bl	_iwl_mvm_tdls_config_channel_switch
LBB0_7:
	ldp	w8, w9, [x20]
	mul	w8, w8, w9
	lsl	w8, w8, #10
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
Lloh21:
	adrp	x8, _system_wq@GOTPAGE
Lloh22:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	add	x21, x19, #24
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mod_delayed_work
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_mutex_unlock
LBB0_8:
Lloh24:
	adrp	x8, _IWL_MVM_TDLS_SW_IDLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IWL_MVM_TDLS_SW_IDLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iwl_mvm_tdls_update_cs_state
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_TDLS_CHANNEL_SWITCH_REQUEST,8,3 ; @WLAN_TDLS_CHANNEL_SWITCH_REQUEST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"REQ"

l_.str.1:                               ; @.str.1
	.asciz	"RESP"

l_.str.2:                               ; @.str.2
	.asciz	"Received TDLS ch switch action %s from %pM status %d\n"

	.comm	_WLAN_TDLS_CHANNEL_SWITCH_RESPONSE,8,3 ; @WLAN_TDLS_CHANNEL_SWITCH_RESPONSE
	.comm	_IWL_MVM_TDLS_SW_REQ_SENT,8,3   ; @IWL_MVM_TDLS_SW_REQ_SENT
	.comm	_IWL_MVM_INVALID_STA,8,3        ; @IWL_MVM_INVALID_STA
	.comm	_IWL_MVM_TDLS_SW_IDLE,4,2       ; @IWL_MVM_TDLS_SW_IDLE
	.comm	_TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH,4,2 ; @TDLS_SEND_CHAN_SW_RESP_AND_MOVE_CH
	.comm	_TDLS_MOVE_CH,4,2               ; @TDLS_MOVE_CH
	.comm	_system_wq,4,2                  ; @system_wq
.subsections_via_symbols
