#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 Getc();
int /*<<< orphan*/ hash2();
int /*<<< orphan*/ hash_algs(int);
int /*<<< orphan*/ key_id();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ pub_algs(int);
int /*<<< orphan*/ signature_multi_precision_integer(int, int);
int /*<<< orphan*/ signature_type(int);
int /*<<< orphan*/ time4(char *);
void old_Signature_Packet(int len) {
  int pub;
  printf("\tHash material(%d bytes):\n", Getc());
  printf("\t");
  signature_type(Getc());
  printf("\t");
  time4("Creation time");
  key_id();
  pub = Getc();
  pub_algs(pub);
  hash_algs(Getc());
  hash2();
  signature_multi_precision_integer(pub, len - 19);
}


x86 assembly (clang, -O0):
<old_Signature_Packet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1080 <Getc@plt>
mov    %eax,%esi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <Getc@plt>
mov    %eax,%edi
call   10a0 <signature_type@plt>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe3a(%rip),%rdi
call   1030 <time4@plt>
mov    $0x0,%al
call   10b0 <key_id@plt>
mov    $0x0,%al
call   1080 <Getc@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1090 <pub_algs@plt>
mov    $0x0,%al
call   1080 <Getc@plt>
mov    %eax,%edi
call   1070 <hash_algs@plt>
mov    $0x0,%al
call   1050 <hash2@plt>
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
sub    $0x13,%esi
call   1060 <signature_multi_precision_integer@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<old_Signature_Packet>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %eax,%eax
call   1090 <Getc@plt>
lea    0xe4d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
call   1090 <Getc@plt>
mov    %eax,%edi
call   10b0 <signature_type@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
lea    0xe36(%rip),%rdi
call   1030 <time4@plt>
xor    %eax,%eax
call   10c0 <key_id@plt>
xor    %eax,%eax
call   1090 <Getc@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   10a0 <pub_algs@plt>
xor    %eax,%eax
call   1090 <Getc@plt>
mov    %eax,%edi
call   1080 <hash_algs@plt>
xor    %eax,%eax
call   1060 <hash2@plt>
add    $0xffffffed,%ebx
mov    %ebp,%edi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <signature_multi_precision_integer@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"\09Hash material(%d bytes):\0A\00"
@.str.1 = [2 x i8] c"\09\00"
@.str.2 = [14 x i8] c"Creation time\00"
define void @old_Signature_Packet(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 (...) @Getc()
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 (...) @Getc()
%8 = call i32 @signature_type(i32 %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @time4(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (...) @key_id()
%12 = call i32 (...) @Getc()
store i32 %12, i32* %3
%13 = load i32, i32* %3
%14 = call i32 @pub_algs(i32 %13)
%15 = call i32 (...) @Getc()
%16 = call i32 @hash_algs(i32 %15)
%17 = call i32 (...) @hash2()
%18 = load i32, i32* %3
%19 = load i32, i32* %2
%20 = sub nsw i32 %19, 19
%21 = call i32 @signature_multi_precision_integer(i32 %18, i32 %20)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"\09Hash material(%d bytes):\0A\00"
@.str.2 = [14 x i8] c"Creation time\00"
define void @old_Signature_Packet(i32 %0) {
%2 = tail call i32 (...) @Getc()
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @putchar(i32 9)
%5 = tail call i32 (...) @Getc()
%6 = tail call i32 @signature_type(i32 %5)
%7 = tail call i32 @putchar(i32 9)
%8 = tail call i32 @time4(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 (...) @key_id()
%10 = tail call i32 (...) @Getc()
%11 = tail call i32 @pub_algs(i32 %10)
%12 = tail call i32 (...) @Getc()
%13 = tail call i32 @hash_algs(i32 %12)
%14 = tail call i32 (...) @hash2()
%15 = add nsw i32 %0, -19
%16 = tail call i32 @signature_multi_precision_integer(i32 %10, i32 %15)
ret void
}