void showroundtext(str) char *str;
{
  int i, inc;
  inc = 3600 / strlen(str);
  for (i = 0; i < 3600; i += inc) {
    pushmatrix();
    rotate(i, 'y');
    translate(0.0, 0.0, 10.0);
    move(0.0, 0.0, 0.0);
    hdrawchar(*str++);
    popmatrix();
  }
}


x86 assembly (clang, -O0):
<showroundtext>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
mov    $0xe10,%eax
xor    %edx,%edx
div    %rcx
mov    %eax,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xe10,-0xc(%rbp)
jge    1212 <showroundtext+0xa2>
mov    $0x0,%al
call   1080 <pushmatrix@plt>
mov    -0xc(%rbp),%edi
mov    $0x79,%esi
mov    $0x0,%al
call   1060 <rotate@plt>
xorps  %xmm1,%xmm1
movsd  0xe36(%rip),%xmm2
movaps %xmm1,%xmm0
mov    $0x3,%al
call   1070 <translate@plt>
xorps  %xmm2,%xmm2
movaps %xmm2,%xmm0
movaps %xmm2,%xmm1
mov    $0x3,%al
call   1090 <move@plt>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
mov    $0x0,%al
call   1040 <hdrawchar@plt>
mov    $0x0,%al
call   1030 <popmatrix@plt>
mov    -0x10(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    119c <showroundtext+0x2c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showroundtext>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
call   1050 <strlen@plt>
cmp    $0xe10,%rax
ja     1195 <showroundtext+0x25>
mov    %rax,%rcx
mov    $0xe10,%eax
xor    %edx,%edx
div    %ecx
mov    %eax,%r14d
jmp    1198 <showroundtext+0x28>
xor    %r14d,%r14d
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1080 <pushmatrix@plt>
mov    %ebp,%edi
mov    $0x79,%esi
xor    %eax,%eax
call   1060 <rotate@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
movsd  0xe3d(%rip),%xmm2
mov    $0x3,%al
call   1070 <translate@plt>
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x3,%al
call   1090 <move@plt>
movsbl (%rbx),%edi
add    $0x1,%rbx
xor    %eax,%eax
call   1040 <hdrawchar@plt>
xor    %eax,%eax
call   1030 <popmatrix@plt>
add    %r14d,%ebp
cmp    $0xe10,%ebp
jb     11a0 <showroundtext+0x30>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @showroundtext(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i64 @strlen(i8* %5)
%7 = udiv i64 3600, %6
%8 = trunc i64 %7 to i32
store i32 %8, i32* %4
store i32 0, i32* %3
br label %9
9: ; preds = %24, %1
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 3600
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = call i32 (...) @pushmatrix()
%14 = load i32, i32* %3
%15 = call i32 (i32, i32, ...) bitcast (i32 (...)* @rotate to i32 (i32, i32, ...)*)(i32 %14, i32 121)
%16 = call i32 (double, double, double, ...) bitcast (i32 (...)* @translate to i32 (double, double, double, ...)*)(double 0.000000e+00, double 0.000000e+00, double 1.000000e+01)
%17 = call i32 (double, double, double, ...) bitcast (i32 (...)* @move to i32 (double, double, double, ...)*)(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %2
%20 = load i8, i8* %18
%21 = sext i8 %20 to i32
%22 = call i32 (i32, ...) bitcast (i32 (...)* @hdrawchar to i32 (i32, ...)*)(i32 %21)
%23 = call i32 (...) @popmatrix()
br label %24
24: ; preds = %12
%25 = load i32, i32* %4
%26 = load i32, i32* %3
%27 = add nsw i32 %26, %25
store i32 %27, i32* %3
br label %9
28: ; preds = %9
ret void
}

LLVM IR (-O2):
define void @showroundtext(i8* nocapture %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = udiv i64 3600, %2
%4 = trunc i64 %3 to i32
br label %5
5: ; preds = %1, %5
%6 = phi i8* [ %0, %1 ], [ %12, %5 ]
%7 = phi i32 [ 0, %1 ], [ %17, %5 ]
%8 = tail call i32 (...) @pushmatrix()
%9 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @rotate to i32 (i32, i32, ...)*)(i32 %7, i32 121)
%10 = tail call i32 (double, double, double, ...) bitcast (i32 (...)* @translate to i32 (double, double, double, ...)*)(double 0.000000e+00, double 0.000000e+00, double 1.000000e+01)
%11 = tail call i32 (double, double, double, ...) bitcast (i32 (...)* @move to i32 (double, double, double, ...)*)(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00)
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %6
%14 = sext i8 %13 to i32
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @hdrawchar to i32 (i32, ...)*)(i32 %14)
%16 = tail call i32 (...) @popmatrix()
%17 = add nuw nsw i32 %7, %4
%18 = icmp ult i32 %17, 3600
br i1 %18, label %5, label %19
19: ; preds = %5
ret void
}