#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*/ GLUT_STROKE_ROMAN;
int /*<<< orphan*/ glPopMatrix();
int /*<<< orphan*/ glPushMatrix();
int /*<<< orphan*/ glScalef(float, float, int);
int /*<<< orphan*/ glTranslatef(int, int, int);
int /*<<< orphan*/ glutStrokeCharacter(int /*<<< orphan*/, char);
void drawStrokeText(char *string, int x, int y, int z) {
  char *c;
  glPushMatrix();
  glTranslatef(x, y + 8, z);
  glScalef(0.09f, -0.08f, z);
  for (c = string; *c != '\0'; c++) {
    glutStrokeCharacter(GLUT_STROKE_ROMAN, *c);
  }
  glPopMatrix();
}


x86 assembly (clang, -O0):
<drawStrokeText>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    $0x0,%al
call   1060 <glPushMatrix@plt>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
add    $0x8,%esi
mov    -0x14(%rbp),%edx
call   1070 <glTranslatef@plt>
mov    -0x14(%rbp),%edi
movss  0xe78(%rip),%xmm0
movss  0xe74(%rip),%xmm1
call   1050 <glScalef@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11d3 <drawStrokeText+0x83>
mov    0x2e34(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
movsbl (%rax),%esi
call   1030 <glutStrokeCharacter@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    119d <drawStrokeText+0x4d>
mov    $0x0,%al
call   1040 <glPopMatrix@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<drawStrokeText>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%r15d
mov    %rdi,%rbx
xor    %eax,%eax
call   1060 <glPushMatrix@plt>
add    $0x8,%ebp
mov    %r15d,%edi
mov    %ebp,%esi
mov    %r14d,%edx
call   1070 <glTranslatef@plt>
movss  0xe7f(%rip),%xmm0
movss  0xe7b(%rip),%xmm1
mov    %r14d,%edi
call   1050 <glScalef@plt>
mov    (%rbx),%al
test   %al,%al
je     11c6 <drawStrokeText+0x76>
add    $0x1,%rbx
mov    0x2e46(%rip),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%rbp),%edi
movsbl %al,%esi
call   1030 <glutStrokeCharacter@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    11b0 <drawStrokeText+0x60>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <glPopMatrix@plt>

LLVM IR (-O0):
@GLUT_STROKE_ROMAN = global i32 0
define void @drawStrokeText(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = call i32 (...) @glPushMatrix()
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = add nsw i32 %12, 8
%14 = load i32, i32* %8
%15 = call i32 @glTranslatef(i32 %11, i32 %13, i32 %14)
%16 = load i32, i32* %8
%17 = call i32 @glScalef(float 0x3FB70A3D80000000, float 0xBFB47AE140000000, i32 %16)
%18 = load i8*, i8** %5
store i8* %18, i8** %9
br label %19
19: ; preds = %29, %4
%20 = load i8*, i8** %9
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %32
24: ; preds = %19
%25 = load i32, i32* @GLUT_STROKE_ROMAN
%26 = load i8*, i8** %9
%27 = load i8, i8* %26
%28 = call i32 @glutStrokeCharacter(i32 %25, i8 signext %27)
br label %29
29: ; preds = %24
%30 = load i8*, i8** %9
%31 = getelementptr inbounds i8, i8* %30, i32 1
store i8* %31, i8** %9
br label %19
32: ; preds = %19
%33 = call i32 (...) @glPopMatrix()
ret void
}

LLVM IR (-O2):
@GLUT_STROKE_ROMAN = global i32 0
define void @drawStrokeText(i8* nocapture %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 (...) @glPushMatrix()
%6 = add nsw i32 %2, 8
%7 = tail call i32 @glTranslatef(i32 %1, i32 %6, i32 %3)
%8 = tail call i32 @glScalef(float 0x3FB70A3D80000000, float 0xBFB47AE140000000, i32 %3)
%9 = load i8, i8* %0
%10 = icmp eq i8 %9, 0
br i1 %10, label %19, label %11
11: ; preds = %4, %11
%12 = phi i8 [ %17, %11 ], [ %9, %4 ]
%13 = phi i8* [ %16, %11 ], [ %0, %4 ]
%14 = load i32, i32* @GLUT_STROKE_ROMAN
%15 = tail call i32 @glutStrokeCharacter(i32 %14, i8 signext %12)
%16 = getelementptr inbounds i8, i8* %13, i64 1
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 0
br i1 %18, label %19, label %11
19: ; preds = %11, %4
%20 = tail call i32 (...) @glPopMatrix()
ret void
}