	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_ATH_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rsi), %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpl	$2, %r15d
	jl	LBB0_6
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_3
LBB0_22:
	movq	%r14, %rdi
	callq	_usage
	xorl	%edi, %edi
	callq	_exit
LBB0_3:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	cmpl	$2, %r15d
	je	LBB0_13
## %bb.5:
	movq	16(%rbx), %r12
	addq	$16, %rbx
	addl	$-2, %r15d
LBB0_6:
	cmpl	$1, %r15d
	jne	LBB0_7
LBB0_13:
	movq	%r14, %rdi
	callq	_usage
	movl	$127, %edi
	callq	_exit
LBB0_7:
	leaq	-40(%rbp), %rdi
	movq	%r12, %rsi
	callq	_spectral_opendev
	testq	%rax, %rax
	jne	LBB0_8
## %bb.23:
	movl	$127, %edi
	callq	_exit
LBB0_8:
	movq	8(%rbx), %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rdi
	callq	_spectral_get
	jmp	LBB0_21
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	cmpl	$3, %r15d
	jle	LBB0_13
## %bb.12:
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdx
	leaq	-40(%rbp), %rdi
	callq	_spectral_set_param
	testq	%rax, %rax
	je	LBB0_13
	jmp	LBB0_21
LBB0_14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rdi
	callq	_spectral_start
	jmp	LBB0_21
LBB0_16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rdi
	callq	_spectral_stop
	jmp	LBB0_21
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.19:
	cmpl	$2, %r15d
	jle	LBB0_13
## %bb.20:
	movq	16(%rbx), %rdi
	callq	_atoi
	leaq	-40(%rbp), %rdi
	movl	%eax, %esi
	callq	_spectral_enable_at_reset
LBB0_21:
	leaq	-40(%rbp), %rdi
	callq	_spectral_closedev
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH_DEFAULT,8,3                ## @ATH_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-h"

L_.str.1:                               ## @.str.1
	.asciz	"-?"

L_.str.2:                               ## @.str.2
	.asciz	"-i"

L_.str.3:                               ## @.str.3
	.asciz	"get"

L_.str.4:                               ## @.str.4
	.asciz	"set"

L_.str.5:                               ## @.str.5
	.asciz	"start"

L_.str.6:                               ## @.str.6
	.asciz	"stop"

L_.str.7:                               ## @.str.7
	.asciz	"enable_at_reset"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ATH_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	x19, [x1]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cmp	w21, #2
	b.lt	LBB0_7
; %bb.1:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_usage
	mov	w0, #0
	bl	_exit
LBB0_4:
	ldr	x0, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.5:
	subs	w21, w21, #2
	b.eq	LBB0_8
; %bb.6:
	ldr	x22, [x20, #16]!
LBB0_7:
	cmp	w21, #1
	b.ne	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_usage
	mov	w0, #127
	bl	_exit
LBB0_9:
	add	x0, sp, #8
	mov	x1, x22
	bl	_spectral_opendev
	cbnz	x0, LBB0_11
; %bb.10:
	mov	w0, #127
	bl	_exit
LBB0_11:
	ldr	x22, [x20, #8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbnz	x0, LBB0_13
; %bb.12:
	add	x0, sp, #8
	bl	_spectral_get
	b	LBB0_23
LBB0_13:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbnz	x0, LBB0_16
; %bb.14:
	cmp	w21, #3
	b.le	LBB0_8
; %bb.15:
	ldp	x1, x2, [x20, #16]
	add	x0, sp, #8
	bl	_spectral_set_param
	cbz	x0, LBB0_8
	b	LBB0_23
LBB0_16:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbnz	x0, LBB0_18
; %bb.17:
	add	x0, sp, #8
	bl	_spectral_start
	b	LBB0_23
LBB0_18:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbnz	x0, LBB0_20
; %bb.19:
	add	x0, sp, #8
	bl	_spectral_stop
	b	LBB0_23
LBB0_20:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbnz	x0, LBB0_8
; %bb.21:
	cmp	w21, #2
	b.le	LBB0_8
; %bb.22:
	ldr	x0, [x20, #16]
	bl	_atoi
	mov	x1, x0
	add	x0, sp, #8
	bl	_spectral_enable_at_reset
LBB0_23:
	add	x0, sp, #8
	bl	_spectral_closedev
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH_DEFAULT,8,3                ; @ATH_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-h"

l_.str.1:                               ; @.str.1
	.asciz	"-?"

l_.str.2:                               ; @.str.2
	.asciz	"-i"

l_.str.3:                               ; @.str.3
	.asciz	"get"

l_.str.4:                               ; @.str.4
	.asciz	"set"

l_.str.5:                               ; @.str.5
	.asciz	"start"

l_.str.6:                               ; @.str.6
	.asciz	"stop"

l_.str.7:                               ; @.str.7
	.asciz	"enable_at_reset"

.subsections_via_symbols
