	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_tdls_channel_switch    ## -- Begin function iwl_mvm_tdls_channel_switch
	.p2align	4, 0x90
_iwl_mvm_tdls_channel_switch:           ## @iwl_mvm_tdls_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	4(%r12), %edx
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TDLS
	movq	16(%rbx), %rax
	movq	_IWL_MVM_INVALID_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	16(%rbp), %r10d
	movq	_TDLS_SEND_CHAN_SW_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%r13
	callq	_iwl_mvm_tdls_config_channel_switch
	addq	$48, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_copy
	movl	%eax, 56(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %r14
	addq	$8, %r14
	movups	(%r13), %xmm0
	movups	%xmm0, 40(%rbx)
	movl	(%r12), %eax
	movl	%eax, 32(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 28(%rbx)
	movl	16(%rbp), %eax
	movl	%eax, 24(%rbx)
	movl	4(%r15), %edi
	imull	(%r15), %edi
	callq	_TU_TO_MS
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_mod_delayed_work
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_4:
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TDLS
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %r14d
LBB0_6:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS channel switch with %pM ch %d width %d\n"

	.comm	_IWL_MVM_INVALID_STA,8,3        ## @IWL_MVM_INVALID_STA
L_.str.1:                               ## @.str.1
	.asciz	"Existing peer. Can't start switch with %pM\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TDLS_SEND_CHAN_SW_REQ,4,2      ## @TDLS_SEND_CHAN_SW_REQ
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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_channel_switch    ; -- Begin function iwl_mvm_tdls_channel_switch
	.p2align	2
_iwl_mvm_tdls_channel_switch:           ; @iwl_mvm_tdls_channel_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x6
	mov	x25, x5
	mov	x24, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	bl	_mutex_lock
	ldr	w2, [x23, #4]
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
	ldr	w9, [x24]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TDLS
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _IWL_MVM_INVALID_STA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IWL_MVM_INVALID_STA@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _TDLS_SEND_CHAN_SW_REQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TDLS_SEND_CHAN_SW_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldp	w4, w3, [x23]
	str	w20, [sp, #16]
	stp	xzr, x25, [sp]
	mov	x0, x19
	mov	x1, x21
	mov	x5, x22
	mov	x6, x24
	mov	w7, #0
	bl	_iwl_mvm_tdls_config_channel_switch
	mov	x26, x0
	cbnz	w0, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_skb_copy
	str	w0, [x19, #56]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x23
	bl	_iwl_mvm_sta_from_mac80211
	ldr	x8, [x0]
	str	x8, [x19, #16]
	add	x25, x19, #8
	ldr	q0, [x24]
	stur	q0, [x19, #40]
	ldr	w8, [x23]
	stp	w22, w8, [x19, #28]
	str	w20, [x19, #24]
	ldp	w8, w9, [x21]
	mul	w0, w9, w8
	bl	_TU_TO_MS
	lsl	w0, w0, #1
Lloh11:
	adrp	x8, _system_wq@GOTPAGE
Lloh12:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x25
	bl	_mod_delayed_work
	mov	w26, #0
	b	LBB0_6
LBB0_4:
	ldr	w2, [x23, #4]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TDLS
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS channel switch with %pM ch %d width %d\n"

	.comm	_IWL_MVM_INVALID_STA,8,3        ; @IWL_MVM_INVALID_STA
l_.str.1:                               ; @.str.1
	.asciz	"Existing peer. Can't start switch with %pM\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TDLS_SEND_CHAN_SW_REQ,4,2      ; @TDLS_SEND_CHAN_SW_REQ
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_system_wq,4,2                  ; @system_wq
.subsections_via_symbols
