// File: ashlall[P]StreamStats/ChiSquareExperiments/VaryMemoryTwoSample.cpp
// Function: name_file(char*, char**, int)
void name_file(char *str, char* argv[], int extra)
{
  time_t now = time(0);
  struct tm tstruct;
  char buf[80];
  tstruct = *localtime(&now);
  strftime(buf, sizeof(buf), "%m-%d-%Y.%X", &tstruct);

  strcpy(str, "VaryM2_");
  strcat(str, argv[1]);
  strcat(str, "-");
  strcat(str, argv[2]);
  strcat(str, "_");
  strcat(str, argv[3]);
  strcat(str, "X_");
  strcat(str, argv[4]);
  strcat(str, "-1st(");
  strcat(str, argv[5]);
  strcat(str, "-");
  strcat(str, argv[6]);
  strcat(str, ")-2nd(");
  strcat(str, argv[7]);
  strcat(str, "-");
  strcat(str, argv[8]);
  strcat(str, ")_");
  strcat(str, argv[10]);
  strcat(str, "_");
  strcat(str, argv[11]);

  if (atoi(argv[9]))
    strcat(str, "_all_");
  else
    strcat(str, "_GK_");
  
  strcat(str, buf);

  if (extra == 0)
    strcat(str, "_log.dat");
  else if (extra == 1)
    strcat(str, "_table.dat");
  else if (extra == 2)
    strcat(str, "_extra.dat");
  else if (extra == 3)
    strcat(str, "_pvalues.dat");
  else
    strcat(str, "_actual-values.dat");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x2180
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x2110
movq %rax, %rsi
leaq -0x58(%rbp), %rdi
movl $0x38, %edx
callq 0x2160
leaq -0xb0(%rbp), %rdi
movl $0x50, %esi
leaq 0x9f54(%rip), %rdx      # 0x12484
leaq -0x58(%rbp), %rcx
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x9f4c(%rip), %rsi      # 0x12490
callq 0x2190
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9f33(%rip), %rsi      # 0x12498
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9f25(%rip), %rsi      # 0x124ab
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9ef3(%rip), %rsi      # 0x1249a
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9ed5(%rip), %rsi      # 0x1249d
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9eaf(%rip), %rsi      # 0x12498
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e99(%rip), %rsi      # 0x124a3
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e6d(%rip), %rsi      # 0x12498
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e5e(%rip), %rsi      # 0x124aa
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e3e(%rip), %rsi      # 0x124ab
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rsi
callq 0x2310
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rdi
callq 0x2270
cmpl $0x0, %eax
je 0x86a7
movq -0x8(%rbp), %rdi
leaq 0x9e0d(%rip), %rsi      # 0x124ad
callq 0x2310
jmp 0x86b7
movq -0x8(%rbp), %rdi
leaq 0x9e01(%rip), %rsi      # 0x124b3
callq 0x2310
movq -0x8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x2310
cmpl $0x0, -0x14(%rbp)
jne 0x86df
movq -0x8(%rbp), %rdi
leaq 0x9de0(%rip), %rsi      # 0x124b8
callq 0x2310
jmp 0x873d
cmpl $0x1, -0x14(%rbp)
jne 0x86f7
movq -0x8(%rbp), %rdi
leaq 0x9dd1(%rip), %rsi      # 0x124c1
callq 0x2310
jmp 0x873b
cmpl $0x2, -0x14(%rbp)
jne 0x870f
movq -0x8(%rbp), %rdi
leaq 0x9dc4(%rip), %rsi      # 0x124cc
callq 0x2310
jmp 0x8739
cmpl $0x3, -0x14(%rbp)
jne 0x8727
movq -0x8(%rbp), %rdi
leaq 0x9db7(%rip), %rsi      # 0x124d7
callq 0x2310
jmp 0x8737
movq -0x8(%rbp), %rdi
leaq 0x9db2(%rip), %rsi      # 0x124e4
callq 0x2310
jmp 0x8739
jmp 0x873b
jmp 0x873d
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)