	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_dvbs2_calc_dev
_stb0899_dvbs2_calc_dev:                ## @stb0899_dvbs2_calc_dev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %rcx
	leal	(%rcx,%rcx), %eax
	movslq	4(%rdi), %rsi
	leal	(%rsi,%rsi,4), %edi
	cltd
	idivl	%edi
                                        ## kill: def $eax killed $eax def $rax
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$38, %rcx
	addl	%edx, %ecx
	imulq	$274877907, %rsi, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$38, %rdx
	addl	%esi, %edx
	shll	$9, %ecx
	leal	(%rax,%rax), %esi
	testl	%eax, %eax
	movl	$2, %edi
	cmovnel	%esi, %edi
	imull	%edx, %edi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stb0899_dvbs2_calc_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_dvbs2_calc_dev
_stb0899_dvbs2_calc_dev:                ; @stb0899_dvbs2_calc_dev
	.cfi_startproc
; %bb.0:
	ldpsw	x8, x9, [x0]
	lsl	w10, w8, #1
	add	w11, w9, w9, lsl #2
	sdiv	w10, w10, w11
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x8, x8, x11
	lsr	x12, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w12
	mul	x9, x9, x11
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	lsl	w8, w8, #9
	lsl	w11, w10, #1
	mov	w12, #2
	cmp	w10, #0
	csel	w10, w12, w11, eq
	mul	w9, w10, w9
	sdiv	w0, w8, w9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stb0899_dvbs2_calc_dev
.subsections_via_symbols
