// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/process.c
// Function: export_datafolds
void export_datafolds(char* separator, int newseed)
{
 /*!Last Changed 21.04.2007 added export_single_file*/
 /*!Last Changed 30.10.2005*/
 /*!Last Changed 16.10.2005*/
 /*!Last Changed 26.04.2005 added runcount and mysrand*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 int i, k, **partition, *classes, *classcounts;
 mustnormalize = NO;
 get_prior_information();
 mysrand(newseed);
 classes = read_train_and_test_lines(&classcounts);
 partition = safemalloc(get_parameter_i("runcount") * sizeof(int *), "export_datafolds", 10);
 for (k = 0; k < get_parameter_i("runcount"); k++)
   partition[k] = stratified_partition(classes, trainlinecount, current_dataset->classno, classcounts);
 for (k = 0; k < get_parameter_i("runcount"); k++)
   for (i = 0; i < get_parameter_i("foldcount"); i++)
    {
     get_fold(i, partition[k]);
     pre_process();
     if (get_parameter_l("namestype") != NAMES_CMU)
      {
       export_single_file(separator, 0, k, i, traindata, NULL);
       export_single_file(separator, 1, k, i, testdata, NULL);
      }
     else
       export_single_file(separator, 0, k, i, traindata, testdata);
     post_process(YES);
     if (traindata)
      {
       deallocate(traindata);
       traindata = NULL;
      }
     if (testdata)
      {
       deallocate(testdata);
       testdata = NULL;
      }
    }
 free_2d((void**)partition, get_parameter_i("runcount"));
 free_train_and_test_lines();
 safe_free(classes);
 if (current_dataset->classno > 0)
   safe_free(classcounts);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl $0x0, 0x2e0607(%rip)    # 0x367e40
callq 0x86430
movl -0xc(%rbp), %edi
callq 0x54580
leaq -0x30(%rbp), %rdi
callq 0x87220
movq %rax, -0x28(%rbp)
leaq 0x5ff03(%rip), %rdi     # 0xe775d
callq 0x78f10
movslq %eax, %rdi
shlq $0x3, %rdi
leaq 0x60a62(%rip), %rsi     # 0xe82cf
movl $0xa, %edx
callq 0x52d70
movq %rax, -0x20(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x34(%rbp)
leaq 0x5fece(%rip), %rdi     # 0xe775d
callq 0x78f10
movl %eax, %ecx
movl -0x34(%rbp), %eax
cmpl %ecx, %eax
jge 0x878d4
movq -0x28(%rbp), %rdi
movl 0x7dc39(%rip), %esi     # 0x1054e0
movq 0x7df92(%rip), %rax     # 0x105840
movl 0x10(%rax), %edx
movq -0x30(%rbp), %rcx
callq 0x43d20
movq %rax, %rdx
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x87882
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x38(%rbp)
leaq 0x5fe75(%rip), %rdi     # 0xe775d
callq 0x78f10
movl %eax, %ecx
movl -0x38(%rbp), %eax
cmpl %ecx, %eax
jge 0x87a14
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0x3c(%rbp)
leaq 0x5fe58(%rip), %rdi     # 0xe7766
callq 0x78f10
movl %eax, %ecx
movl -0x3c(%rbp), %eax
cmpl %ecx, %eax
jge 0x87a04
movl -0x10(%rbp), %edi
movq -0x20(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x867e0
callq 0x87c40
leaq 0x5c4ff(%rip), %rdi     # 0xe3e3f
callq 0x792b0
cmpl $0x5, %eax
je 0x87989
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x10(%rbp), %ecx
movq 0x2e04a5(%rip), %r8     # 0x367e00
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %r9d
callq 0x876f0
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x10(%rbp), %ecx
movq 0x2e0490(%rip), %r8     # 0x367e08
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %r9d
callq 0x876f0
jmp 0x879a8
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x10(%rbp), %ecx
movq 0x2e0466(%rip), %r8     # 0x367e00
movq 0x2e0467(%rip), %r9     # 0x367e08
xorl %esi, %esi
callq 0x876f0
movl $0x1, %edi
callq 0x85860
cmpq $0x0, 0x2e0446(%rip)    # 0x367e00
je 0x879d3
movq 0x2e043d(%rip), %rdi    # 0x367e00
callq 0x44510
movq $0x0, 0x2e042d(%rip) # 0x367e00
cmpq $0x0, 0x2e042d(%rip)    # 0x367e08
je 0x879f4
movq 0x2e0424(%rip), %rdi    # 0x367e08
callq 0x44510
movq $0x0, 0x2e0414(%rip) # 0x367e08
jmp 0x879f6
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x87901
jmp 0x87a06
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x878db
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq 0x5fd3a(%rip), %rdi     # 0xe775d
callq 0x78f10
movq -0x48(%rbp), %rdi
movl %eax, %esi
callq 0x52e20
callq 0x8b040
movq -0x28(%rbp), %rdi
callq 0x52e80
movq 0x7ddf8(%rip), %rax     # 0x105840
cmpl $0x0, 0x10(%rax)
jle 0x87a57
movq -0x30(%rbp), %rdi
callq 0x52e80
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax)