// File: /workspace/github_cpp_makefile_star2_O3/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
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 0x21d0
leaq -0x30(%rbp), %rdi
movq %rax, (%rdi)
callq 0x2160
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 0x2efb(%rip), %rdx      # 0x9534
leaq -0x80(%rbp), %rdi
movl $0x50, %esi
callq 0x21a0
movabsq $0x5f324d79726156, %rax # imm = 0x5F324D79726156
movq %rax, (%r14)
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movw $0x2d, %r12w
movw %r12w, (%r14,%rax)
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movw $0x5f, %r13w
movw %r13w, (%r14,%rax)
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
xorl %ecx, %ecx
movb %cl, 0x2(%r14,%rax)
movw $0x5f58, (%r14,%rax)    # imm = 0x5F58
movq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movl $0x7473312d, (%r14,%rax) # imm = 0x7473312D
movw $0x28, 0x4(%r14,%rax)
movq 0x28(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movw %r12w, (%r14,%rax)
movq 0x30(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movl $0x6e322d29, (%r14,%rax) # imm = 0x6E322D29
movl $0x28646e, 0x3(%r14,%rax) # imm = 0x28646E
movq 0x38(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movw %r12w, (%r14,%rax)
movq 0x40(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
xorl %ecx, %ecx
movb %cl, 0x2(%r14,%rax)
movw $0x5f29, (%r14,%rax)    # imm = 0x5F29
movq 0x50(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
movw %r13w, (%r14,%rax)
movq 0x58(%r15), %rsi
movq %r14, %rdi
callq 0x2360
movq 0x48(%r15), %rdi
callq 0x22b0
movl %eax, %r15d
movq %r14, %rdi
callq 0x20e0
addq %r14, %rax
testl %r15d, %r15d
je 0x679e
movw $0x5f, 0x4(%rax)
movl $0x6c6c615f, (%rax)     # imm = 0x6C6C615F
jmp 0x67a8
movb $0x0, 0x4(%rax)
movl $0x5f4b475f, (%rax)     # imm = 0x5F4B475F
leaq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0x2360
movq %r14, %rdi
callq 0x20e0
addq %r14, %rax
cmpl $0x3, %ebx
ja 0x6828
movl %ebx, %ecx
leaq 0x2a23(%rip), %rdx      # 0x91f0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movabsq $0x7461642e676f6c5f, %rcx # imm = 0x7461642E676F6C5F
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
jmp 0x6839
movabsq $0x642e61727478655f, %rcx # imm = 0x642E61727478655F
jmp 0x681c
movabsq $0x7461642e736575, %rcx # imm = 0x7461642E736575
movq %rcx, 0x5(%rax)
movabsq $0x7365756c6176705f, %rcx # imm = 0x7365756C6176705F
movq %rcx, (%rax)
jmp 0x6839
movabsq $0x642e656c6261745f, %rcx # imm = 0x642E656C6261745F
movq %rcx, (%rax)
movl $0x746164, 0x7(%rax)    # imm = 0x746164
jmp 0x6839
movups 0x2d5b(%rip), %xmm0     # 0x958a
movups %xmm0, (%rax)
movl $0x746164, 0xf(%rax)    # imm = 0x746164
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop