// File: ashlall[P]StreamStats/ChiSquareExperiments/VarySizeTwoSampleConstant.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, "VaryS2C_");
  strcat(str, argv[1]);
  strcat(str, "-");
  strcat(str, argv[2]);
  strcat(str, "_const-");
  strcat(str, argv[3]);
  strcat(str, "_");
  strcat(str, argv[4]);
  strcat(str, "X_");
  strcat(str, argv[5]);
  strcat(str, "-1st(");
  strcat(str, argv[6]);
  strcat(str, "-");
  strcat(str, argv[7]);
  strcat(str, ")-2nd(");
  strcat(str, argv[8]);
  strcat(str, "-");
  strcat(str, argv[9]);
  strcat(str, ")_");
  strcat(str, argv[11]);
  strcat(str, "_");
  strcat(str, argv[12]);

  if (atoi(argv[10]))
    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 0x9eaf(%rip), %rdx      # 0x124af
leaq -0x58(%rbp), %rcx
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x9ea7(%rip), %rsi      # 0x124bb
callq 0x2190
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e95(%rip), %rsi      # 0x124ca
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e6e(%rip), %rsi      # 0x124c4
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e66(%rip), %rsi      # 0x124dd
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e34(%rip), %rsi      # 0x124cc
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9e16(%rip), %rsi      # 0x124cf
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9df0(%rip), %rsi      # 0x124ca
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9dda(%rip), %rsi      # 0x124d5
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9dae(%rip), %rsi      # 0x124ca
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9d9f(%rip), %rsi      # 0x124dc
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x58(%rax), %rsi
callq 0x2310
movq -0x8(%rbp), %rdi
leaq 0x9d7f(%rip), %rsi      # 0x124dd
callq 0x2310
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rsi
callq 0x2310
movq -0x10(%rbp), %rax
movq 0x50(%rax), %rdi
callq 0x2270
cmpl $0x0, %eax
je 0x8798
movq -0x8(%rbp), %rdi
leaq 0x9d4e(%rip), %rsi      # 0x124df
callq 0x2310
jmp 0x87a8
movq -0x8(%rbp), %rdi
leaq 0x9d42(%rip), %rsi      # 0x124e5
callq 0x2310
movq -0x8(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0x2310
cmpl $0x0, -0x14(%rbp)
jne 0x87d0
movq -0x8(%rbp), %rdi
leaq 0x9d21(%rip), %rsi      # 0x124ea
callq 0x2310
jmp 0x882e
cmpl $0x1, -0x14(%rbp)
jne 0x87e8
movq -0x8(%rbp), %rdi
leaq 0x9d12(%rip), %rsi      # 0x124f3
callq 0x2310
jmp 0x882c
cmpl $0x2, -0x14(%rbp)
jne 0x8800
movq -0x8(%rbp), %rdi
leaq 0x9d05(%rip), %rsi      # 0x124fe
callq 0x2310
jmp 0x882a
cmpl $0x3, -0x14(%rbp)
jne 0x8818
movq -0x8(%rbp), %rdi
leaq 0x9cf8(%rip), %rsi      # 0x12509
callq 0x2310
jmp 0x8828
movq -0x8(%rbp), %rdi
leaq 0x9cf3(%rip), %rsi      # 0x12516
callq 0x2310
jmp 0x882a
jmp 0x882c
jmp 0x882e
addq $0xb0, %rsp
popq %rbp
retq
nopw (%rax,%rax)