#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 */
unsigned char *code_table_3_2_location(unsigned char **);
double fabs(double);
scalar_t__ floor(double);
int /*<<< orphan*/ int_char(int, unsigned char *);
int /*<<< orphan*/ uint_char(int, unsigned char *);
unsigned char *sec3_rot_ll(int nx, double x0, double dx, int ny, double y0,
                           double dy, double sp_lon, double sp_lat,
                           double sp_rot, unsigned char **old_sec) {
  static unsigned char gds[84];
  unsigned char *p;
  int i;
  double r;
  uint_char(84, gds);
  gds[4] = 3;
  gds[5] = 0;
  uint_char(nx * ny, gds + 6);
  gds[10] = 0;
  gds[11] = 0;
  gds[12] = 0;
  gds[13] = 1;
  if (old_sec == NULL) {
    gds[14] = 6;
    gds[15] = 0;
    uint_char(0, gds + 16);
    gds[20] = 0;
    uint_char(0, gds + 21);
    gds[25] = 0;
    uint_char(0, gds + 26);
  } else {
    p = code_table_3_2_location(old_sec);
    for (i = 0; i < 16; i++)
      gds[14 + i] = p[i];
  }
  uint_char(nx, gds + 30);
  uint_char(ny, gds + 34);
  uint_char(0, gds + 38);
  uint_char(0xffffffff, gds + 42);
  int_char((int)floor(y0 * 1.0e6 + 0.5), gds + 46);
  uint_char((int)floor(x0 * 1.0e6 + 0.5), gds + 50);
  gds[54] = 32 + 16;
  r = y0 + (ny - 1) * dy;
  int_char((int)floor(r * 1.0e6 + 0.5), gds + 55);
  r = x0 + (nx - 1) * dx;
  if (r >= 360.0)
    r -= 360.0;
  if (r < 0.0)
    r += 360.0;
  uint_char((int)floor(r * 1.0e6 + 0.5), gds + 59);
  int_char((int)floor(fabs(dx) * 1.0e6 + 0.5), gds + 63);
  int_char((int)floor(fabs(dy) * 1.0e6 + 0.5), gds + 67);
  gds[71] = 0;
  if (dx < 0.0)
    gds[71] |= 128;
  if (dy > 0.0)
    gds[71] |= 64;
  int_char((int)floor(sp_lat * 1.0e6 + 0.5), gds + 72);
  int_char((int)floor(sp_lon * 1.0e6 + 0.5), gds + 76);
  int_char((int)floor(sp_rot * 1.0e6 + 0.5), gds + 80);
  return gds;
}


