	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_parameters
_set_parameters:                        ## @set_parameters
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_SX8_TSCONFIG_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_stop
LBB0_2:
	movl	(%rbx), %eax
	movq	_NO_STREAM_ID_FILTER@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	shrl	$28, %edx
	andl	$3, %edx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	cmovnel	%edx, %esi
	movq	_SX8_TSCONFIG_TSHEADER@GOTPCREL(%rip), %rax
	movq	_SX8_TSCONFIG_MODE_IQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%esi, %esi
	cmovel	%r15d, %ecx
	cmpl	$3, %esi
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_start_iq
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movl	4(%rbx), %eax
	xorl	%edx, %edx
	cmpl	$129, %eax
	sete	%dl
	leal	3(,%rdx,4), %esi
	cmpl	$128, %eax
	movl	$15, %edx
	cmovnel	%esi, %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_start
	testl	%eax, %eax
	jne	LBB0_7
LBB0_6:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%r14)
	movq	_SX8_DEMOD_WAIT_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SX8_TSCONFIG_MODE_NORMAL,4,2   ## @SX8_TSCONFIG_MODE_NORMAL
	.comm	_NO_STREAM_ID_FILTER,4,2        ## @NO_STREAM_ID_FILTER
	.comm	_SX8_TSCONFIG_TSHEADER,4,2      ## @SX8_TSCONFIG_TSHEADER
	.comm	_SX8_TSCONFIG_MODE_IQ,4,2       ## @SX8_TSCONFIG_MODE_IQ
	.comm	_SX8_DEMOD_WAIT_SIGNAL,4,2      ## @SX8_DEMOD_WAIT_SIGNAL
	.no_dead_strip	_set_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_parameters
_set_parameters:                        ; @set_parameters
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _SX8_TSCONFIG_MODE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SX8_TSCONFIG_MODE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_stop
LBB0_2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _NO_STREAM_ID_FILTER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NO_STREAM_ID_FILTER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ubfx	w10, w8, #28, #2
	cmp	w8, w9
	csel	w8, wzr, w10, eq
Lloh6:
	adrp	x9, _SX8_TSCONFIG_TSHEADER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SX8_TSCONFIG_TSHEADER@GOTPAGEOFF]
Lloh8:
	adrp	x10, _SX8_TSCONFIG_MODE_IQ@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SX8_TSCONFIG_MODE_IQ@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, #0
	csel	w3, w21, w9, eq
	cmp	w8, #3
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_start_iq
	cbnz	w0, LBB0_6
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #4]
	mov	w9, #3
	mov	w10, #7
	cmp	w8, #129
	csel	w9, w10, w9, eq
	mov	w10, #15
	cmp	w8, #128
	csel	w2, w10, w9, eq
	mov	x0, x19
	mov	w1, #3
	bl	_start
	cbnz	w0, LBB0_6
LBB0_5:
	movi.2s	v0, #1
	str	d0, [x20]
Lloh12:
	adrp	x8, _SX8_DEMOD_WAIT_SIGNAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SX8_DEMOD_WAIT_SIGNAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SX8_TSCONFIG_MODE_NORMAL,4,2   ; @SX8_TSCONFIG_MODE_NORMAL
	.comm	_NO_STREAM_ID_FILTER,4,2        ; @NO_STREAM_ID_FILTER
	.comm	_SX8_TSCONFIG_TSHEADER,4,2      ; @SX8_TSCONFIG_TSHEADER
	.comm	_SX8_TSCONFIG_MODE_IQ,4,2       ; @SX8_TSCONFIG_MODE_IQ
	.comm	_SX8_DEMOD_WAIT_SIGNAL,4,2      ; @SX8_DEMOD_WAIT_SIGNAL
	.no_dead_strip	_set_parameters
.subsections_via_symbols
