#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 */
scalar_t__ add_signature(unsigned char *, char *, unsigned char *, int);
scalar_t__ ccnl_ccnb_mkBlob(unsigned char *, int, int, char *, int);
int ccnl_ccnb_mkHeader(unsigned char *, int, int);
int ccnl_ccnb_mkStrBlob(unsigned char *, int, int, char *);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
int mkNewUNIXFaceRequest(unsigned char *out, char *path, char *flags,
                         char *private_key_path) {
  int len = 0, len1 = 0, len2 = 0, len3 = 0;
  unsigned char out1[8096];
  unsigned char contentobj[2000];
  unsigned char faceinst[2000];
  len = ccnl_ccnb_mkHeader(out, 26, 2);
  len += ccnl_ccnb_mkHeader(out + len, 14, 2);
  len1 = ccnl_ccnb_mkStrBlob(out1 + len1, 15, 2, "ccnx");
  len1 += ccnl_ccnb_mkStrBlob(out1 + len1, 15, 2, "");
  len1 += ccnl_ccnb_mkStrBlob(out1 + len1, 15, 2, "newface");
  len3 = ccnl_ccnb_mkHeader(faceinst, 80, 2);
  len3 += ccnl_ccnb_mkStrBlob(faceinst + len3, 73, 2, "newface");
  if (path)
    len3 += ccnl_ccnb_mkStrBlob(faceinst + len3, 99004, 2, path);
  if (flags)
    len3 += ccnl_ccnb_mkStrBlob(faceinst + len3, 99006, 2, flags);
  faceinst[len3++] = 0;
  len2 = ccnl_ccnb_mkHeader(contentobj, 64, 2);
  len2 += ccnl_ccnb_mkBlob(contentobj + len2, 19, 2, (char *)faceinst, len3);
  contentobj[len2++] = 0;
  len1 += ccnl_ccnb_mkBlob(out1 + len1, 15, 2, (char *)contentobj, len2);
  if (private_key_path)
    len += add_signature(out + len, private_key_path, out1, len1);
  memcpy(out + len, out1, len1);
  len += len1;
  out[len++] = 0;
  out[len++] = 0;
  return len;
}


