#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ pA(char *);
void __func_mul_double_module(void) {
  pA("fixS = 0;");
  pA("if (fixL < 0) {fixL = -fixL; fixS |= 1;}");
  pA("if (fixR < 0) {fixR = -fixR; fixS |= 2;}");
  pA("fixRx = (fixR & 0xffff0000) >> 16;");
  pA("fixLx = (fixL & 0xffff0000);");
  pA("fixR = fixR & 0x0000ffff;");
  pA("fixL = fixL & 0x0000ffff;");
  pA("fixA = "
     "(((fixL >> 1) * fixR) >> 15) + "
     "((fixLx >> 16) * fixR) + "
     "(fixLx * fixRx) + "
     "(fixL * fixRx);");
  pA("if ((fixS == 0x00000001) | (fixS == 0x00000002)) {fixA = -fixA;}");
}


x86 assembly (clang, -O0):
<__func_mul_double_module>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <pA@plt>
lea    0xee3(%rip),%rdi
call   1030 <pA@plt>
lea    0xf00(%rip),%rdi
call   1030 <pA@plt>
lea    0xf1d(%rip),%rdi
call   1030 <pA@plt>
lea    0xf34(%rip),%rdi
call   1030 <pA@plt>
lea    0xf45(%rip),%rdi
call   1030 <pA@plt>
lea    0xf53(%rip),%rdi
call   1030 <pA@plt>
lea    0xf61(%rip),%rdi
call   1030 <pA@plt>
lea    0xfb6(%rip),%rdi
call   1030 <pA@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<__func_mul_double_module>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <pA@plt>
lea    0xee6(%rip),%rdi
call   1030 <pA@plt>
lea    0xf03(%rip),%rdi
call   1030 <pA@plt>
lea    0xf20(%rip),%rdi
call   1030 <pA@plt>
lea    0xf37(%rip),%rdi
call   1030 <pA@plt>
lea    0xf48(%rip),%rdi
call   1030 <pA@plt>
lea    0xf56(%rip),%rdi
call   1030 <pA@plt>
lea    0xf64(%rip),%rdi
call   1030 <pA@plt>
lea    0xfb9(%rip),%rdi
pop    %rax
jmp    1030 <pA@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"fixS = 0;\00"
@.str.1 = [41 x i8] c"if (fixL < 0) {fixL = -fixL; fixS |= 1;}\00"
@.str.2 = [41 x i8] c"if (fixR < 0) {fixR = -fixR; fixS |= 2;}\00"
@.str.3 = [35 x i8] c"fixRx = (fixR & 0xffff0000) >> 16;\00"
@.str.4 = [29 x i8] c"fixLx = (fixL & 0xffff0000);\00"
@.str.5 = [26 x i8] c"fixR = fixR & 0x0000ffff;\00"
@.str.6 = [26 x i8] c"fixL = fixL & 0x0000ffff;\00"
@.str.7 = [97 x i8] c"fixA = (((fixL >> 1) * fixR) >> 15) + ((fixLx >> 16) * fixR) + (fixLx * fixRx) + (fixL * fixRx);\00"
@.str.8 = [65 x i8] c"if ((fixS == 0x00000001) | (fixS == 0x00000002)) {fixA = -fixA;}\00"
define void @__func_mul_double_module() {
%1 = call i32 @pA(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @pA(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @pA(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @pA(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @pA(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @pA(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @pA(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @pA(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @pA(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"fixS = 0;\00"
@.str.1 = [41 x i8] c"if (fixL < 0) {fixL = -fixL; fixS |= 1;}\00"
@.str.2 = [41 x i8] c"if (fixR < 0) {fixR = -fixR; fixS |= 2;}\00"
@.str.3 = [35 x i8] c"fixRx = (fixR & 0xffff0000) >> 16;\00"
@.str.4 = [29 x i8] c"fixLx = (fixL & 0xffff0000);\00"
@.str.5 = [26 x i8] c"fixR = fixR & 0x0000ffff;\00"
@.str.6 = [26 x i8] c"fixL = fixL & 0x0000ffff;\00"
@.str.7 = [97 x i8] c"fixA = (((fixL >> 1) * fixR) >> 15) + ((fixLx >> 16) * fixR) + (fixLx * fixRx) + (fixL * fixRx);\00"
@.str.8 = [65 x i8] c"if ((fixS == 0x00000001) | (fixS == 0x00000002)) {fixA = -fixA;}\00"
define void @__func_mul_double_module() {
%1 = tail call i32 @pA(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @pA(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @pA(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @pA(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @pA(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @pA(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @pA(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @pA(i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @pA(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0))
ret void
}