#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 **);
int fabs(double);
scalar_t__ floor(int);
int /*<<< orphan*/ int_char(int, unsigned char *);
int /*<<< orphan*/ uint_char(int, unsigned char *);
unsigned char *sec3_polar_stereo(double lov, double lad, int proj, int nx,
                                 double x0, double dx, int ny, double y0,
                                 double dy, unsigned char **old_sec) {
  static unsigned char gds[65];
  int i;
  unsigned char *p;
  if (x0 < 0)
    x0 += 360.0;
  uint_char(65, gds);
  gds[4] = 3;
  gds[5] = 0;
  uint_char(nx * ny, gds + 6);
  gds[10] = 0;
  gds[11] = 0;
  gds[12] = 0;
  gds[13] = 20;
  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);
  int_char((int)floor(y0 * 1.0e6 + 0.5), gds + 38);
  uint_char((int)floor(x0 * 1.0e6 + 0.5), gds + 42);
  gds[46] = 32 + 16;
  int_char((int)floor(lad * 1.0e6 + 0.5), gds + 47);
  uint_char((int)floor(lov * 1.0e6 + 0.5), gds + 51);
  int_char((int)floor(fabs(dx) * 1000 + 0.5), gds + 55);
  int_char((int)floor(fabs(dy) * 1000 + 0.5), gds + 59);
  gds[63] = proj;
  gds[64] = 0;
  if (dx < 0.0)
    gds[64] |= 128;
  if (dy > 0.0)
    gds[64] |= 64;
  return gds;
}


