// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edx, -0x2c(%rbp)
movq %rsi, %r15
movq %rdi, %r14
xorl %r12d, %r12d
xorl %edi, %edi
callq 0x21d0
leaq -0x38(%rbp), %rdi
movq %rax, (%rdi)
callq 0x2160
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
leaq -0xd0(%rbp), %rcx
movaps %xmm0, (%rcx)
movaps %xmm1, 0x10(%rcx)
movaps %xmm2, 0x20(%rcx)
movq 0x30(%rax), %rax
movq %rax, 0x30(%rcx)
leaq 0x2d46(%rip), %rdx      # 0x954f
leaq -0x90(%rbp), %rdi
movl $0x50, %esi
callq 0x21a0
movabsq $0x5f43325379726156, %rax # imm = 0x5F43325379726156
movq %rax, (%r14)
movb %r12b, 0x8(%r14)
xorl %ebx, %ebx
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movw $0x2d, %r13w
movw %r13w, (%r14,%rax)
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movabsq $0x2d74736e6f635f, %rcx # imm = 0x2D74736E6F635F
movq %rcx, (%r14,%rax)
movq 0x18(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movw $0x5f, %r12w
movw %r12w, (%r14,%rax)
movq 0x20(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movb %bl, 0x2(%r14,%rax)
xorl %ebx, %ebx
movw $0x5f58, (%r14,%rax)    # imm = 0x5F58
movq 0x28(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movl $0x7473312d, (%r14,%rax) # imm = 0x7473312D
movw $0x28, 0x4(%r14,%rax)
movq 0x30(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movw %r13w, (%r14,%rax)
movq 0x38(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movl $0x6e322d29, (%r14,%rax) # imm = 0x6E322D29
movl $0x28646e, 0x3(%r14,%rax) # imm = 0x28646E
movq 0x40(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movw %r13w, (%r14,%rax)
movq 0x48(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movb %bl, 0x2(%r14,%rax)
movw $0x5f29, (%r14,%rax)    # imm = 0x5F29
movq 0x58(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
movw %r12w, (%r14,%rax)
movq 0x60(%r15), %rsi
movq %r14, %rdi
callq 0x2350
movq 0x50(%r15), %rdi
callq 0x22a0
movl %eax, %r15d
movq %r14, %rdi
callq 0x20e0
addq %r14, %rax
testl %r15d, %r15d
je 0x6997
movw $0x5f, 0x4(%rax)
movl $0x6c6c615f, (%rax)     # imm = 0x6C6C615F
jmp 0x69a1
movb $0x0, 0x4(%rax)
movl $0x5f4b475f, (%rax)     # imm = 0x5F4B475F
leaq -0x90(%rbp), %rsi
movq %r14, %rdi
callq 0x2350
movq %r14, %rdi
callq 0x20e0
addq %r14, %rax
movl -0x2c(%rbp), %ecx
cmpl $0x3, %ecx
ja 0x6a27
movl %ecx, %ecx
leaq 0x2804(%rip), %rdx      # 0x91d0
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movabsq $0x7461642e676f6c5f, %rcx # imm = 0x7461642E676F6C5F
movq %rcx, (%rax)
movb $0x0, 0x8(%rax)
jmp 0x6a38
movabsq $0x642e61727478655f, %rcx # imm = 0x642E61727478655F
jmp 0x6a1b
movabsq $0x7461642e736575, %rcx # imm = 0x7461642E736575
movq %rcx, 0x5(%rax)
movabsq $0x7365756c6176705f, %rcx # imm = 0x7365756C6176705F
movq %rcx, (%rax)
jmp 0x6a38
movabsq $0x642e656c6261745f, %rcx # imm = 0x642E656C6261745F
movq %rcx, (%rax)
movl $0x746164, 0x7(%rax)    # imm = 0x746164
jmp 0x6a38
movups 0x2b80(%rip), %xmm0     # 0x95ae
movups %xmm0, (%rax)
movl $0x746164, 0xf(%rax)    # imm = 0x746164
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq