#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*/ getushort(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char);
void sbitLineMetrics(FILE *ttf) {
  printf("\t  ascender: %d\n", (signed char)getc(ttf));
  printf("\t  descender: %d\n", (signed char)getc(ttf));
  printf("\t  widthMax: %d\n", getc(ttf));
  printf("\t  caretSlopeNumerator: %d\n", (signed char)getc(ttf));
  printf("\t  caretSlopeDenominator: %d\n", (signed char)getc(ttf));
  printf("\t  caretOffset: %d\n", (signed char)getc(ttf));
  printf("\t  minOriginSB: %d\n", (signed char)getc(ttf));
  printf("\t  minAdvanceSB: %d\n", (signed char)getc(ttf));
  printf("\t  maxBeforeBL: %d\n", (signed char)getc(ttf));
  printf("\t  maxAfterBL: %d\n", (signed char)getc(ttf));
  getushort(ttf);
}


x86 assembly (clang, -O0):
<sbitLineMetrics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xeb4(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xead(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xea7(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xea0(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xea4(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xeaa(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xea6(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xea2(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xe9f(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1050 <getc@plt>
lea    0xe9b(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <getushort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sbitLineMetrics>:
push   %rbx
mov    %rdi,%rbx
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1050 <getc@plt>
movsbl %al,%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <getushort@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"\09 ascender: %d\0A\00"
@.str.1 = [18 x i8] c"\09 descender: %d\0A\00"
@.str.2 = [17 x i8] c"\09 widthMax: %d\0A\00"
@.str.3 = [28 x i8] c"\09 caretSlopeNumerator: %d\0A\00"
@.str.4 = [30 x i8] c"\09 caretSlopeDenominator: %d\0A\00"
@.str.5 = [20 x i8] c"\09 caretOffset: %d\0A\00"
@.str.6 = [20 x i8] c"\09 minOriginSB: %d\0A\00"
@.str.7 = [21 x i8] c"\09 minAdvanceSB: %d\0A\00"
@.str.8 = [20 x i8] c"\09 maxBeforeBL: %d\0A\00"
@.str.9 = [19 x i8] c"\09 maxAfterBL: %d\0A\00"
define void @sbitLineMetrics(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @getc(i32* %3)
%5 = trunc i32 %4 to i8
%6 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8 signext %5)
%7 = load i32*, i32** %2
%8 = call i32 @getc(i32* %7)
%9 = trunc i32 %8 to i8
%10 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8 signext %9)
%11 = load i32*, i32** %2
%12 = call i32 @getc(i32* %11)
%13 = trunc i32 %12 to i8
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8 signext %13)
%15 = load i32*, i32** %2
%16 = call i32 @getc(i32* %15)
%17 = trunc i32 %16 to i8
%18 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8 signext %17)
%19 = load i32*, i32** %2
%20 = call i32 @getc(i32* %19)
%21 = trunc i32 %20 to i8
%22 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8 signext %21)
%23 = load i32*, i32** %2
%24 = call i32 @getc(i32* %23)
%25 = trunc i32 %24 to i8
%26 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8 signext %25)
%27 = load i32*, i32** %2
%28 = call i32 @getc(i32* %27)
%29 = trunc i32 %28 to i8
%30 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8 signext %29)
%31 = load i32*, i32** %2
%32 = call i32 @getc(i32* %31)
%33 = trunc i32 %32 to i8
%34 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8 signext %33)
%35 = load i32*, i32** %2
%36 = call i32 @getc(i32* %35)
%37 = trunc i32 %36 to i8
%38 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8 signext %37)
%39 = load i32*, i32** %2
%40 = call i32 @getc(i32* %39)
%41 = trunc i32 %40 to i8
%42 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8 signext %41)
%43 = load i32*, i32** %2
%44 = call i32 @getushort(i32* %43)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"\09 ascender: %d\0A\00"
@.str.1 = [18 x i8] c"\09 descender: %d\0A\00"
@.str.2 = [17 x i8] c"\09 widthMax: %d\0A\00"
@.str.3 = [28 x i8] c"\09 caretSlopeNumerator: %d\0A\00"
@.str.4 = [30 x i8] c"\09 caretSlopeDenominator: %d\0A\00"
@.str.5 = [20 x i8] c"\09 caretOffset: %d\0A\00"
@.str.6 = [20 x i8] c"\09 minOriginSB: %d\0A\00"
@.str.7 = [21 x i8] c"\09 minAdvanceSB: %d\0A\00"
@.str.8 = [20 x i8] c"\09 maxBeforeBL: %d\0A\00"
@.str.9 = [19 x i8] c"\09 maxAfterBL: %d\0A\00"
define void @sbitLineMetrics(i32* %0) {
%2 = tail call i32 @getc(i32* %0)
%3 = trunc i32 %2 to i8
%4 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8 signext %3)
%5 = tail call i32 @getc(i32* %0)
%6 = trunc i32 %5 to i8
%7 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i8 signext %6)
%8 = tail call i32 @getc(i32* %0)
%9 = trunc i32 %8 to i8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8 signext %9)
%11 = tail call i32 @getc(i32* %0)
%12 = trunc i32 %11 to i8
%13 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8 signext %12)
%14 = tail call i32 @getc(i32* %0)
%15 = trunc i32 %14 to i8
%16 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8 signext %15)
%17 = tail call i32 @getc(i32* %0)
%18 = trunc i32 %17 to i8
%19 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8 signext %18)
%20 = tail call i32 @getc(i32* %0)
%21 = trunc i32 %20 to i8
%22 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8 signext %21)
%23 = tail call i32 @getc(i32* %0)
%24 = trunc i32 %23 to i8
%25 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8 signext %24)
%26 = tail call i32 @getc(i32* %0)
%27 = trunc i32 %26 to i8
%28 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8 signext %27)
%29 = tail call i32 @getc(i32* %0)
%30 = trunc i32 %29 to i8
%31 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i8 signext %30)
%32 = tail call i32 @getushort(i32* %0)
ret void
}