x86 assembly (clang, -O0):
<sec3_rot_ll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %esi,-0x1c(%rbp)
movsd  %xmm2,-0x28(%rbp)
movsd  %xmm3,-0x30(%rbp)
movsd  %xmm4,-0x38(%rbp)
movsd  %xmm5,-0x40(%rbp)
movsd  %xmm6,-0x48(%rbp)
mov    %rdx,-0x50(%rbp)
mov    $0x54,%edi
lea    0x2ecf(%rip),%rsi
call   1030 <uint_char@plt>
movb   $0x3,0x2ec7(%rip)
movb   $0x0,0x2ec1(%rip)
mov    -0x4(%rbp),%edi
imul   -0x1c(%rbp),%edi
lea    0x2eae(%rip),%rsi
add    $0x6,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2ea8(%rip)
movb   $0x0,0x2ea2(%rip)
movb   $0x0,0x2e9c(%rip)
movb   $0x1,0x2e96(%rip)
cmpq   $0x0,-0x50(%rbp)
jne    1229 <sec3_rot_ll+0xe9>
movb   $0x6,0x2e85(%rip)
movb   $0x0,0x2e7f(%rip)
xor    %edi,%edi
lea    0x2e67(%rip),%rsi
add    $0x10,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e6b(%rip)
xor    %edi,%edi
lea    0x2e4e(%rip),%rsi
add    $0x15,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e57(%rip)
xor    %edi,%edi
lea    0x2e35(%rip),%rsi
add    $0x1a,%rsi
call   1030 <uint_char@plt>
jmp    1278 <sec3_rot_ll+0x138>
mov    -0x50(%rbp),%rdi
call   1040 <code_table_3_2_location@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
cmpl   $0x10,-0x5c(%rbp)
jge    1273 <sec3_rot_ll+0x133>
mov    -0x58(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x5c(%rbp),%eax
add    $0xe,%eax
movslq %eax,%rcx
lea    0x2dee(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    123d <sec3_rot_ll+0xfd>
jmp    1278 <sec3_rot_ll+0x138>
mov    -0x4(%rbp),%edi
lea    0x2dce(%rip),%rsi
add    $0x1e,%rsi
call   1030 <uint_char@plt>
mov    -0x1c(%rbp),%edi
lea    0x2dbb(%rip),%rsi
add    $0x22,%rsi
call   1030 <uint_char@plt>
xor    %edi,%edi
lea    0x2da9(%rip),%rsi
add    $0x26,%rsi
call   1030 <uint_char@plt>
mov    $0xffffffff,%edi
lea    0x2d94(%rip),%rsi
add    $0x2a,%rsi
call   1030 <uint_char@plt>
movsd  -0x28(%rbp),%xmm0
movsd  0xd36(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd32(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2d60(%rip),%rsi
add    $0x2e,%rsi
call   1050 <int_char@plt>
movsd  -0x10(%rbp),%xmm0
movsd  0xd02(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcfe(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2d2c(%rip),%rsi
add    $0x32,%rsi
call   1030 <uint_char@plt>
movb   $0x30,0x2d52(%rip)
movsd  -0x28(%rbp),%xmm1
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  -0x30(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xca6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xca2(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2cd0(%rip),%rsi
add    $0x37,%rsi
call   1050 <int_char@plt>
movsd  -0x10(%rbp),%xmm1
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xc49(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13d7 <sec3_rot_ll+0x297>
movsd  -0x68(%rbp),%xmm0
movsd  0xc32(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    13f7 <sec3_rot_ll+0x2b7>
movsd  0xc13(%rip),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xc04(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc00(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2c2e(%rip),%rsi
add    $0x3b,%rsi
call   1030 <uint_char@plt>
movsd  -0x18(%rbp),%xmm0
movaps 0xbe9(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xbc5(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xbc1(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2bef(%rip),%rsi
add    $0x3f,%rsi
call   1050 <int_char@plt>
movsd  -0x30(%rbp),%xmm0
movaps 0xbaa(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xb86(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb82(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2bb0(%rip),%rsi
add    $0x43,%rsi
call   1050 <int_char@plt>
movb   $0x0,0x2be7(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    14d0 <sec3_rot_ll+0x390>
movzbl 0x2bd2(%rip),%eax
or     $0x80,%eax
mov    %al,0x2bc7(%rip)
movsd  -0x30(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14f2 <sec3_rot_ll+0x3b2>
movzbl 0x2bae(%rip),%eax
or     $0x40,%eax
mov    %al,0x2ba5(%rip)
movsd  -0x40(%rbp),%xmm0
movsd  0xb09(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xb05(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2b33(%rip),%rsi
add    $0x48,%rsi
call   1050 <int_char@plt>
movsd  -0x38(%rbp),%xmm0
movsd  0xad5(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xad1(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2aff(%rip),%rsi
add    $0x4c,%rsi
call   1050 <int_char@plt>
movsd  -0x48(%rbp),%xmm0
movsd  0xaa1(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa9d(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1060 <floor@plt>
mov    %eax,%edi
lea    0x2acb(%rip),%rsi
add    $0x50,%rsi
call   1050 <int_char@plt>
lea    0x2abb(%rip),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sec3_rot_ll>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x48,%rsp
mov    %rdx,%rbp
movsd  %xmm6,0x40(%rsp)
movsd  %xmm5,0x30(%rsp)
movsd  %xmm4,0x38(%rsp)
movaps %xmm3,0x20(%rsp)
movsd  %xmm2,(%rsp)
mov    %esi,%ebx
movaps %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
mov    %edi,%r15d
lea    0x2ed0(%rip),%rsi
mov    $0x54,%edi
call   1030 <uint_char@plt>
movw   $0x3,0x2ec1(%rip)
mov    %ebx,%edi
imul   %r15d,%edi
lea    0x2eb6(%rip),%rsi
call   1030 <uint_char@plt>
movl   $0x1000000,0x2eab(%rip)
test   %rbp,%rbp
je     1251 <sec3_rot_ll+0x111>
mov    %rbp,%rdi
call   1040 <code_table_3_2_location@plt>
mov    (%rax),%cl
mov    %cl,0x2e96(%rip)
mov    0x1(%rax),%cl
mov    %cl,0x2e8e(%rip)
mov    0x2(%rax),%cl
mov    %cl,0x2e86(%rip)
mov    0x3(%rax),%cl
mov    %cl,0x2e7e(%rip)
mov    0x4(%rax),%cl
mov    %cl,0x2e76(%rip)
mov    0x5(%rax),%cl
mov    %cl,0x2e6e(%rip)
mov    0x6(%rax),%cl
mov    %cl,0x2e66(%rip)
mov    0x7(%rax),%cl
mov    %cl,0x2e5e(%rip)
mov    0x8(%rax),%cl
mov    %cl,0x2e56(%rip)
mov    0x9(%rax),%cl
mov    %cl,0x2e4e(%rip)
mov    0xa(%rax),%cl
mov    %cl,0x2e46(%rip)
mov    0xb(%rax),%cl
mov    %cl,0x2e3e(%rip)
mov    0xc(%rax),%cl
mov    %cl,0x2e36(%rip)
mov    0xd(%rax),%cl
mov    %cl,0x2e2e(%rip)
mov    0xe(%rax),%cl
mov    %cl,0x2e26(%rip)
mov    0xf(%rax),%al
mov    %al,0x2e1e(%rip)
jmp    1292 <sec3_rot_ll+0x152>
movw   $0x6,0x2e04(%rip)
lea    0x2dff(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
movb   $0x0,0x2df5(%rip)
lea    0x2def(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
movb   $0x0,0x2de5(%rip)
lea    0x2ddf(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
lea    0x2dd5(%rip),%rsi
mov    %r15d,%edi
call   1030 <uint_char@plt>
lea    0x2da8(%rip),%r14
lea    0x2dc3(%rip),%rsi
mov    %ebx,%edi
call   1030 <uint_char@plt>
lea    0x2db9(%rip),%rsi
xor    %edi,%edi
call   1030 <uint_char@plt>
lea    0x2daf(%rip),%rsi
mov    $0xffffffff,%edi
call   1030 <uint_char@plt>
movsd  (%rsp),%xmm0
mulsd  0xd1e(%rip),%xmm0
addsd  0xd1e(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d88(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xcf5(%rip),%xmm0
addsd  0xcf5(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d63(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movb   $0x30,0x2d59(%rip)
add    $0xffffffff,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
mulsd  0x20(%rsp),%xmm0
addsd  (%rsp),%xmm0
mulsd  0xcb6(%rip),%xmm0
addsd  0xcb6(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2d29(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
add    $0xffffffff,%r15d
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  0xc8b(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xc87(%rip),%xmm2
movapd %xmm2,%xmm3
cmpnlesd %xmm0,%xmm3
andpd  %xmm3,%xmm0
andnpd %xmm1,%xmm3
orpd   %xmm0,%xmm3
addsd  %xmm3,%xmm2
xorpd  %xmm1,%xmm1
movapd %xmm3,%xmm0
cmpltsd %xmm1,%xmm0
andpd  %xmm0,%xmm2
andnpd %xmm3,%xmm0
orpd   %xmm2,%xmm0
mulsd  0xc35(%rip),%xmm0
addsd  0xc35(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2cac(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movapd 0x10(%rsp),%xmm0
andpd  0xc2c(%rip),%xmm0
mulsd  0xc04(%rip),%xmm0
addsd  0xc04(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2c7f(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movapd 0xc01(%rip),%xmm0
andpd  0x20(%rsp),%xmm0
mulsd  0xbd3(%rip),%xmm0
addsd  0xbd3(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2c52(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
xorpd  %xmm1,%xmm1
ucomisd 0x10(%rsp),%xmm1
seta   %al
shl    $0x7,%al
lea    0x40(%rax),%ecx
movapd 0x20(%rsp),%xmm0
ucomisd %xmm1,%xmm0
movzbl %al,%eax
movzbl %cl,%ecx
cmovbe %eax,%ecx
mov    %cl,0x2c23(%rip)
movsd  0x30(%rsp),%xmm0
mulsd  0xb7e(%rip),%xmm0
addsd  0xb7e(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2c02(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movsd  0x38(%rsp),%xmm0
mulsd  0xb55(%rip),%xmm0
addsd  0xb55(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2bdd(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
movsd  0x40(%rsp),%xmm0
mulsd  0xb2c(%rip),%xmm0
addsd  0xb2c(%rip),%xmm0
call   1060 <floor@plt>
lea    0x2bb8(%rip),%rsi
mov    %eax,%edi
call   1050 <int_char@plt>
mov    %r14,%rax
add    $0x48,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@sec3_rot_ll.gds = internal global [84 x i8] zeroinitializer
define i8* @sec3_rot_ll(i32 %0, double %1, double %2, i32 %3, double %4, double %5, double %6, double %7, double %8, i8** %9) {
%11 = alloca i32
%12 = alloca double
%13 = alloca double
%14 = alloca i32
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca i8**
%21 = alloca i8*
%22 = alloca i32
%23 = alloca double
store i32 %0, i32* %11
store double %1, double* %12
store double %2, double* %13
store i32 %3, i32* %14
store double %4, double* %15
store double %5, double* %16
store double %6, double* %17
store double %7, double* %18
store double %8, double* %19
store i8** %9, i8*** %20
%24 = call i32 @uint_char(i32 84, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 0))
store i8 3, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 4)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 5)
%25 = load i32, i32* %11
%26 = load i32, i32* %14
%27 = mul nsw i32 %25, %26
%28 = call i32 @uint_char(i32 %27, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 6))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 10)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 11)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 12)
store i8 1, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 13)
%29 = load i8**, i8*** %20
%30 = icmp eq i8** %29, null
br i1 %30, label %31, label %35
31: ; preds = %10
store i8 6, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 14)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 15)
%32 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 16))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 20)
%33 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 21))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 25)
%34 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 26))
br label %55
35: ; preds = %10
%36 = load i8**, i8*** %20
%37 = call i8* @code_table_3_2_location(i8** %36)
store i8* %37, i8** %21
store i32 0, i32* %22
br label %38
38: ; preds = %51, %35
%39 = load i32, i32* %22
%40 = icmp slt i32 %39, 16
br i1 %40, label %41, label %54
41: ; preds = %38
%42 = load i8*, i8** %21
%43 = load i32, i32* %22
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8, i8* %42, i64 %44
%46 = load i8, i8* %45
%47 = load i32, i32* %22
%48 = add nsw i32 14, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 %49
store i8 %46, i8* %50
br label %51
51: ; preds = %41
%52 = load i32, i32* %22
%53 = add nsw i32 %52, 1
store i32 %53, i32* %22
br label %38
54: ; preds = %38
br label %55
55: ; preds = %54, %31
%56 = load i32, i32* %11
%57 = call i32 @uint_char(i32 %56, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 30))
%58 = load i32, i32* %14
%59 = call i32 @uint_char(i32 %58, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 34))
%60 = call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 38))
%61 = call i32 @uint_char(i32 -1, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 42))
%62 = load double, double* %15
%63 = call double @llvm.fmuladd.f64(double %62, double 1.000000e+06, double 5.000000e-01)
%64 = call i64 @floor(double %63)
%65 = trunc i64 %64 to i32
%66 = call i32 @int_char(i32 %65, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 46))
%67 = load double, double* %12
%68 = call double @llvm.fmuladd.f64(double %67, double 1.000000e+06, double 5.000000e-01)
%69 = call i64 @floor(double %68)
%70 = trunc i64 %69 to i32
%71 = call i32 @uint_char(i32 %70, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 50))
store i8 48, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 54)
%72 = load double, double* %15
%73 = load i32, i32* %14
%74 = sub nsw i32 %73, 1
%75 = sitofp i32 %74 to double
%76 = load double, double* %16
%77 = call double @llvm.fmuladd.f64(double %75, double %76, double %72)
store double %77, double* %23
%78 = load double, double* %23
%79 = call double @llvm.fmuladd.f64(double %78, double 1.000000e+06, double 5.000000e-01)
%80 = call i64 @floor(double %79)
%81 = trunc i64 %80 to i32
%82 = call i32 @int_char(i32 %81, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 55))
%83 = load double, double* %12
%84 = load i32, i32* %11
%85 = sub nsw i32 %84, 1
%86 = sitofp i32 %85 to double
%87 = load double, double* %13
%88 = call double @llvm.fmuladd.f64(double %86, double %87, double %83)
store double %88, double* %23
%89 = load double, double* %23
%90 = fcmp oge double %89, 3.600000e+02
br i1 %90, label %91, label %94
91: ; preds = %55
%92 = load double, double* %23
%93 = fsub double %92, 3.600000e+02
store double %93, double* %23
br label %94
94: ; preds = %91, %55
%95 = load double, double* %23
%96 = fcmp olt double %95, 0.000000e+00
br i1 %96, label %97, label %100
97: ; preds = %94
%98 = load double, double* %23
%99 = fadd double %98, 3.600000e+02
store double %99, double* %23
br label %100
100: ; preds = %97, %94
%101 = load double, double* %23
%102 = call double @llvm.fmuladd.f64(double %101, double 1.000000e+06, double 5.000000e-01)
%103 = call i64 @floor(double %102)
%104 = trunc i64 %103 to i32
%105 = call i32 @uint_char(i32 %104, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 59))
%106 = load double, double* %13
%107 = call double @llvm.fabs.f64(double %106)
%108 = call double @llvm.fmuladd.f64(double %107, double 1.000000e+06, double 5.000000e-01)
%109 = call i64 @floor(double %108)
%110 = trunc i64 %109 to i32
%111 = call i32 @int_char(i32 %110, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 63))
%112 = load double, double* %16
%113 = call double @llvm.fabs.f64(double %112)
%114 = call double @llvm.fmuladd.f64(double %113, double 1.000000e+06, double 5.000000e-01)
%115 = call i64 @floor(double %114)
%116 = trunc i64 %115 to i32
%117 = call i32 @int_char(i32 %116, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 67))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 71)
%118 = load double, double* %13
%119 = fcmp olt double %118, 0.000000e+00
br i1 %119, label %120, label %125
120: ; preds = %100
%121 = load i8, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 71)
%122 = zext i8 %121 to i32
%123 = or i32 %122, 128
%124 = trunc i32 %123 to i8
store i8 %124, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 71)
br label %125
125: ; preds = %120, %100
%126 = load double, double* %16
%127 = fcmp ogt double %126, 0.000000e+00
br i1 %127, label %128, label %133
128: ; preds = %125
%129 = load i8, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 71)
%130 = zext i8 %129 to i32
%131 = or i32 %130, 64
%132 = trunc i32 %131 to i8
store i8 %132, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 71)
br label %133
133: ; preds = %128, %125
%134 = load double, double* %18
%135 = call double @llvm.fmuladd.f64(double %134, double 1.000000e+06, double 5.000000e-01)
%136 = call i64 @floor(double %135)
%137 = trunc i64 %136 to i32
%138 = call i32 @int_char(i32 %137, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 72))
%139 = load double, double* %17
%140 = call double @llvm.fmuladd.f64(double %139, double 1.000000e+06, double 5.000000e-01)
%141 = call i64 @floor(double %140)
%142 = trunc i64 %141 to i32
%143 = call i32 @int_char(i32 %142, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 76))
%144 = load double, double* %19
%145 = call double @llvm.fmuladd.f64(double %144, double 1.000000e+06, double 5.000000e-01)
%146 = call i64 @floor(double %145)
%147 = trunc i64 %146 to i32
%148 = call i32 @int_char(i32 %147, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 80))
ret i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 0)
}

LLVM IR (-O2):
@sec3_rot_ll.gds = internal global [84 x i8] zeroinitializer
define i8* @sec3_rot_ll(i32 %0, double %1, double %2, i32 %3, double %4, double %5, double %6, double %7, double %8, i8** %9) {
%11 = tail call i32 @uint_char(i32 84, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 0))
store i8 3, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 4)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 5)
%12 = mul nsw i32 %3, %0
%13 = tail call i32 @uint_char(i32 %12, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 6))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 10)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 11)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 12)
store i8 1, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 13)
%14 = icmp eq i8** %9, null
br i1 %14, label %15, label %19
15: ; preds = %10
store i8 6, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 14)
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 15)
%16 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 16))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 20)
%17 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 21))
store i8 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 25)
%18 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 26))
br label %52
19: ; preds = %10
%20 = tail call i8* @code_table_3_2_location(i8** %9)
%21 = load i8, i8* %20
store i8 %21, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 14)
%22 = getelementptr inbounds i8, i8* %20, i64 1
%23 = load i8, i8* %22
store i8 %23, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 15)
%24 = getelementptr inbounds i8, i8* %20, i64 2
%25 = load i8, i8* %24
store i8 %25, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 16)
%26 = getelementptr inbounds i8, i8* %20, i64 3
%27 = load i8, i8* %26
store i8 %27, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 17)
%28 = getelementptr inbounds i8, i8* %20, i64 4
%29 = load i8, i8* %28
store i8 %29, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 18)
%30 = getelementptr inbounds i8, i8* %20, i64 5
%31 = load i8, i8* %30
store i8 %31, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 19)
%32 = getelementptr inbounds i8, i8* %20, i64 6
%33 = load i8, i8* %32
store i8 %33, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 20)
%34 = getelementptr inbounds i8, i8* %20, i64 7
%35 = load i8, i8* %34
store i8 %35, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 21)
%36 = getelementptr inbounds i8, i8* %20, i64 8
%37 = load i8, i8* %36
store i8 %37, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 22)
%38 = getelementptr inbounds i8, i8* %20, i64 9
%39 = load i8, i8* %38
store i8 %39, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 23)
%40 = getelementptr inbounds i8, i8* %20, i64 10
%41 = load i8, i8* %40
store i8 %41, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 24)
%42 = getelementptr inbounds i8, i8* %20, i64 11
%43 = load i8, i8* %42
store i8 %43, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 25)
%44 = getelementptr inbounds i8, i8* %20, i64 12
%45 = load i8, i8* %44
store i8 %45, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 26)
%46 = getelementptr inbounds i8, i8* %20, i64 13
%47 = load i8, i8* %46
store i8 %47, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 27)
%48 = getelementptr inbounds i8, i8* %20, i64 14
%49 = load i8, i8* %48
store i8 %49, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 28)
%50 = getelementptr inbounds i8, i8* %20, i64 15
%51 = load i8, i8* %50
store i8 %51, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 29)
br label %52
52: ; preds = %19, %15
%53 = tail call i32 @uint_char(i32 %0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 30))
%54 = tail call i32 @uint_char(i32 %3, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 34))
%55 = tail call i32 @uint_char(i32 0, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 38))
%56 = tail call i32 @uint_char(i32 -1, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 42))
%57 = tail call double @llvm.fmuladd.f64(double %4, double 1.000000e+06, double 5.000000e-01)
%58 = tail call i64 @floor(double %57)
%59 = trunc i64 %58 to i32
%60 = tail call i32 @int_char(i32 %59, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 46))
%61 = tail call double @llvm.fmuladd.f64(double %1, double 1.000000e+06, double 5.000000e-01)
%62 = tail call i64 @floor(double %61)
%63 = trunc i64 %62 to i32
%64 = tail call i32 @uint_char(i32 %63, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 50))
store i8 48, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 54)
%65 = add nsw i32 %3, -1
%66 = sitofp i32 %65 to double
%67 = tail call double @llvm.fmuladd.f64(double %66, double %5, double %4)
%68 = tail call double @llvm.fmuladd.f64(double %67, double 1.000000e+06, double 5.000000e-01)
%69 = tail call i64 @floor(double %68)
%70 = trunc i64 %69 to i32
%71 = tail call i32 @int_char(i32 %70, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 55))
%72 = add nsw i32 %0, -1
%73 = sitofp i32 %72 to double
%74 = tail call double @llvm.fmuladd.f64(double %73, double %2, double %1)
%75 = fcmp ult double %74, 3.600000e+02
%76 = fadd double %74, -3.600000e+02
%77 = select i1 %75, double %74, double %76
%78 = fcmp olt double %77, 0.000000e+00
%79 = fadd double %77, 3.600000e+02
%80 = select i1 %78, double %79, double %77
%81 = tail call double @llvm.fmuladd.f64(double %80, double 1.000000e+06, double 5.000000e-01)
%82 = tail call i64 @floor(double %81)
%83 = trunc i64 %82 to i32
%84 = tail call i32 @uint_char(i32 %83, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 59))
%85 = tail call double @llvm.fabs.f64(double %2)
%86 = tail call double @llvm.fmuladd.f64(double %85, double 1.000000e+06, double 5.000000e-01)
%87 = tail call i64 @floor(double %86)
%88 = trunc i64 %87 to i32
%89 = tail call i32 @int_char(i32 %88, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 63))
%90 = tail call double @llvm.fabs.f64(double %5)
%91 = tail call double @llvm.fmuladd.f64(double %90, double 1.000000e+06, double 5.000000e-01)
%92 = tail call i64 @floor(double %91)
%93 = trunc i64 %92 to i32
%94 = tail call i32 @int_char(i32 %93, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 67))
%95 = fcmp olt double %2, 0.000000e+00
%96 = select i1 %95, i8 -128, i8 0
%97 = fcmp ogt double %5, 0.000000e+00
%98 = or i8 %96, 64
%99 = select i1 %97, i8 %98, i8 %96
store i8 %99, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 71)
%100 = tail call double @llvm.fmuladd.f64(double %7, double 1.000000e+06, double 5.000000e-01)
%101 = tail call i64 @floor(double %100)
%102 = trunc i64 %101 to i32
%103 = tail call i32 @int_char(i32 %102, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 72))
%104 = tail call double @llvm.fmuladd.f64(double %6, double 1.000000e+06, double 5.000000e-01)
%105 = tail call i64 @floor(double %104)
%106 = trunc i64 %105 to i32
%107 = tail call i32 @int_char(i32 %106, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 76))
%108 = tail call double @llvm.fmuladd.f64(double %8, double 1.000000e+06, double 5.000000e-01)
%109 = tail call i64 @floor(double %108)
%110 = trunc i64 %109 to i32
%111 = tail call i32 @int_char(i32 %110, i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 80))
ret i8* getelementptr inbounds ([84 x i8], [84 x i8]* @sec3_rot_ll.gds, i64 0, i64 0)
}