	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_get_srate
_stv090x_get_srate:                     ## @stv090x_get_srate
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_SFR3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r14d
	movq	_SFR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %ebx
	movq	_SFR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
	movl	%eax, %r13d
	movq	_SFR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STV090x_READ_DEMOD
                                        ## kill: def $eax killed $eax def $rax
	shll	$24, %r14d
	shll	$16, %ebx
	orl	%r14d, %ebx
	shll	$8, %r13d
	orl	%r13d, %eax
	orl	%ebx, %eax
	movl	%r12d, %ecx
	sarl	$16, %ecx
	movl	%eax, %edx
	sarl	$16, %edx
	leal	65535(%r12), %esi
	testl	%r12d, %r12d
	cmovnsl	%r12d, %esi
	andl	$-65536, %esi                   ## imm = 0xFFFF0000
	subl	%esi, %r12d
	leal	65535(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-65536, %esi                   ## imm = 0xFFFF0000
	subl	%esi, %eax
	imull	%edx, %r12d
	imull	%ecx, %edx
	imull	%ecx, %eax
	sarl	$16, %eax
	addl	%edx, %eax
	sarl	$16, %r12d
	addl	%r12d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFR3,4,2                       ## @SFR3
	.comm	_SFR2,4,2                       ## @SFR2
	.comm	_SFR1,4,2                       ## @SFR1
	.comm	_SFR0,4,2                       ## @SFR0
	.no_dead_strip	_stv090x_get_srate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_get_srate
_stv090x_get_srate:                     ; @stv090x_get_srate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SFR3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SFR3@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_STV090x_READ_DEMOD
	mov	x21, x0
Lloh3:
	adrp	x8, _SFR2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFR2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	mov	x22, x0
Lloh6:
	adrp	x8, _SFR1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SFR1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	mov	x23, x0
Lloh9:
	adrp	x8, _SFR0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SFR0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	lsl	w8, w22, #16
	orr	w8, w8, w21, lsl #24
	orr	w8, w8, w23, lsl #8
	orr	w8, w8, w0
	asr	w9, w19, #16
	asr	w10, w8, #16
	negs	w11, w19
	and	w11, w11, #0xffff
	and	w12, w19, #0xffff
	csneg	w11, w12, w11, mi
	and	w12, w8, #0xffff
	negs	w8, w8
	and	w8, w8, #0xffff
	csneg	w8, w12, w8, mi
	mul	w12, w10, w9
	mul	w8, w8, w9
	add	w8, w12, w8, asr #16
	mul	w9, w10, w11
	add	w0, w8, w9, asr #16
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SFR3,4,2                       ; @SFR3
	.comm	_SFR2,4,2                       ; @SFR2
	.comm	_SFR1,4,2                       ; @SFR1
	.comm	_SFR0,4,2                       ; @SFR0
	.no_dead_strip	_stv090x_get_srate
.subsections_via_symbols
