int nsymbl(x, y, h, i, a, n)
double x, y, h, a;
int n;
char i[255];
{
  int ix, iy;
  char text[255];
  ix = (int)(29.0 * x) + 5;
  iy = (int)(340.0 - (29.0 * y));
  if (n < 0) {
    sprintf((char *)text, "%ld", i);
    drawString(ix, iy, text);
  } else {
    strcpy((char *)text, (char *)i);
    drawString(ix, iy, text);
  }
  return (1);
}


x86 assembly (clang, -O0):
<nsymbl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
mov    %esi,-0x2c(%rbp)
movsd  0xeb2(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%eax
add    $0x5,%eax
mov    %eax,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe86(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe82(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jge    11cd <nsymbl+0x9d>
lea    -0x140(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xe6b(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
lea    -0x140(%rbp),%rdx
mov    $0x0,%al
call   1040 <drawString@plt>
jmp    11f1 <nsymbl+0xc1>
lea    -0x140(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x30(%rbp),%edi
mov    -0x34(%rbp),%esi
lea    -0x140(%rbp),%rdx
mov    $0x0,%al
call   1040 <drawString@plt>
mov    $0x1,%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nsymbl>:
sub    $0x118,%rsp
mov    %rdi,%rdx
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x8(%rsp)
test   %esi,%esi
js     1158 <nsymbl+0x28>
lea    0x10(%rsp),%rdi
mov    %rdx,%rsi
call   1030 <strcpy@plt>
jmp    116b <nsymbl+0x3b>
lea    0xeb9(%rip),%rsi
lea    0x10(%rsp),%rdi
xor    %eax,%eax
call   1050 <sprintf@plt>
movsd  (%rsp),%xmm0
mulsd  0xe88(%rip),%xmm0
addsd  0xe88(%rip),%xmm0
cvttsd2si %xmm0,%esi
movsd  0x8(%rsp),%xmm0
mulsd  0xe7e(%rip),%xmm0
cvttsd2si %xmm0,%edi
add    $0x5,%edi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <drawString@plt>
mov    $0x1,%eax
add    $0x118,%rsp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%ld\00"
define i32 @nsymbl(double %0, double %1, double %2, i8* %3, double %4, i32 %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i8*
%11 = alloca double
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [255 x i8]
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store i8* %3, i8** %10
store double %4, double* %11
store i32 %5, i32* %12
%16 = load double, double* %7
%17 = fmul double 2.900000e+01, %16
%18 = fptosi double %17 to i32
%19 = add nsw i32 %18, 5
store i32 %19, i32* %13
%20 = load double, double* %8
%21 = call double @llvm.fmuladd.f64(double -2.900000e+01, double %20, double 3.400000e+02)
%22 = fptosi double %21 to i32
store i32 %22, i32* %14
%23 = load i32, i32* %12
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %6
%26 = getelementptr inbounds [255 x i8], [255 x i8]* %15, i64 0, i64 0
%27 = load i8*, i8** %10
%28 = call i32 (i8*, i8*, ...) @sprintf(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %27)
%29 = load i32, i32* %13
%30 = load i32, i32* %14
%31 = getelementptr inbounds [255 x i8], [255 x i8]* %15, i64 0, i64 0
%32 = call i32 (i32, i32, i8*, ...) bitcast (i32 (...)* @drawString to i32 (i32, i32, i8*, ...)*)(i32 %29, i32 %30, i8* %31)
br label %41
33: ; preds = %6
%34 = getelementptr inbounds [255 x i8], [255 x i8]* %15, i64 0, i64 0
%35 = load i8*, i8** %10
%36 = call i8* @strcpy(i8* %34, i8* %35)
%37 = load i32, i32* %13
%38 = load i32, i32* %14
%39 = getelementptr inbounds [255 x i8], [255 x i8]* %15, i64 0, i64 0
%40 = call i32 (i32, i32, i8*, ...) bitcast (i32 (...)* @drawString to i32 (i32, i32, i8*, ...)*)(i32 %37, i32 %38, i8* %39)
br label %41
41: ; preds = %33, %25
ret i32 1
}

LLVM IR (-O2):
@.str = [4 x i8] c"%ld\00"
define i32 @nsymbl(double %0, double %1, double %2, i8* %3, double %4, i32 %5) {
%7 = alloca [255 x i8]
%8 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%9 = icmp slt i32 %5, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 (i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
br label %14
12: ; preds = %6
%13 = call i8* @strcpy(i8* %8, i8* dereferenceable(1) %3)
br label %14
14: ; preds = %12, %10
%15 = tail call double @llvm.fmuladd.f64(double %1, double -2.900000e+01, double 3.400000e+02)
%16 = fptosi double %15 to i32
%17 = fmul double %0, 2.900000e+01
%18 = fptosi double %17 to i32
%19 = add nsw i32 %18, 5
%20 = call i32 (i32, i32, i8*, ...) bitcast (i32 (...)* @drawString to i32 (i32, i32, i8*, ...)*)(i32 %19, i32 %16, i8* %8)
ret i32 1
}