#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*/ dmov2(double, double, double, double, double *, double *);
int /*<<< orphan*/ dtop2(double, double, double *, double *);
int /*<<< orphan*/ ptod2(double, double, double *, double *);
int pmov2(double ro, double to, double xm, double ym, double *r, double *t) {
  double dx, dy, ddx, ddy;
  ptod2(ro, to, &dx, &dy);
  dmov2(dx, dy, xm, ym, &ddx, &ddy);
  dtop2(ddx, ddy, r, t);
  return 0;
}


x86 assembly (clang, -O0):
<pmov2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    -0x38(%rbp),%rdi
lea    -0x40(%rbp),%rsi
call   1030 <ptod2@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
lea    -0x48(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1050 <dmov2@plt>
movsd  -0x48(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <dtop2@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pmov2>:
push   %r14
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
lea    0x30(%rsp),%rdi
lea    0x28(%rsp),%rsi
call   1030 <ptod2@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
lea    0x20(%rsp),%rdi
lea    0x18(%rsp),%rsi
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm3
call   1050 <dmov2@plt>
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <dtop2@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @pmov2(double %0, double %1, double %2, double %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double* %4, double** %11
store double* %5, double** %12
%17 = load double, double* %7
%18 = load double, double* %8
%19 = call i32 @ptod2(double %17, double %18, double* %13, double* %14)
%20 = load double, double* %13
%21 = load double, double* %14
%22 = load double, double* %9
%23 = load double, double* %10
%24 = call i32 @dmov2(double %20, double %21, double %22, double %23, double* %15, double* %16)
%25 = load double, double* %15
%26 = load double, double* %16
%27 = load double*, double** %11
%28 = load double*, double** %12
%29 = call i32 @dtop2(double %25, double %26, double* %27, double* %28)
ret i32 0
}

LLVM IR (-O2):
define i32 @pmov2(double %0, double %1, double %2, double %3, double* %4, double* %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = bitcast double* %7 to i8*
%12 = bitcast double* %8 to i8*
%13 = bitcast double* %9 to i8*
%14 = bitcast double* %10 to i8*
%15 = call i32 @ptod2(double %0, double %1, double* %7, double* %8)
%16 = load double, double* %7
%17 = load double, double* %8
%18 = call i32 @dmov2(double %16, double %17, double %2, double %3, double* %9, double* %10)
%19 = load double, double* %9
%20 = load double, double* %10
%21 = call i32 @dtop2(double %19, double %20, double* %4, double* %5)
ret i32 0
}