// File: /workspace/github_cpp_makefile_star2_O2/ashlall[P]StreamStats/ChiSquareExperiments/VaryMemoryOneSample.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, "VaryM1_");
  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, "-");
  strcat(str, argv[5]);
  strcat(str, "-");
  strcat(str, argv[6]);
  strcat(str, "_");
  strcat(str, argv[8]);
  strcat(str, "_");
  strcat(str, argv[9]);
  strcat(str, "_");
  if (atoi(argv[7]))
    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 if (extra == 4)
    strcat(str, "_actual-values.dat");
  else 
	strcat(str, "_times.dat");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
xorl %edi, %edi
callq 0x21a0
leaq -0x30(%rbp), %rdi
movq %rax, (%rdi)
callq 0x2140
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
leaq -0xc0(%rbp), %rcx
movaps %xmm0, (%rcx)
movaps %xmm1, 0x10(%rcx)
movaps %xmm2, 0x20(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x30(%rcx)
leaq 0x2b1a(%rip), %rdx      # 0x84fe
leaq -0x80(%rbp), %rdi
pushq $0x50
popq %rsi
callq 0x2180
movabsq $0x5f314d79726156, %rax # imm = 0x5F314D79726156
movq %rax, (%r14)
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw $0x2d, %r13w
movw %r13w, (%r14,%rax)
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw $0x5f, %r12w
movw %r12w, (%r14,%rax)
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw $0x5f58, (%r14,%rax)    # imm = 0x5F58
movb $0x0, 0x2(%r14,%rax)
movq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw %r13w, (%r14,%rax)
movq 0x28(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw %r13w, (%r14,%rax)
movq 0x30(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw %r12w, (%r14,%rax)
movq 0x40(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw %r12w, (%r14,%rax)
movq 0x48(%r15), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
movw %r12w, (%r14,%rax)
movq 0x38(%r15), %rdi
callq 0x2270
movl %eax, %r15d
movq %r14, %rdi
callq 0x20c0
addq %r14, %rax
testl %r15d, %r15d
je 0x5aff
movb $0x0, 0x4(%rax)
movl $0x5f6c6c61, (%rax)     # imm = 0x5F6C6C61
jmp 0x5b05
movl $0x5f4b47, (%rax)       # imm = 0x5F4B47
leaq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0x2330
movq %r14, %rdi
callq 0x20c0
addq %r14, %rax
cmpl $0x4, %ebx
ja 0x5b8e
movl %ebx, %ecx
leaq 0x26c6(%rip), %rdx      # 0x81f0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movabsq $0x7461642e676f6c5f, %rcx # imm = 0x7461642E676F6C5F
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
jmp 0x5ba2
movups 0x29f1(%rip), %xmm0     # 0x853e
movups %xmm0, (%rax)
movl $0x746164, 0xf(%rax)    # imm = 0x746164
jmp 0x5ba2
movabsq $0x642e61727478655f, %rcx # imm = 0x642E61727478655F
jmp 0x5b98
movabsq $0x7461642e736575, %rcx # imm = 0x7461642E736575
movq %rcx, 0x5(%rax)
movabsq $0x7365756c6176705f, %rcx # imm = 0x7365756C6176705F
movq %rcx, (%rax)
jmp 0x5ba2
movabsq $0x642e656c6261745f, %rcx # imm = 0x642E656C6261745F
jmp 0x5b98
movabsq $0x642e73656d69745f, %rcx # imm = 0x642E73656D69745F
movq %rcx, (%rax)
movl $0x746164, 0x7(%rax)    # imm = 0x746164
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq