	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_dvbs2_get_srate
_stb0899_dvbs2_get_srate:               ## @stb0899_dvbs2_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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%ebx, %r15d
	notl	%r15d
	addl	%eax, %r15d
	movq	_STB0899_S2DEMOD@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_BTR_NOM_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STB0899_READ_S2REG
	movl	%eax, %r12d
	movl	(%r13), %edi
	movq	_DECIM_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STB0899_READ_S2REG
	movq	_DECIM_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	movl	$1, %r8d
	movl	%eax, %ecx
	shll	%cl, %r8d
	movl	$1, %edi
	movl	%ebx, %ecx
	shll	%cl, %edi
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	movl	8(%r14), %eax
	cltd
	idivl	%edi
	movl	%edx, %r9d
	movl	%eax, %esi
	movl	%r12d, %eax
	cltd
	idivl	%ebx
	imull	%eax, %r9d
	movl	%eax, %ecx
	imull	%esi, %ecx
	imull	%edx, %esi
	movl	%esi, %eax
	cltd
	idivl	%ebx
	movl	%eax, %esi
	addl	%ecx, %esi
	movl	%r9d, %eax
	cltd
	idivl	%edi
	addl	%esi, %eax
	cltd
	idivl	%r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_S2DEMOD,4,2            ## @STB0899_S2DEMOD
	.comm	_BTR_NOM_FREQ,4,2               ## @BTR_NOM_FREQ
	.comm	_DECIM_CNTRL,4,2                ## @DECIM_CNTRL
	.comm	_DECIM_RATE,4,2                 ## @DECIM_RATE
	.no_dead_strip	_stb0899_dvbs2_get_srate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_dvbs2_get_srate
_stb0899_dvbs2_get_srate:               ; @stb0899_dvbs2_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, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w21, w9, #1
	mvn	w9, w21
	add	w22, w8, w9
Lloh0:
	adrp	x23, _STB0899_S2DEMOD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STB0899_S2DEMOD@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _BTR_NOM_FREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BTR_NOM_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_STB0899_READ_S2REG
	mov	x20, x0
	ldr	w0, [x23]
Lloh5:
	adrp	x8, _DECIM_CNTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DECIM_CNTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_STB0899_READ_S2REG
	mov	x1, x0
Lloh8:
	adrp	x8, _DECIM_RATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DECIM_RATE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_STB0899_GETFIELD
	mov	w8, #1
	lsl	w9, w8, w0
	ldr	w10, [x19, #8]
	lsl	w11, w8, w21
	sdiv	w12, w10, w11
	lsl	w8, w8, w22
	sdiv	w13, w20, w8
	msub	w10, w12, w11, w10
	msub	w14, w13, w8, w20
	mul	w14, w14, w12
	sdiv	w8, w14, w8
	madd	w8, w13, w12, w8
	mul	w10, w10, w13
	sdiv	w10, w10, w11
	add	w8, w8, w10
	sdiv	w0, w8, w9
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_S2DEMOD,4,2            ; @STB0899_S2DEMOD
	.comm	_BTR_NOM_FREQ,4,2               ; @BTR_NOM_FREQ
	.comm	_DECIM_CNTRL,4,2                ; @DECIM_CNTRL
	.comm	_DECIM_RATE,4,2                 ; @DECIM_RATE
	.no_dead_strip	_stb0899_dvbs2_get_srate
.subsections_via_symbols
