// File: /workspace/github_c_makefile_star2_O0/stonezwr[P]SpiKL-IP/network.C
// Function: Network::LoadFirstSpeechTrainCV(networkmode_t)
int Network::LoadFirstSpeechTrainCV(networkmode_t networkmode){
    assert((_fold_ind>=0)&&(_fold_ind<_fold));

    LSMLoadLayers();
    neuronmode_t neuronmode_input = NORMAL, neuronmode_reservoir = NORMAL, neuronmode_readout = NORMAL;
    // determine the neuron mode by the network mode:
    DetermineNetworkNeuronMode(networkmode, neuronmode_input, neuronmode_reservoir, neuronmode_readout);


    if(_fold_ind == 0) _train_fold_ind = 1;
    else _train_fold_ind = 0;
    assert(!_CVspeeches.empty());
    _cv_train_sp_iter = _CVspeeches[_train_fold_ind].begin();
    if(_cv_train_sp_iter != _CVspeeches[_train_fold_ind].end()){
        LoadSpeeches(*_cv_train_sp_iter, neuronmode_input, neuronmode_reservoir, neuronmode_readout,true); 
        return (*_cv_train_sp_iter)->Index();
    }else{
        cout<<"Warning, no training speech is specified!!"<<endl;
        _sp = NULL;
        return -1;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x40(%rbp)
xorl %eax, %eax
cmpl $0x0, 0x22c(%rcx)
movb %al, -0x31(%rbp)
jl 0x2011b
movq -0x40(%rbp), %rcx
movl 0x22c(%rcx), %eax
cmpl 0x228(%rcx), %eax
setl %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x20124
jmp 0x20126
jmp 0x20145
leaq 0x15865(%rip), %rdi     # 0x35992
leaq 0x151e6(%rip), %rsi     # 0x3531a
movl $0x243, %edx            # imm = 0x243
leaq 0x15874(%rip), %rcx     # 0x359b4
callq 0x4210
movq -0x40(%rbp), %rdi
callq 0x21060
movq -0x40(%rbp), %rdi
movl $0x3, -0x18(%rbp)
movl $0x3, -0x1c(%rbp)
movl $0x3, -0x20(%rbp)
leaq -0x14(%rbp), %rsi
leaq -0x18(%rbp), %rdx
leaq -0x1c(%rbp), %rcx
leaq -0x20(%rbp), %r8
callq 0x211b0
movq -0x40(%rbp), %rax
cmpl $0x0, 0x22c(%rax)
jne 0x20199
movq -0x40(%rbp), %rax
movl $0x1, 0x230(%rax)
jmp 0x201a7
movq -0x40(%rbp), %rax
movl $0x0, 0x230(%rax)
movq -0x40(%rbp), %rdi
addq $0x238, %rdi            # imm = 0x238
callq 0x24370
xorb $-0x1, %al
testb $0x1, %al
jne 0x201bf
jmp 0x201c1
jmp 0x201e0
leaq 0x1581f(%rip), %rdi     # 0x359e7
leaq 0x1514b(%rip), %rsi     # 0x3531a
movl $0x24d, %edx            # imm = 0x24D
leaq 0x157d9(%rip), %rcx     # 0x359b4
callq 0x4210
movq -0x40(%rbp), %rax
movq %rax, %rdi
addq $0x238, %rdi            # imm = 0x238
movslq 0x230(%rax), %rsi
callq 0x243b0
movq %rax, %rdi
callq 0x23cb0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movq %rcx, 0x250(%rax)
movq %rax, %rcx
addq $0x250, %rcx            # imm = 0x250
movq %rcx, -0x48(%rbp)
movq %rax, %rdi
addq $0x238, %rdi            # imm = 0x238
movslq 0x230(%rax), %rsi
callq 0x243b0
movq %rax, %rdi
callq 0x23d20
movq -0x48(%rbp), %rdi
movq %rax, -0x30(%rbp)
leaq -0x30(%rbp), %rsi
callq 0x23ce0
testb $0x1, %al
jne 0x2025b
jmp 0x202a4
movq -0x40(%rbp), %rdi
addq $0x250, %rdi            # imm = 0x250
callq 0x23d50
movq -0x40(%rbp), %rdi
movq (%rax), %rsi
movl -0x18(%rbp), %edx
movl -0x1c(%rbp), %ecx
movl -0x20(%rbp), %r8d
movl $0x1, %r9d
callq 0x20dc0
movq -0x40(%rbp), %rdi
addq $0x250, %rdi            # imm = 0x250
callq 0x23d50
movq (%rax), %rdi
callq 0x24310
movl %eax, -0x4(%rbp)
jmp 0x202dc
movq 0x2cd1d(%rip), %rdi     # 0x4cfc8
leaq 0x1574a(%rip), %rsi     # 0x359fc
callq 0x4360
movq %rax, %rdi
movq 0x2ccf7(%rip), %rsi     # 0x4cfb8
callq 0x43b0
movq -0x40(%rbp), %rax
movq $0x0, 0x260(%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)