	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_vdev_start_restart
_ath10k_vdev_start_restart:             ## @ath10k_vdev_start_restart
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	40(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -64(%rbp)
	leaq	12(%r13), %rdi
	callq	_lockdep_assert_held
	leaq	8(%r13), %rdi
	callq	_reinit_completion
	leaq	4(%r13), %rdi
	callq	_reinit_completion
	movl	36(%rbx), %r15d
	movl	%r15d, -128(%rbp)
	movl	32(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -68(%rbp)
	movq	(%r14), %rax
	movl	16(%rax), %r12d
	movl	%r12d, -100(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -84(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -88(%rbp)
	movq	%r14, %rdi
	callq	_chan_to_phymode
	movl	%eax, -104(%rbp)
	movq	$0, -96(%rbp)
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	addl	%edx, %edx
	movl	%edx, -120(%rbp)
	movl	4(%rcx), %edx
	addl	%edx, %edx
	movl	%edx, -116(%rbp)
	movl	8(%rcx), %edx
	addl	%edx, %edx
	movl	%edx, -112(%rbp)
	movq	(%rbx), %rdx
	movq	_WMI_VDEV_TYPE_AP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %edx
	movl	%edx, -76(%rbp)
	movl	20(%rbx), %edx
	movl	%edx, -80(%rbp)
	movl	16(%rbx), %edx
	movl	%edx, -72(%rbp)
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	andl	12(%rcx), %edx
	setne	%sil
	movl	%esi, -108(%rbp)
	jmp	LBB0_4
LBB0_2:
	movq	_WMI_VDEV_TYPE_IBSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.3:
	movq	8(%rbx), %rcx
	movl	4(%rcx), %edx
	movl	%edx, -76(%rbp)
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
LBB0_4:
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_ath10k_wmi_phymode_str
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	callq	_ath10k_dbg
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	leaq	-128(%rbp), %rsi
	movq	%r13, %rdi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	callq	_ath10k_wmi_vdev_restart
	jmp	LBB0_7
LBB0_6:
	callq	_ath10k_wmi_vdev_start
LBB0_7:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	-128(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_12
LBB0_9:
	movq	%r13, %rdi
	callq	_ath10k_vdev_setup_sync
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	-128(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_12
LBB0_11:
	incl	(%r13)
	movq	%r13, %rdi
	callq	_ath10k_recalc_radar_detection
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_VDEV_TYPE_AP,8,3           ## @WMI_VDEV_TYPE_AP
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_WMI_VDEV_TYPE_IBSS,8,3         ## @WMI_VDEV_TYPE_IBSS
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac vdev %d start center_freq %d phymode %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to start WMI vdev %i: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to synchronize setup for vdev %i restart %d: %d\n"

	.no_dead_strip	_ath10k_vdev_start_restart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_vdev_start_restart
_ath10k_vdev_start_restart:             ; @ath10k_vdev_start_restart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x2
	mov	x24, x1
	mov	x21, x0
	ldr	x19, [x0, #40]
	str	xzr, [sp, #80]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	add	x0, x19, #12
	bl	_lockdep_assert_held
	add	x0, x19, #8
	bl	_reinit_completion
	add	x0, x19, #4
	bl	_reinit_completion
	ldr	w22, [x21, #36]
	ldur	d0, [x21, #28]
	stur	d0, [sp, #76]
	ldr	x8, [x24]
	ldr	w23, [x8, #16]
	str	w22, [sp, #16]
	str	w23, [sp, #44]
	ldr	d0, [x24, #8]
	str	d0, [sp, #56]
	mov	x0, x24
	bl	_chan_to_phymode
	str	w0, [sp, #40]
	str	xzr, [sp, #48]
	ldr	x8, [x24]
	ldr	d0, [x8]
	shl.2s	v0, v0, #1
	str	d0, [sp, #24]
	ldr	w9, [x8, #8]
	lsl	w9, w9, #1
	str	w9, [sp, #32]
	ldr	x9, [x21]
Lloh0:
	adrp	x10, _WMI_VDEV_TYPE_AP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WMI_VDEV_TYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldur	d0, [x21, #20]
	str	d0, [sp, #64]
	ldr	w9, [x21, #16]
	str	w9, [sp, #72]
	ldr	w8, [x8, #12]
Lloh3:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [sp, #36]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _WMI_VDEV_TYPE_IBSS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_VDEV_TYPE_IBSS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	d0, [x8]
	str	d0, [sp, #64]
LBB0_4:
Lloh9:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	bl	_ath10k_wmi_phymode_str
	mov	x5, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	mov	x4, x23
	bl	_ath10k_dbg
	add	x1, sp, #16
	mov	x0, x19
	cbz	w20, LBB0_7
; %bb.5:
	bl	_ath10k_wmi_vdev_restart
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_6:
	ldr	w2, [sp, #16]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_ath10k_warn
	b	LBB0_11
LBB0_7:
	bl	_ath10k_wmi_vdev_start
	mov	x21, x0
	cbnz	w0, LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_ath10k_vdev_setup_sync
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.9:
	ldr	w2, [sp, #16]
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ath10k_warn
	b	LBB0_11
LBB0_10:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_ath10k_recalc_radar_detection
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_VDEV_TYPE_AP,8,3           ; @WMI_VDEV_TYPE_AP
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_WMI_VDEV_TYPE_IBSS,8,3         ; @WMI_VDEV_TYPE_IBSS
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac vdev %d start center_freq %d phymode %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to start WMI vdev %i: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to synchronize setup for vdev %i restart %d: %d\n"

	.no_dead_strip	_ath10k_vdev_start_restart
.subsections_via_symbols
