#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);
scalar_t__ ccnl_ccnb_mkStrBlob(unsigned char *, int, int, char *);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
int mkDebugRequest(unsigned char *out, char *dbg, char *private_key_path) {
  int len = 0, len1 = 0, len2 = 0, len3 = 0;
  unsigned char out1[8096];
  unsigned char contentobj[2000];
  unsigned char stmt[1000];
  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, "debug");
  len3 = ccnl_ccnb_mkHeader(stmt, 99100, 2);
  len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 73, 2, "debug");
  len3 += ccnl_ccnb_mkStrBlob(stmt + len3, 99101, 2, dbg);
  stmt[len3++] = 0;
  len2 = ccnl_ccnb_mkHeader(contentobj, 64, 2);
  len2 += ccnl_ccnb_mkBlob(contentobj + len2, 19, 2, (char *)stmt, 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):
<mkDebugRequest>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2b90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x1a,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
add    %rax,%rdi
mov    $0xe,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
add    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x1fd0(%rbp),%rdi
movslq -0x20(%rbp),%rax
add    %rax,%rdi
mov    $0xf,%esi
mov    $0x2,%edx
lea    0xe28(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x20(%rbp)
lea    -0x1fd0(%rbp),%rdi
movslq -0x20(%rbp),%rax
add    %rax,%rdi
mov    $0xf,%esi
mov    $0x2,%edx
lea    0xe01(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x20(%rbp)
lea    -0x1fd0(%rbp),%rdi
movslq -0x20(%rbp),%rax
add    %rax,%rdi
mov    $0xf,%esi
mov    $0x2,%edx
lea    0xdcb(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x20(%rbp)
lea    -0x2b90(%rbp),%rdi
mov    $0x1831c,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,-0x28(%rbp)
lea    -0x2b90(%rbp),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
mov    $0x49,%esi
mov    $0x2,%edx
lea    0xd81(%rip),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq -0x28(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x28(%rbp)
lea    -0x2b90(%rbp),%rdi
movslq -0x28(%rbp),%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rcx
mov    $0x1831d,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rcx
movslq -0x28(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x28(%rbp)
cltq
movb   $0x0,-0x2b90(%rbp,%rax,1)
lea    -0x27a0(%rbp),%rdi
mov    $0x40,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
mov    %eax,-0x24(%rbp)
lea    -0x27a0(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
lea    -0x2b90(%rbp),%rcx
mov    -0x28(%rbp),%r8d
mov    $0x13,%esi
mov    $0x2,%edx
call   1050 <ccnl_ccnb_mkBlob@plt>
mov    %rax,%rcx
movslq -0x24(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x24(%rbp)
cltq
movb   $0x0,-0x27a0(%rbp,%rax,1)
lea    -0x1fd0(%rbp),%rdi
movslq -0x20(%rbp),%rax
add    %rax,%rdi
lea    -0x27a0(%rbp),%rcx
mov    -0x24(%rbp),%r8d
mov    $0xf,%esi
mov    $0x2,%edx
call   1050 <ccnl_ccnb_mkBlob@plt>
mov    %rax,%rcx
movslq -0x20(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     13a7 <mkDebugRequest+0x257>
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1fd0(%rbp),%rdx
mov    -0x20(%rbp),%ecx
call   1030 <add_signature@plt>
mov    %rax,%rcx
movslq -0x1c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x1c(%rbp),%rax
add    %rax,%rdi
lea    -0x1fd0(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1060 <memcpy@plt>
mov    -0x20(%rbp),%eax
add    -0x1c(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x1c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0x1c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x1c(%rbp),%eax
add    $0x2b90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkDebugRequest>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2b78,%rsp
mov    %rdx,0x8(%rsp)
mov    %rsi,(%rsp)
mov    %rdi,%r12
mov    $0x1a,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
movslq %eax,%r13
lea    (%r12,%r13,1),%rdi
mov    $0xe,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
add    %eax,%r13d
lea    0xe64(%rip),%rcx
lea    0xbd0(%rsp),%rdi
mov    $0xf,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rbp
movslq %ebp,%rax
lea    (%rsp,%rax,1),%rdi
add    $0xbd0,%rdi
lea    0xe3f(%rip),%rcx
mov    $0xf,%esi
mov    $0x2,%edx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%rbx
add    %rbp,%rbx
movslq %ebx,%rax
lea    (%rsp,%rax,1),%rdi
add    $0xbd0,%rdi
lea    0xe10(%rip),%r14
mov    $0xf,%esi
mov    $0x2,%edx
mov    %r14,%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %rax,%r15
add    %rbx,%r15
lea    0x10(%rsp),%rdi
mov    $0x1831c,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
movslq %eax,%rbx
lea    (%rsp,%rbx,1),%rdi
add    $0x10,%rdi
mov    $0x49,%esi
mov    $0x2,%edx
mov    %r14,%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
add    %eax,%ebx
movslq %ebx,%rbx
lea    (%rsp,%rbx,1),%rdi
add    $0x10,%rdi
mov    $0x1831d,%esi
mov    $0x2,%edx
mov    (%rsp),%rcx
call   1040 <ccnl_ccnb_mkStrBlob@plt>
mov    %ebx,%ecx
add    %eax,%ecx
add    %eax,%ebx
add    $0x1,%ebx
movslq %ecx,%rax
movb   $0x0,0x10(%rsp,%rax,1)
lea    0x400(%rsp),%r14
mov    %r14,%rdi
mov    $0x40,%esi
mov    $0x2,%edx
call   1070 <ccnl_ccnb_mkHeader@plt>
movslq %eax,%rbp
lea    (%rsp,%rbp,1),%rdi
add    $0x400,%rdi
mov    $0x13,%esi
mov    $0x2,%edx
lea    0x10(%rsp),%rcx
mov    %ebx,%r8d
call   1050 <ccnl_ccnb_mkBlob@plt>
lea    (%rax,%rbp,1),%ecx
lea    (%rax,%rbp,1),%r8d
add    $0x1,%r8d
movslq %ecx,%rax
movb   $0x0,0x400(%rsp,%rax,1)
movslq %r15d,%rbx
lea    0xbd0(%rsp,%rbx,1),%rdi
mov    $0xf,%esi
mov    $0x2,%edx
mov    %r14,%rcx
call   1050 <ccnl_ccnb_mkBlob@plt>
mov    0x8(%rsp),%rsi
add    %eax,%ebx
test   %rsi,%rsi
je     1306 <mkDebugRequest+0x1b6>
movslq %r13d,%r13
lea    (%r12,%r13,1),%rdi
lea    0xbd0(%rsp),%rdx
mov    %ebx,%ecx
call   1030 <add_signature@plt>
add    %eax,%r13d
movslq %r13d,%rbp
lea    (%r12,%rbp,1),%rdi
lea    0xbd0(%rsp),%rsi
mov    %ebx,%edx
call   1060 <memcpy@plt>
lea    (%rbx,%rbp,1),%eax
cltq
movw   $0x0,(%r12,%rax,1)
lea    (%rbx,%rbp,1),%eax
add    $0x2,%eax
add    $0x2b78,%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 = [6 x i8] c"debug\00"
define i32 @mkDebugRequest(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [8096 x i8]
%12 = alloca [2000 x i8]
%13 = alloca [1000 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
%14 = load i8*, i8** %4
%15 = call i32 @ccnl_ccnb_mkHeader(i8* %14, i32 26, i32 2)
store i32 %15, i32* %7
%16 = load i8*, i8** %4
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
%20 = call i32 @ccnl_ccnb_mkHeader(i8* %19, i32 14, i32 2)
%21 = load i32, i32* %7
%22 = add nsw i32 %21, %20
store i32 %22, i32* %7
%23 = getelementptr inbounds [8096 x i8], [8096 x i8]* %11, i64 0, i64 0
%24 = load i32, i32* %8
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, i8* %23, i64 %25
%27 = call i64 @ccnl_ccnb_mkStrBlob(i8* %26, i32 15, i32 2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, i32* %8
%32 = getelementptr inbounds [8096 x i8], [8096 x i8]* %11, i64 0, i64 0
%33 = load i32, i32* %8
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, i8* %32, i64 %34
%36 = call i64 @ccnl_ccnb_mkStrBlob(i8* %35, i32 15, i32 2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%37 = load i32, i32* %8
%38 = sext i32 %37 to i64
%39 = add nsw i64 %38, %36
%40 = trunc i64 %39 to i32
store i32 %40, i32* %8
%41 = getelementptr inbounds [8096 x i8], [8096 x i8]* %11, i64 0, i64 0
%42 = load i32, i32* %8
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %41, i64 %43
%45 = call i64 @ccnl_ccnb_mkStrBlob(i8* %44, i32 15, i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = add nsw i64 %47, %45
%49 = trunc i64 %48 to i32
store i32 %49, i32* %8
%50 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%51 = call i32 @ccnl_ccnb_mkHeader(i8* %50, i32 99100, i32 2)
store i32 %51, i32* %10
%52 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%53 = load i32, i32* %10
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %52, i64 %54
%56 = call i64 @ccnl_ccnb_mkStrBlob(i8* %55, i32 73, i32 2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* %10
%58 = sext i32 %57 to i64
%59 = add nsw i64 %58, %56
%60 = trunc i64 %59 to i32
store i32 %60, i32* %10
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%62 = load i32, i32* %10
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %61, i64 %63
%65 = load i8*, i8** %5
%66 = call i64 @ccnl_ccnb_mkStrBlob(i8* %64, i32 99101, i32 2, i8* %65)
%67 = load i32, i32* %10
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, i32* %10
%71 = load i32, i32* %10
%72 = add nsw i32 %71, 1
store i32 %72, i32* %10
%73 = sext i32 %71 to i64
%74 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 %73
store i8 0, i8* %74
%75 = getelementptr inbounds [2000 x i8], [2000 x i8]* %12, i64 0, i64 0
%76 = call i32 @ccnl_ccnb_mkHeader(i8* %75, i32 64, i32 2)
store i32 %76, i32* %9
%77 = getelementptr inbounds [2000 x i8], [2000 x i8]* %12, i64 0, i64 0
%78 = load i32, i32* %9
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds i8, i8* %77, i64 %79
%81 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
%82 = load i32, i32* %10
%83 = call i64 @ccnl_ccnb_mkBlob(i8* %80, i32 19, i32 2, i8* %81, i32 %82)
%84 = load i32, i32* %9
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, i32* %9
%88 = load i32, i32* %9
%89 = add nsw i32 %88, 1
store i32 %89, i32* %9
%90 = sext i32 %88 to i64
%91 = getelementptr inbounds [2000 x i8], [2000 x i8]* %12, i64 0, i64 %90
store i8 0, i8* %91
%92 = getelementptr inbounds [8096 x i8], [8096 x i8]* %11, i64 0, i64 0
%93 = load i32, i32* %8
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, i8* %92, i64 %94
%96 = getelementptr inbounds [2000 x i8], [2000 x i8]* %12, i64 0, i64 0
%97 = load i32, i32* %9
%98 = call i64 @ccnl_ccnb_mkBlob(i8* %95, i32 15, i32 2, i8* %96, i32 %97)
%99 = load i32, i32* %8
%100 = sext i32 %99 to i64
%101 = add nsw i64 %100, %98
%102 = trunc i64 %101 to i32
store i32 %102, i32* %8
%103 = load i8*, i8** %6
%104 = icmp ne i8* %103, null
br i1 %104, label %105, label %118
105: ; preds = %3
%106 = load i8*, i8** %4
%107 = load i32, i32* %7
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, i8* %106, i64 %108
%110 = load i8*, i8** %6
%111 = getelementptr inbounds [8096 x i8], [8096 x i8]* %11, i64 0, i64 0
%112 = load i32, i32* %8
%113 = call i64 @add_signature(i8* %109, i8* %110, i8* %111, i32 %112)
%114 = load i32, i32* %7
%115 = sext i32 %114 to i64
%116 = add nsw i64 %115, %113
%117 = trunc i64 %116 to i32
store i32 %117, i32* %7
br label %118
118: ; preds = %105, %3
%119 = load i8*, i8** %4
%120 = load i32, i32* %7
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, i8* %119, i64 %121
%123 = getelementptr inbounds [8096 x i8], [8096 x i8]* %11, i64 0, i64 0
%124 = load i32, i32* %8
%125 = call i32 @memcpy(i8* %122, i8* %123, i32 %124)
%126 = load i32, i32* %8
%127 = load i32, i32* %7
%128 = add nsw i32 %127, %126
store i32 %128, i32* %7
%129 = load i8*, i8** %4
%130 = load i32, i32* %7
%131 = add nsw i32 %130, 1
store i32 %131, i32* %7
%132 = sext i32 %130 to i64
%133 = getelementptr inbounds i8, i8* %129, i64 %132
store i8 0, i8* %133
%134 = load i8*, i8** %4
%135 = load i32, i32* %7
%136 = add nsw i32 %135, 1
store i32 %136, i32* %7
%137 = sext i32 %135 to i64
%138 = getelementptr inbounds i8, i8* %134, i64 %137
store i8 0, i8* %138
%139 = load i32, i32* %7
ret i32 %139
}

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