x86 assembly (clang, -O0):
<mkNewUNIXFaceRequest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2f70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1a,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
mov    $0xe,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
lea    -0x1fd0(%rbp),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
mov    $0xf,%esi
mov    $0x2,%edx
lea    0xe24(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %eax,-0x28(%rbp)
lea    -0x1fd0(%rbp),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
mov    $0xf,%esi
mov    $0x2,%edx
lea    0xe09(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
lea    -0x1fd0(%rbp),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
mov    $0xf,%esi
mov    $0x2,%edx
lea    0xdd8(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
lea    -0x2f70(%rbp),%rdi
mov    $0x50,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,-0x30(%rbp)
lea    -0x2f70(%rbp),%rdi
movslq -0x30(%rbp),%rax
add    %rax,%rdi
mov    $0x49,%esi
mov    $0x2,%edx
lea    0xd95(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     12ad <mkNewUNIXFaceRequest+0x15d>
lea    -0x2f70(%rbp),%rdi
movslq -0x30(%rbp),%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rcx
mov    $0x182bc,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     12df <mkNewUNIXFaceRequest+0x18f>
lea    -0x2f70(%rbp),%rdi
movslq -0x30(%rbp),%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rcx
mov    $0x182be,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x30(%rbp)
cltq
movb   $0x0,-0x2f70(%rbp,%rax,1)
lea    -0x27a0(%rbp),%rdi
mov    $0x40,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,-0x2c(%rbp)
lea    -0x27a0(%rbp),%rdi
movslq -0x2c(%rbp),%rax
add    %rax,%rdi
lea    -0x2f70(%rbp),%rcx
mov    -0x30(%rbp),%r8d
mov    $0x13,%esi
mov    $0x2,%edx
call   1050 <ccnl_ccnb_mkBlob@plt>
mov    %rax,%rcx
movslq -0x2c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x2c(%rbp)
cltq
movb   $0x0,-0x27a0(%rbp,%rax,1)
lea    -0x1fd0(%rbp),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
lea    -0x27a0(%rbp),%rcx
mov    -0x2c(%rbp),%r8d
mov    $0xf,%esi
mov    $0x2,%edx
call   1050 <ccnl_ccnb_mkBlob@plt>
mov    %rax,%rcx
movslq -0x28(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     13c2 <mkNewUNIXFaceRequest+0x272>
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
mov    -0x20(%rbp),%rsi
lea    -0x1fd0(%rbp),%rdx
mov    -0x28(%rbp),%ecx
call   1030 <add_signature@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
lea    -0x1fd0(%rbp),%rsi
mov    -0x28(%rbp),%edx
call   1060 <memcpy@plt>
mov    -0x28(%rbp),%eax
add    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x24(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x24(%rbp),%eax
add    $0x2f70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkNewUNIXFaceRequest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2f78,%rsp
mov    %rcx,0x28(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %rdi,%rbx
mov    $0x1a,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,0xc(%rsp)
movslq %eax,%rdi
mov    %rbx,0x10(%rsp)
add    %rbx,%rdi
mov    $0xe,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,%r15d
lea    0xe56(%rip),%rcx
lea    0xfd0(%rsp),%rdi
mov    $0xf,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
movslq %eax,%rbp
lea    (%rsp,%rbp,1),%rdi
add    $0xfd0,%rdi
lea    0xe36(%rip),%rcx
mov    $0xf,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%ebp
movslq %ebp,%rax
lea    (%rsp,%rax,1),%rdi
add    $0xfd0,%rdi
lea    0xe09(%rip),%r13
mov    $0xf,%esi
mov    $0x2,%edx
mov    %r13,%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %eax,%r12d
lea    0x30(%rsp),%rdi
mov    $0x50,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
movslq %eax,%r14
lea    (%rsp,%r14,1),%rdi
add    $0x30,%rdi
mov    $0x49,%esi
mov    $0x2,%edx
mov    %r13,%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    0x18(%rsp),%rcx
add    %eax,%r14d
test   %rcx,%rcx
je     126c <mkNewUNIXFaceRequest+0x11c>
movslq %r14d,%r14
lea    (%rsp,%r14,1),%rdi
add    $0x30,%rdi
mov    $0x182bc,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%r14d
add    %r12d,%ebp
mov    0x20(%rsp),%rcx
test   %rcx,%rcx
je     1296 <mkNewUNIXFaceRequest+0x146>
movslq %r14d,%r14
lea    (%rsp,%r14,1),%rdi
add    $0x30,%rdi
mov    $0x182be,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%r14d
add    0xc(%rsp),%r15d
movslq %r14d,%rax
add    $0x1,%r14d
movb   $0x0,0x30(%rsp,%rax,1)
lea    0x800(%rsp),%r12
mov    %r12,%rdi
mov    $0x40,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
movslq %eax,%rbx
lea    (%rsp,%rbx,1),%rdi
add    $0x800,%rdi
lea    0x30(%rsp),%rcx
mov    $0x13,%esi
mov    $0x2,%edx
mov    %r14d,%r8d
call   1050 <ccnl_ccnb_mkBlob@plt>
mov    %ebx,%ecx
add    %eax,%ecx
lea    (%rbx,%rax,1),%r8d
add    $0x1,%r8d
movslq %ecx,%rax
movb   $0x0,0x800(%rsp,%rax,1)
movslq %ebp,%rbp
lea    0xfd0(%rsp,%rbp,1),%rdi
mov    $0xf,%esi
mov    $0x2,%edx
mov    %r12,%rcx
call   1050 <ccnl_ccnb_mkBlob@plt>
add    %eax,%ebp
mov    0x28(%rsp),%rsi
test   %rsi,%rsi
je     1346 <mkNewUNIXFaceRequest+0x1f6>
movslq %r15d,%r15
mov    0x10(%rsp),%r14
lea    (%r14,%r15,1),%rdi
lea    0xfd0(%rsp),%rdx
mov    %ebp,%ecx
call   1030 <add_signature@plt>
add    %eax,%r15d
jmp    134b <mkNewUNIXFaceRequest+0x1fb>
mov    0x10(%rsp),%r14
movslq %r15d,%rbx
lea    (%r14,%rbx,1),%rdi
lea    0xfd0(%rsp),%rsi
mov    %ebp,%edx
call   1060 <memcpy@plt>
lea    (%rbx,%rbp,1),%eax
cltq
movw   $0x0,(%r14,%rax,1)
lea    (%rbx,%rbp,1),%eax
add    $0x2,%eax
add    $0x2f78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"ccnx\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [8 x i8] c"newface\00"
define i32 @mkNewUNIXFaceRequest(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [8096 x i8]
%14 = alloca [2000 x i8]
%15 = alloca [2000 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
%16 = load i8*, i8** %5
%17 = call i32 @ccnl_ccnb_mkHeader(i8* %16, i32 26, i32 2)
store i32 %17, i32* %9
%18 = load i8*, i8** %5
%19 = load i32, i32* %9
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, i8* %18, i64 %20
%22 = call i32 @ccnl_ccnb_mkHeader(i8* %21, i32 14, i32 2)
%23 = load i32, i32* %9
%24 = add nsw i32 %23, %22
store i32 %24, i32* %9
%25 = getelementptr inbounds [8096 x i8], [8096 x i8]* %13, i64 0, i64 0
%26 = load i32, i32* %10
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, i8* %25, i64 %27
%29 = call i32 @ccnl_ccnb_mkStrBlob(i8* %28, i32 15, i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %29, i32* %10
%30 = getelementptr inbounds [8096 x i8], [8096 x i8]* %13, i64 0, i64 0
%31 = load i32, i32* %10
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, i8* %30, i64 %32
%34 = call i32 @ccnl_ccnb_mkStrBlob(i8* %33, i32 15, i32 2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%35 = load i32, i32* %10
%36 = add nsw i32 %35, %34
store i32 %36, i32* %10
%37 = getelementptr inbounds [8096 x i8], [8096 x i8]* %13, i64 0, i64 0
%38 = load i32, i32* %10
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, i8* %37, i64 %39
%41 = call i32 @ccnl_ccnb_mkStrBlob(i8* %40, i32 15, i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* %10
%43 = add nsw i32 %42, %41
store i32 %43, i32* %10
%44 = getelementptr inbounds [2000 x i8], [2000 x i8]* %15, i64 0, i64 0
%45 = call i32 @ccnl_ccnb_mkHeader(i8* %44, i32 80, i32 2)
store i32 %45, i32* %12
%46 = getelementptr inbounds [2000 x i8], [2000 x i8]* %15, i64 0, i64 0
%47 = load i32, i32* %12
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, i8* %46, i64 %48
%50 = call i32 @ccnl_ccnb_mkStrBlob(i8* %49, i32 73, i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%51 = load i32, i32* %12
%52 = add nsw i32 %51, %50
store i32 %52, i32* %12
%53 = load i8*, i8** %6
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %64
55: ; preds = %4
%56 = getelementptr inbounds [2000 x i8], [2000 x i8]* %15, i64 0, i64 0
%57 = load i32, i32* %12
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %56, i64 %58
%60 = load i8*, i8** %6
%61 = call i32 @ccnl_ccnb_mkStrBlob(i8* %59, i32 99004, i32 2, i8* %60)
%62 = load i32, i32* %12
%63 = add nsw i32 %62, %61
store i32 %63, i32* %12
br label %64
64: ; preds = %55, %4
%65 = load i8*, i8** %7
%66 = icmp ne i8* %65, null
br i1 %66, label %67, label %76
67: ; preds = %64
%68 = getelementptr inbounds [2000 x i8], [2000 x i8]* %15, i64 0, i64 0
%69 = load i32, i32* %12
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %68, i64 %70
%72 = load i8*, i8** %7
%73 = call i32 @ccnl_ccnb_mkStrBlob(i8* %71, i32 99006, i32 2, i8* %72)
%74 = load i32, i32* %12
%75 = add nsw i32 %74, %73
store i32 %75, i32* %12
br label %76
76: ; preds = %67, %64
%77 = load i32, i32* %12
%78 = add nsw i32 %77, 1
store i32 %78, i32* %12
%79 = sext i32 %77 to i64
%80 = getelementptr inbounds [2000 x i8], [2000 x i8]* %15, i64 0, i64 %79
store i8 0, i8* %80
%81 = getelementptr inbounds [2000 x i8], [2000 x i8]* %14, i64 0, i64 0
%82 = call i32 @ccnl_ccnb_mkHeader(i8* %81, i32 64, i32 2)
store i32 %82, i32* %11
%83 = getelementptr inbounds [2000 x i8], [2000 x i8]* %14, i64 0, i64 0
%84 = load i32, i32* %11
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, i8* %83, i64 %85
%87 = getelementptr inbounds [2000 x i8], [2000 x i8]* %15, i64 0, i64 0
%88 = load i32, i32* %12
%89 = call i64 @ccnl_ccnb_mkBlob(i8* %86, i32 19, i32 2, i8* %87, i32 %88)
%90 = load i32, i32* %11
%91 = sext i32 %90 to i64
%92 = add nsw i64 %91, %89
%93 = trunc i64 %92 to i32
store i32 %93, i32* %11
%94 = load i32, i32* %11
%95 = add nsw i32 %94, 1
store i32 %95, i32* %11
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds [2000 x i8], [2000 x i8]* %14, i64 0, i64 %96
store i8 0, i8* %97
%98 = getelementptr inbounds [8096 x i8], [8096 x i8]* %13, i64 0, i64 0
%99 = load i32, i32* %10
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, i8* %98, i64 %100
%102 = getelementptr inbounds [2000 x i8], [2000 x i8]* %14, i64 0, i64 0
%103 = load i32, i32* %11
%104 = call i64 @ccnl_ccnb_mkBlob(i8* %101, i32 15, i32 2, i8* %102, i32 %103)
%105 = load i32, i32* %10
%106 = sext i32 %105 to i64
%107 = add nsw i64 %106, %104
%108 = trunc i64 %107 to i32
store i32 %108, i32* %10
%109 = load i8*, i8** %8
%110 = icmp ne i8* %109, null
br i1 %110, label %111, label %124
111: ; preds = %76
%112 = load i8*, i8** %5
%113 = load i32, i32* %9
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, i8* %112, i64 %114
%116 = load i8*, i8** %8
%117 = getelementptr inbounds [8096 x i8], [8096 x i8]* %13, i64 0, i64 0
%118 = load i32, i32* %10
%119 = call i64 @add_signature(i8* %115, i8* %116, i8* %117, i32 %118)
%120 = load i32, i32* %9
%121 = sext i32 %120 to i64
%122 = add nsw i64 %121, %119
%123 = trunc i64 %122 to i32
store i32 %123, i32* %9
br label %124
124: ; preds = %111, %76
%125 = load i8*, i8** %5
%126 = load i32, i32* %9
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i8, i8* %125, i64 %127
%129 = getelementptr inbounds [8096 x i8], [8096 x i8]* %13, i64 0, i64 0
%130 = load i32, i32* %10
%131 = call i32 @memcpy(i8* %128, i8* %129, i32 %130)
%132 = load i32, i32* %10
%133 = load i32, i32* %9
%134 = add nsw i32 %133, %132
store i32 %134, i32* %9
%135 = load i8*, i8** %5
%136 = load i32, i32* %9
%137 = add nsw i32 %136, 1
store i32 %137, i32* %9
%138 = sext i32 %136 to i64
%139 = getelementptr inbounds i8, i8* %135, i64 %138
store i8 0, i8* %139
%140 = load i8*, i8** %5
%141 = load i32, i32* %9
%142 = add nsw i32 %141, 1
store i32 %142, i32* %9
%143 = sext i32 %141 to i64
%144 = getelementptr inbounds i8, i8* %140, i64 %143
store i8 0, i8* %144
%145 = load i32, i32* %9
ret i32 %145
}

LLVM IR (-O2):
@.str = [5 x i8] c"ccnx\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [8 x i8] c"newface\00"
define i32 @mkNewUNIXFaceRequest(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [8096 x i8]
%6 = alloca [2000 x i8]
%7 = alloca [2000 x i8]
%8 = getelementptr inbounds [8096 x i8], [8096 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [2000 x i8], [2000 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [2000 x i8], [2000 x i8]* %7, i64 0, i64 0
%11 = tail call i32 @ccnl_ccnb_mkHeader(i8* %0, i32 26, i32 2)
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %0, i64 %12
%14 = tail call i32 @ccnl_ccnb_mkHeader(i8* %13, i32 14, i32 2)
%15 = add nsw i32 %14, %11
%16 = call i32 @ccnl_ccnb_mkStrBlob(i8* %8, i32 15, i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [8096 x i8], [8096 x i8]* %5, i64 0, i64 %17
%19 = call i32 @ccnl_ccnb_mkStrBlob(i8* %18, i32 15, i32 2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%20 = add nsw i32 %19, %16
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8096 x i8], [8096 x i8]* %5, i64 0, i64 %21
%23 = call i32 @ccnl_ccnb_mkStrBlob(i8* %22, i32 15, i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%24 = add nsw i32 %20, %23
%25 = call i32 @ccnl_ccnb_mkHeader(i8* %10, i32 80, i32 2)
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [2000 x i8], [2000 x i8]* %7, i64 0, i64 %26
%28 = call i32 @ccnl_ccnb_mkStrBlob(i8* %27, i32 73, i32 2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%29 = add nsw i32 %28, %25
%30 = icmp eq i8* %1, null
br i1 %30, label %36, label %31
31: ; preds = %4
%32 = sext i32 %29 to i64
%33 = getelementptr inbounds [2000 x i8], [2000 x i8]* %7, i64 0, i64 %32
%34 = call i32 @ccnl_ccnb_mkStrBlob(i8* %33, i32 99004, i32 2, i8* %1)
%35 = add nsw i32 %34, %29
br label %36
36: ; preds = %31, %4
%37 = phi i32 [ %35, %31 ], [ %29, %4 ]
%38 = icmp eq i8* %2, null
br i1 %38, label %44, label %39
39: ; preds = %36
%40 = sext i32 %37 to i64
%41 = getelementptr inbounds [2000 x i8], [2000 x i8]* %7, i64 0, i64 %40
%42 = call i32 @ccnl_ccnb_mkStrBlob(i8* %41, i32 99006, i32 2, i8* %2)
%43 = add nsw i32 %42, %37
br label %44
44: ; preds = %39, %36
%45 = phi i32 [ %43, %39 ], [ %37, %36 ]
%46 = add nsw i32 %45, 1
%47 = sext i32 %45 to i64
%48 = getelementptr inbounds [2000 x i8], [2000 x i8]* %7, i64 0, i64 %47
store i8 0, i8* %48
%49 = call i32 @ccnl_ccnb_mkHeader(i8* %9, i32 64, i32 2)
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [2000 x i8], [2000 x i8]* %6, i64 0, i64 %50
%52 = call i64 @ccnl_ccnb_mkBlob(i8* %51, i32 19, i32 2, i8* %10, i32 %46)
%53 = trunc i64 %52 to i32
%54 = add i32 %49, %53
%55 = add nsw i32 %54, 1
%56 = sext i32 %54 to i64
%57 = getelementptr inbounds [2000 x i8], [2000 x i8]* %6, i64 0, i64 %56
store i8 0, i8* %57
%58 = sext i32 %24 to i64
%59 = getelementptr inbounds [8096 x i8], [8096 x i8]* %5, i64 0, i64 %58
%60 = call i64 @ccnl_ccnb_mkBlob(i8* %59, i32 15, i32 2, i8* %9, i32 %55)
%61 = trunc i64 %60 to i32
%62 = add i32 %24, %61
%63 = icmp eq i8* %3, null
br i1 %63, label %70, label %64
64: ; preds = %44
%65 = sext i32 %15 to i64
%66 = getelementptr inbounds i8, i8* %0, i64 %65
%67 = call i64 @add_signature(i8* %66, i8* %3, i8* %8, i32 %62)
%68 = trunc i64 %67 to i32
%69 = add i32 %15, %68
br label %70
70: ; preds = %64, %44
%71 = phi i32 [ %69, %64 ], [ %15, %44 ]
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, i8* %0, i64 %72
%74 = call i32 @memcpy(i8* %73, i8* %8, i32 %62)
%75 = add nsw i32 %71, %62
%76 = add nsw i32 %75, 1
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds i8, i8* %0, i64 %77
store i8 0, i8* %78
%79 = add nsw i32 %75, 2
%80 = sext i32 %76 to i64
%81 = getelementptr inbounds i8, i8* %0, i64 %80
store i8 0, i8* %81
ret i32 %79
}