#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *, int);
void readttfBigGlyphMetrics(FILE *ttf, char *indent) {
  printf("%sBitmap rows=%d\n", indent, getc(ttf));
  printf("%sBitmap columns=%d\n", indent, getc(ttf));
  printf("%shoriBearingX=%d\n", indent, (signed char)getc(ttf));
  printf("%shoriBearingY=%d\n", indent, (signed char)getc(ttf));
  printf("%shoriAdvance=%d\n", indent, getc(ttf));
  printf("%svertBearingX=%d\n", indent, (signed char)getc(ttf));
  printf("%svertBearingY=%d\n", indent, (signed char)getc(ttf));
  printf("%svertAdvance=%d\n", indent, getc(ttf));
}


x86 assembly (clang, -O0):
<readttfBigGlyphMetrics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x50(%rbp),%rsi
mov    %eax,%edx
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x40(%rbp),%rsi
movsbl %al,%edx
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x38(%rbp),%rsi
movsbl %al,%edx
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x28(%rbp),%rsi
movsbl %al,%edx
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x20(%rbp),%rsi
movsbl %al,%edx
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <getc@plt>
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readttfBigGlyphMetrics>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <getc@plt>
lea    0xeca(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
lea    0xec3(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
movsbl %al,%edx
lea    0xebc(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
movsbl %al,%edx
lea    0xeb5(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
lea    0xeb1(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
movsbl %al,%edx
lea    0xea7(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
movsbl %al,%edx
lea    0xea0(%rip),%rdi
mov    %r14,%rsi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <getc@plt>
lea    0xe9c(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%sBitmap rows=%d\0A\00"
@.str.1 = [21 x i8] c"%sBitmap columns=%d\0A\00"
@.str.2 = [19 x i8] c"%shoriBearingX=%d\0A\00"
@.str.3 = [19 x i8] c"%shoriBearingY=%d\0A\00"
@.str.4 = [18 x i8] c"%shoriAdvance=%d\0A\00"
@.str.5 = [19 x i8] c"%svertBearingX=%d\0A\00"
@.str.6 = [19 x i8] c"%svertBearingY=%d\0A\00"
@.str.7 = [18 x i8] c"%svertAdvance=%d\0A\00"
define void @readttfBigGlyphMetrics(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i32*, i32** %3
%7 = call i32 @getc(i32* %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %7)
%9 = load i8*, i8** %4
%10 = load i32*, i32** %3
%11 = call i32 @getc(i32* %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %9, i32 %11)
%13 = load i8*, i8** %4
%14 = load i32*, i32** %3
%15 = call i32 @getc(i32* %14)
%16 = trunc i32 %15 to i8
%17 = sext i8 %16 to i32
%18 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* %13, i32 %17)
%19 = load i8*, i8** %4
%20 = load i32*, i32** %3
%21 = call i32 @getc(i32* %20)
%22 = trunc i32 %21 to i8
%23 = sext i8 %22 to i32
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %19, i32 %23)
%25 = load i8*, i8** %4
%26 = load i32*, i32** %3
%27 = call i32 @getc(i32* %26)
%28 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %25, i32 %27)
%29 = load i8*, i8** %4
%30 = load i32*, i32** %3
%31 = call i32 @getc(i32* %30)
%32 = trunc i32 %31 to i8
%33 = sext i8 %32 to i32
%34 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %29, i32 %33)
%35 = load i8*, i8** %4
%36 = load i32*, i32** %3
%37 = call i32 @getc(i32* %36)
%38 = trunc i32 %37 to i8
%39 = sext i8 %38 to i32
%40 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %35, i32 %39)
%41 = load i8*, i8** %4
%42 = load i32*, i32** %3
%43 = call i32 @getc(i32* %42)
%44 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8* %41, i32 %43)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%sBitmap rows=%d\0A\00"
@.str.1 = [21 x i8] c"%sBitmap columns=%d\0A\00"
@.str.2 = [19 x i8] c"%shoriBearingX=%d\0A\00"
@.str.3 = [19 x i8] c"%shoriBearingY=%d\0A\00"
@.str.4 = [18 x i8] c"%shoriAdvance=%d\0A\00"
@.str.5 = [19 x i8] c"%svertBearingX=%d\0A\00"
@.str.6 = [19 x i8] c"%svertBearingY=%d\0A\00"
@.str.7 = [18 x i8] c"%svertAdvance=%d\0A\00"
define void @readttfBigGlyphMetrics(i32* nocapture %0, i8* %1) {
%3 = tail call i32 @getc(i32* %0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %3)
%5 = tail call i32 @getc(i32* %0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %1, i32 %5)
%7 = tail call i32 @getc(i32* %0)
%8 = shl i32 %7, 24
%9 = ashr exact i32 %8, 24
%10 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i8* %1, i32 %9)
%11 = tail call i32 @getc(i32* %0)
%12 = shl i32 %11, 24
%13 = ashr exact i32 %12, 24
%14 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %1, i32 %13)
%15 = tail call i32 @getc(i32* %0)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i8* %1, i32 %15)
%17 = tail call i32 @getc(i32* %0)
%18 = shl i32 %17, 24
%19 = ashr exact i32 %18, 24
%20 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %1, i32 %19)
%21 = tail call i32 @getc(i32* %0)
%22 = shl i32 %21, 24
%23 = ashr exact i32 %22, 24
%24 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i8* %1, i32 %23)
%25 = tail call i32 @getc(i32* %0)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i8* %1, i32 %25)
ret void
}