#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*/ buttressed_foundation(double, double, double, double,
                                         double);
int /*<<< orphan*/ endrotate();
int /*<<< orphan*/ endxlate();
int /*<<< orphan*/ rotate(int, int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ xlate(int /*<<< orphan*/, int /*<<< orphan*/, double);
void inverted_buttressed_foundation(double width, double length, double height,
                                    double buttress_angle,
                                    double buttress_interval) {
  xlate(0, 0, height);
  rotate(180, 1, 0, 0);
  buttressed_foundation(width, length, height, buttress_angle,
                        buttress_interval);
  endrotate();
  endxlate();
}


x86 assembly (clang, -O0):
<inverted_buttressed_foundation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm0
xor    %esi,%esi
mov    %esi,%edi
call   1030 <xlate@plt>
mov    $0xb4,%edi
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1050 <rotate@plt>
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm3
movsd  -0x28(%rbp),%xmm4
call   1040 <buttressed_foundation@plt>
mov    $0x0,%al
call   1060 <endrotate@plt>
mov    $0x0,%al
call   1070 <endxlate@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverted_buttressed_foundation>:
sub    $0x28,%rsp
movsd  %xmm4,0x20(%rsp)
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,(%rsp)
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
xor    %edi,%edi
xor    %esi,%esi
movaps %xmm2,%xmm0
call   1030 <xlate@plt>
mov    $0xb4,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1050 <rotate@plt>
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  (%rsp),%xmm2
movsd  0x18(%rsp),%xmm3
movsd  0x20(%rsp),%xmm4
call   1040 <buttressed_foundation@plt>
xor    %eax,%eax
call   1060 <endrotate@plt>
xor    %eax,%eax
add    $0x28,%rsp
jmp    1070 <endxlate@plt>

LLVM IR (-O0):
define void @inverted_buttressed_foundation(double %0, double %1, double %2, double %3, double %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double %0, double* %6
store double %1, double* %7
store double %2, double* %8
store double %3, double* %9
store double %4, double* %10
%11 = load double, double* %8
%12 = call i32 @xlate(i32 0, i32 0, double %11)
%13 = call i32 @rotate(i32 180, i32 1, i32 0, i32 0)
%14 = load double, double* %6
%15 = load double, double* %7
%16 = load double, double* %8
%17 = load double, double* %9
%18 = load double, double* %10
%19 = call i32 @buttressed_foundation(double %14, double %15, double %16, double %17, double %18)
%20 = call i32 (...) @endrotate()
%21 = call i32 (...) @endxlate()
ret void
}

LLVM IR (-O2):
define void @inverted_buttressed_foundation(double %0, double %1, double %2, double %3, double %4) {
%6 = tail call i32 @xlate(i32 0, i32 0, double %2)
%7 = tail call i32 @rotate(i32 180, i32 1, i32 0, i32 0)
%8 = tail call i32 @buttressed_foundation(double %0, double %1, double %2, double %3, double %4)
%9 = tail call i32 (...) @endrotate()
%10 = tail call i32 (...) @endxlate()
ret void
}