x86 assembly (clang, -O0):
<sec3_polar_stereo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
mov    %esi,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %edx,-0x2c(%rbp)
movsd  %xmm4,-0x38(%rbp)
movsd  %xmm5,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    11a3 <sec3_polar_stereo+0x53>
movsd  0xe67(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    $0x41,%edi
lea    0x2eb1(%rip),%rsi
call   1030 <uint_char@plt>
movb   $0x3,0x2ea9(%rip)
movb   $0x0,0x2ea3(%rip)
mov    -0x18(%rbp),%edi
imul   -0x2c(%rbp),%edi
lea    0x2e90(%rip),%rsi
add    $0x6,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e8a(%rip)
movb   $0x0,0x2e84(%rip)
movb   $0x0,0x2e7e(%rip)
movb   $0x14,0x2e78(%rip)
cmpq   $0x0,-0x48(%rbp)
jne    1257 <sec3_polar_stereo+0x107>
movb   $0x6,0x2e67(%rip)
movb   $0x0,0x2e61(%rip)
xor    %edi,%edi
lea    0x2e49(%rip),%rsi
add    $0x10,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e4d(%rip)
xor    %edi,%edi
lea    0x2e30(%rip),%rsi
add    $0x15,%rsi
call   1030 <uint_char@plt>
movb   $0x0,0x2e39(%rip)
xor    %edi,%edi
lea    0x2e17(%rip),%rsi
add    $0x1a,%rsi
call   1030 <uint_char@plt>
jmp    12a6 <sec3_polar_stereo+0x156>
mov    -0x48(%rbp),%rdi
call   1040 <code_table_3_2_location@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x4c(%rbp)
cmpl   $0x10,-0x4c(%rbp)
jge    12a1 <sec3_polar_stereo+0x151>
mov    -0x58(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x4c(%rbp),%eax
add    $0xe,%eax
movslq %eax,%rcx
lea    0x2dd0(%rip),%rax
mov    %dl,(%rax,%rcx,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    126b <sec3_polar_stereo+0x11b>
jmp    12a6 <sec3_polar_stereo+0x156>
mov    -0x18(%rbp),%edi
lea    0x2db0(%rip),%rsi
add    $0x1e,%rsi
call   1030 <uint_char@plt>
mov    -0x2c(%rbp),%edi
lea    0x2d9d(%rip),%rsi
add    $0x22,%rsi
call   1030 <uint_char@plt>
movsd  -0x38(%rbp),%xmm0
movsd  0xd37(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd23(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
mov    %eax,%edi
lea    0x2d65(%rip),%rsi
add    $0x26,%rsi
call   1060 <int_char@plt>
movsd  -0x20(%rbp),%xmm0
movsd  0xcff(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xceb(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
mov    %eax,%edi
lea    0x2d2d(%rip),%rsi
add    $0x2a,%rsi
call   1030 <uint_char@plt>
movb   $0x30,0x2d4b(%rip)
movsd  -0x10(%rbp),%xmm0
movsd  0xcc0(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xcac(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
mov    %eax,%edi
lea    0x2cee(%rip),%rsi
add    $0x2f,%rsi
call   1060 <int_char@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xc88(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc74(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
mov    %eax,%edi
lea    0x2cb6(%rip),%rsi
add    $0x33,%rsi
call   1030 <uint_char@plt>
movsd  -0x28(%rbp),%xmm0
call   1050 <fabs@plt>
imul   $0x3e8,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  0xc39(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
mov    %eax,%edi
lea    0x2c7b(%rip),%rsi
add    $0x37,%rsi
call   1060 <int_char@plt>
movsd  -0x40(%rbp),%xmm0
call   1050 <fabs@plt>
imul   $0x3e8,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  0xbfe(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
mov    %eax,%edi
lea    0x2c40(%rip),%rsi
add    $0x3b,%rsi
call   1060 <int_char@plt>
mov    -0x14(%rbp),%eax
mov    %al,0x2c6d(%rip)
movb   $0x0,0x2c67(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1459 <sec3_polar_stereo+0x309>
movzbl 0x2c52(%rip),%eax
or     $0x80,%eax
mov    %al,0x2c47(%rip)
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    147b <sec3_polar_stereo+0x32b>
movzbl 0x2c2e(%rip),%eax
or     $0x40,%eax
mov    %al,0x2c25(%rip)
lea    0x2bde(%rip),%rax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sec3_polar_stereo>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x40,%rsp
mov    %rcx,%rbp
movsd  %xmm5,0x8(%rsp)
movsd  %xmm4,0x28(%rsp)
mov    %edx,%r12d
movsd  %xmm3,(%rsp)
movaps %xmm2,0x10(%rsp)
mov    %esi,%ebx
mov    %edi,%r15d
movsd  %xmm1,0x30(%rsp)
movsd  %xmm0,0x38(%rsp)
lea    0x2ed0(%rip),%rsi
mov    $0x41,%edi
call   1030 <uint_char@plt>
movw   $0x3,0x2ec1(%rip)
mov    %r12d,%edi
imul   %ebx,%edi
lea    0x2eb6(%rip),%rsi
call   1030 <uint_char@plt>
movl   $0x14000000,0x2eab(%rip)
test   %rbp,%rbp
je     1261 <sec3_polar_stereo+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    12a2 <sec3_polar_stereo+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>
movsd  0xd56(%rip),%xmm0
movapd 0x10(%rsp),%xmm2
addsd  %xmm2,%xmm0
xorpd  %xmm1,%xmm1
movapd %xmm2,%xmm3
cmpltsd %xmm1,%xmm3
andpd  %xmm3,%xmm0
andnpd %xmm2,%xmm3
orpd   %xmm0,%xmm3
movapd %xmm3,0x10(%rsp)
lea    0x2da4(%rip),%rsi
mov    %ebx,%edi
call   1030 <uint_char@plt>
lea    0x2d78(%rip),%r14
lea    0x2d93(%rip),%rsi
mov    %r12d,%edi
call   1030 <uint_char@plt>
movsd  0x28(%rsp),%xmm0
mulsd  0xd03(%rip),%xmm0
addsd  0xd03(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
lea    0x2d69(%rip),%rsi
mov    %eax,%edi
call   1060 <int_char@plt>
movapd 0x10(%rsp),%xmm0
mulsd  0xcd6(%rip),%xmm0
addsd  0xcd6(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
lea    0x2d40(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movb   $0x30,0x2d36(%rip)
movsd  0x30(%rsp),%xmm0
mulsd  0xca2(%rip),%xmm0
addsd  0xca2(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
lea    0x2d11(%rip),%rsi
mov    %eax,%edi
call   1060 <int_char@plt>
movsd  0x38(%rsp),%xmm0
mulsd  0xc75(%rip),%xmm0
addsd  0xc75(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
lea    0x2ce8(%rip),%rsi
mov    %eax,%edi
call   1030 <uint_char@plt>
movsd  (%rsp),%xmm0
call   1050 <fabs@plt>
imul   $0x3e8,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0xc3f(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
lea    0x2cb6(%rip),%rsi
mov    %eax,%edi
call   1060 <int_char@plt>
movsd  0x8(%rsp),%xmm0
call   1050 <fabs@plt>
imul   $0x3e8,%eax,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0xc08(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   1070 <floor@plt>
lea    0x2c83(%rip),%rsi
mov    %eax,%edi
call   1060 <int_char@plt>
mov    %r15b,0x2c79(%rip)
xorpd  %xmm0,%xmm0
ucomisd (%rsp),%xmm0
seta   %al
shl    $0x7,%al
lea    0x40(%rax),%ecx
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
movzbl %al,%eax
movzbl %cl,%ecx
cmovbe %eax,%ecx
mov    %cl,0x2c4f(%rip)
mov    %r14,%rax
add    $0x40,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

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