void convert_man_nonmotornt(char *binaryFilesDirectory, char *tppFilesDirectory,
                            char *tppFileName) {
  void combineBinaryTablesInTpplusFile(char **binaryFileNames,
                                       char *tppFileName, int ntables);
  int i;
  int nTables = 1;
  char **binaryFileNames;
  char fileName[1024];
  strcpy(fileName, tppFilesDirectory);
  strcat(fileName, tppFileName);
  binaryFileNames = (char **)calloc(nTables, sizeof(char *));
  for (i = 0; i < nTables; i++)
    binaryFileNames[i] = (char *)calloc(1024, sizeof(char));
  strcpy(binaryFileNames[0], binaryFilesDirectory);
  strcat(binaryFileNames[0], "\\man_nonmotor_nt.binary");
  combineBinaryTablesInTpplusFile(binaryFileNames, fileName, nTables);
  for (i = 0; i < nTables; i++)
    free(binaryFileNames[i]);
  free(binaryFileNames);
}


x86 assembly (clang, -O0):
<convert_man_nonmotornt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x430,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x1,-0x20(%rbp)
lea    -0x430(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x430(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1070 <strcat@plt>
movslq -0x20(%rbp),%rdi
mov    $0x8,%esi
call   1050 <calloc@plt>
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    11df <convert_man_nonmotornt+0x8f>
mov    $0x400,%edi
mov    $0x1,%esi
call   1050 <calloc@plt>
mov    %rax,%rdx
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a7 <convert_man_nonmotornt+0x57>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
mov    -0x8(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%rdi
lea    0xe03(%rip),%rsi
call   1070 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    -0x430(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1060 <combineBinaryTablesInTpplusFile@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1247 <convert_man_nonmotornt+0xf7>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    121c <convert_man_nonmotornt+0xcc>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
add    $0x430,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_man_nonmotornt>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x408,%rsp
mov    %rdx,%rbx
mov    %rdi,%r15
mov    %rsp,%r14
mov    %r14,%rdi
call   1040 <strcpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1080 <strcat@plt>
mov    $0x1,%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,%r12
mov    $0x400,%edi
mov    $0x1,%esi
call   1060 <calloc@plt>
mov    %rax,%rbx
mov    %rax,(%r12)
mov    %rax,%rdi
mov    %r15,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
movabs $0x7972616e69622e,%rcx
mov    %rcx,0x10(%rbx,%rax,1)
movups 0xe25(%rip),%xmm0
movups %xmm0,(%rbx,%rax,1)
mov    %r12,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
call   1070 <combineBinaryTablesInTpplusFile@plt>
mov    (%r12),%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [24 x i8] c"\\man_nonmotor_nt.binary\00"
define void @convert_man_nonmotornt(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8**
%10 = alloca [1024 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
store i32 1, i32* %8
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%12 = load i8*, i8** %5
%13 = call i8* @strcpy(i8* %11, i8* %12)
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%15 = load i8*, i8** %6
%16 = call i8* @strcat(i8* %14, i8* %15)
%17 = load i32, i32* %8
%18 = sext i32 %17 to i64
%19 = call i8* @calloc(i64 %18, i64 8)
%20 = bitcast i8* %19 to i8**
store i8** %20, i8*** %9
store i32 0, i32* %7
br label %21
21: ; preds = %31, %3
%22 = load i32, i32* %7
%23 = load i32, i32* %8
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %34
25: ; preds = %21
%26 = call i8* @calloc(i64 1024, i64 1)
%27 = load i8**, i8*** %9
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8*, i8** %27, i64 %29
store i8* %26, i8** %30
br label %31
31: ; preds = %25
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %21
34: ; preds = %21
%35 = load i8**, i8*** %9
%36 = getelementptr inbounds i8*, i8** %35, i64 0
%37 = load i8*, i8** %36
%38 = load i8*, i8** %4
%39 = call i8* @strcpy(i8* %37, i8* %38)
%40 = load i8**, i8*** %9
%41 = getelementptr inbounds i8*, i8** %40, i64 0
%42 = load i8*, i8** %41
%43 = call i8* @strcat(i8* %42, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%44 = load i8**, i8*** %9
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%46 = load i32, i32* %8
store i32 0, i32* %7
br label %47
47: ; preds = %57, %34
%48 = load i32, i32* %7
%49 = load i32, i32* %8
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %60
51: ; preds = %47
%52 = load i8**, i8*** %9
%53 = load i32, i32* %7
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %52, i64 %54
%56 = load i8*, i8** %55
br label %57
57: ; preds = %51
%58 = load i32, i32* %7
%59 = add nsw i32 %58, 1
store i32 %59, i32* %7
br label %47
60: ; preds = %47
%61 = load i8**, i8*** %9
%62 = bitcast i8** %61 to i8*
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"\\man_nonmotor_nt.binary\00"
define void @convert_man_nonmotornt(i8* nocapture %0, i8* nocapture %1, i8* nocapture %2) {
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%6 = call i8* @strcpy(i8* %5, i8* dereferenceable(1) %1)
%7 = call i8* @strcat(i8* %5, i8* dereferenceable(1) %2)
%8 = call dereferenceable_or_null(8) i8* @calloc(i64 1, i64 8)
%9 = bitcast i8* %8 to i8**
%10 = call dereferenceable_or_null(1024) i8* @calloc(i64 1024, i64 1)
store i8* %10, i8** %9
%11 = call i8* @strcpy(i8* dereferenceable(1) %10, i8* dereferenceable(1) %0)
%12 = call i64 @strlen(i8* dereferenceable(1) %10)
%13 = getelementptr i8, i8* %10, i64 %12
%14 = load i8*, i8** %9
ret void
}