	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_monitor_vdev_start
_ath10k_monitor_vdev_start:             ## @ath10k_monitor_vdev_start
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	$0, -32(%rbp)
	movq	$0, -80(%rbp)
	addq	$20, %rdi
	callq	_lockdep_assert_held
	movl	16(%r15), %edi
	movq	_ath10k_mac_get_any_chandef_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_ieee80211_iter_chan_contexts_atomic
	xorl	%edi, %edi
	cmpq	$0, -32(%rbp)
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	-32(%rbp), %rdi
	movq	8(%rdi), %rbx
	movl	%r14d, -80(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -40(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)
	callq	_chan_to_phymode
	movl	%eax, -48(%rbp)
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rbx), %eax
	setne	%cl
	movl	%ecx, -72(%rbp)
	movq	$0, -56(%rbp)
	movl	4(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, -68(%rbp)
	movl	8(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, -64(%rbp)
	movl	12(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, -60(%rbp)
	leaq	12(%r15), %rdi
	callq	_reinit_completion
	leaq	8(%r15), %rdi
	callq	_reinit_completion
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ath10k_wmi_vdev_start
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_ath10k_vdev_setup_sync
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_ath10k_warn
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	4(%r15), %ecx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_ath10k_wmi_vdev_up
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ath10k_warn
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_ath10k_wmi_vdev_stop
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_ath10k_warn
	movl	%r14d, %ebx
	jmp	LBB0_10
LBB0_11:
	movl	%r14d, (%r15)
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_ath10k_dbg
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_mac_get_any_chandef_iter,4,2 ## @ath10k_mac_get_any_chandef_iter
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to request monitor vdev %i start: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to synchronize setup for monitor vdev %i start: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to put up monitor vdev %i: %d\n"

	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
L_.str.3:                               ## @.str.3
	.asciz	"mac monitor vdev %i started\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to stop monitor vdev %i after start failure: %d\n"

	.no_dead_strip	_ath10k_monitor_vdev_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_monitor_vdev_start
_ath10k_monitor_vdev_start:             ; @ath10k_monitor_vdev_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	stur	xzr, [x29, #-40]
	str	xzr, [sp, #8]
	add	x0, x0, #20
	bl	_lockdep_assert_held
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _ath10k_mac_get_any_chandef_iter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_mac_get_any_chandef_iter@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #40
	bl	_ieee80211_iter_chan_contexts_atomic
	ldur	x8, [x29, #-40]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
	ldur	x0, [x29, #-40]
	ldr	x21, [x0, #8]
	ldr	w8, [x21, #16]
	str	w20, [sp, #8]
	str	w8, [sp, #52]
	ldr	d0, [x0]
	stur	d0, [sp, #44]
	bl	_chan_to_phymode
	str	w0, [sp, #40]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [sp, #16]
	str	xzr, [sp, #32]
	ldur	d0, [x21, #4]
	shl.2s	v0, v0, #1
	stur	d0, [sp, #20]
	ldr	w8, [x21, #12]
	lsl	w8, w8, #1
	str	w8, [sp, #28]
	add	x0, x19, #12
	bl	_reinit_completion
	add	x0, x19, #8
	bl	_reinit_completion
	add	x1, sp, #8
	mov	x0, x19
	bl	_ath10k_wmi_vdev_start
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_ath10k_vdev_setup_sync
	cbz	w0, LBB0_9
; %bb.5:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x20
LBB0_7:
	mov	x3, x21
	bl	_ath10k_warn
LBB0_8:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_ath10k_wmi_vdev_up
	cbz	w0, LBB0_12
; %bb.10:
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
	ldr	w1, [x19]
	mov	x0, x19
	bl	_ath10k_wmi_vdev_stop
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.11:
	ldr	w2, [x19]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	b	LBB0_7
LBB0_12:
	str	w20, [x19]
Lloh17:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ath10k_dbg
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_mac_get_any_chandef_iter,4,2 ; @ath10k_mac_get_any_chandef_iter
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to request monitor vdev %i start: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to synchronize setup for monitor vdev %i start: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to put up monitor vdev %i: %d\n"

	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
l_.str.3:                               ; @.str.3
	.asciz	"mac monitor vdev %i started\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to stop monitor vdev %i after start failure: %d\n"

	.no_dead_strip	_ath10k_monitor_vdev_start
.subsections_via_symbols
