	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spectral_stop
_spectral_stop:                         ## @spectral_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SPECTRAL_CONTROL_STOP@GOTPCREL(%rip), %rax
	movq	_ATH_DIAG_DYN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rdi)
	leaq	-20(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	%r14, 16(%rbx)
	movl	$4, 4(%rbx)
	movl	40(%rbx), %edi
	movq	_SIOCGATHSPECTRAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECTRAL_CONTROL_STOP,4,2      ## @SPECTRAL_CONTROL_STOP
	.comm	_ATH_DIAG_DYN,4,2               ## @ATH_DIAG_DYN
	.comm	_SIOCGATHSPECTRAL,4,2           ## @SIOCGATHSPECTRAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.no_dead_strip	_spectral_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spectral_stop
_spectral_stop:                         ; @spectral_stop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _SPECTRAL_CONTROL_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPECTRAL_CONTROL_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ATH_DIAG_DYN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH_DIAG_DYN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	add	x20, sp, #12
	mov	w21, #4
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	stp	xzr, xzr, [x19, #24]
	str	x20, [x19, #16]
	str	w21, [x19, #4]
	ldr	w0, [x19, #40]
Lloh6:
	adrp	x8, _SIOCGATHSPECTRAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCGATHSPECTRAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w2, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECTRAL_CONTROL_STOP,4,2      ; @SPECTRAL_CONTROL_STOP
	.comm	_ATH_DIAG_DYN,4,2               ; @ATH_DIAG_DYN
	.comm	_SIOCGATHSPECTRAL,4,2           ; @SIOCGATHSPECTRAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.no_dead_strip	_spectral_stop
.subsections_via_symbols
