	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spectralset                    ## -- Begin function spectralset
	.p2align	4, 0x90
_spectralset:                           ## @spectralset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movq	_HAL_SPECTRAL_PARAM_NOVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rax, -48(%rbp)
	movq	%rax, -56(%rbp)
	movq	%rax, -64(%rbp)
	movq	%rax, -32(%rbp)
	movq	%rax, -16(%rbp)
	movq	%rax, -24(%rbp)
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	%rdx, -64(%rbp)
	jmp	LBB0_7
LBB0_5:
	movq	%rdx, -56(%rbp)
	jmp	LBB0_7
LBB0_3:
	movq	%rdx, -40(%rbp)
	jmp	LBB0_7
LBB0_4:
	movq	%rdx, -48(%rbp)
	jmp	LBB0_7
LBB0_2:
	movq	%rdx, -32(%rbp)
LBB0_7:
	movq	_SPECTRAL_CONTROL_SET_PARAMS@GOTPCREL(%rip), %rax
	movq	_ATH_DIAG_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	leaq	-64(%rbp), %rax
	movq	%rax, 16(%rbx)
	movl	$56, 4(%rbx)
	movl	40(%rbx), %edi
	movq	_SIOCGATHSPECTRAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_HAL_SPECTRAL_PARAM_NOVAL,8,3   ## @HAL_SPECTRAL_PARAM_NOVAL
	.comm	_SPECTRAL_CONTROL_SET_PARAMS,4,2 ## @SPECTRAL_CONTROL_SET_PARAMS
	.comm	_ATH_DIAG_IN,4,2                ## @ATH_DIAG_IN
	.comm	_SIOCGATHSPECTRAL,4,2           ## @SIOCGATHSPECTRAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spectralset                    ; -- Begin function spectralset
	.p2align	2
_spectralset:                           ; @spectralset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _HAL_SPECTRAL_PARAM_NOVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HAL_SPECTRAL_PARAM_NOVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #24]
	stp	x8, x8, [sp, #8]
	stp	x8, x8, [sp, #48]
	str	x8, [sp, #40]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	x2, [sp, #8]
	b	LBB0_7
LBB0_3:
	str	x2, [sp, #16]
	b	LBB0_7
LBB0_4:
	str	x2, [sp, #32]
	b	LBB0_7
LBB0_5:
	str	x2, [sp, #24]
	b	LBB0_7
LBB0_6:
	str	x2, [sp, #40]
LBB0_7:
Lloh5:
	adrp	x8, _SPECTRAL_CONTROL_SET_PARAMS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPECTRAL_CONTROL_SET_PARAMS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ATH_DIAG_IN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATH_DIAG_IN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	xzr, xzr, [x19, #24]
	add	x9, sp, #8
	str	x9, [x19, #16]
	mov	w9, #56
	stp	w8, w9, [x19]
	ldr	w0, [x19, #40]
Lloh11:
	adrp	x8, _SIOCGATHSPECTRAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIOCGATHSPECTRAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	w2, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_HAL_SPECTRAL_PARAM_NOVAL,8,3   ; @HAL_SPECTRAL_PARAM_NOVAL
	.comm	_SPECTRAL_CONTROL_SET_PARAMS,4,2 ; @SPECTRAL_CONTROL_SET_PARAMS
	.comm	_ATH_DIAG_IN,4,2                ; @ATH_DIAG_IN
	.comm	_SIOCGATHSPECTRAL,4,2           ; @SIOCGATHSPECTRAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
