	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_monitor_recalc
_ath10k_monitor_recalc:                 ## @ath10k_monitor_recalc
	.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	%rdi, %rbx
	addq	$4, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	callq	_ath10k_mac_monitor_vdev_is_needed
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ath10k_mac_monitor_vdev_is_allowed
	movl	%eax, %r12d
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_ath10k_dbg
	testl	%r14d, %r14d
	setne	%al
	testl	%r12d, %r12d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.2:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	%rbx, %rdi
	callq	_ath10k_monitor_stop
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
LBB0_4:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_6:
	cmpl	%ecx, %r14d
	jne	LBB0_7
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.9:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_monitor_start           ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_monitor_stop            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac monitor recalc started? %d needed? %d allowed? %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"mac monitor stopping disallowed monitor\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to stop disallowed monitor: %d\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_ath10k_monitor_recalc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_monitor_recalc
_ath10k_monitor_recalc:                 ; @ath10k_monitor_recalc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	add	x0, x0, #4
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_ath10k_mac_monitor_vdev_is_needed
	mov	x20, x0
	mov	x0, x19
	bl	_ath10k_mac_monitor_vdev_is_allowed
	mov	x21, x0
Lloh0:
	adrp	x22, _ATH10K_DBG_MAC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATH10K_DBG_MAC@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x19]
	stp	x20, x21, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	cmp	w20, #0
	ccmp	w21, #0, #0, ne
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19]
	cbz	x0, LBB0_5
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w1, [x22]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x19
	bl	_ath10k_monitor_stop
	cbz	w0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_4:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x0, x19
	cbz	w20, LBB0_10
; %bb.9:
	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
	add	sp, sp, #80
	b	_ath10k_monitor_start
LBB0_10:
	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
	add	sp, sp, #80
	b	_ath10k_monitor_stop
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac monitor recalc started? %d needed? %d allowed? %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"mac monitor stopping disallowed monitor\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to stop disallowed monitor: %d\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_ath10k_monitor_recalc
.subsections_via_symbols
