// File: /workspace/github_cpp_makefile_star2_O3/WShabti-Team[P]WShabtiPict/wshabtilib/api/model.cpp
// Function: pictcore::Model::generateFull()
void Model::generateFull()
{
    // no support for result rows in this generation mode
    assert( 0 == GetResultParameterCount() );

    GlobalZerosCount = 0;
    // turn each submodel's output into a PseudoParameter and add to model
    for( SubmodelCollection::iterator im = m_submodels.begin(); im != m_submodels.end(); ++im )
    {
        // Make a pseudo-parameter from the submodel, add to this model
        // Ignore first arg (order) - it'll be reset below
        Parameter *pseudo = new PseudoParameter( 2, ++m_lastParamId, *im );
        AddParameter( pseudo );
    }

    // initialize combinations based on contents of m_parameters
    vector<Combination*> vecCombo;

    // set all parameters to order = number of parameters
    // (include the pseudo-parameters)
    // let's estimate how many rows we'll produce
    long rows = 1;
    for( ParamCollection::iterator ip = m_parameters.begin(); ip != m_parameters.end(); ++ip )
    {
        ( *ip )->SetOrder( static_cast<int>( m_parameters.size() ) );
        rows *= ( *ip )->GetValueCount();
        if( rows > MaxRowsToGenerate )
        {
            throw GenerationError( __FILE__, __LINE__, TooManyRows );
        }
    }
    bool r1 = mapExclusionsToPseudoParameters();
    bool r2 = excludeConflictingParamValues();
    if( r1 || r2 ) deriveSubmodelExclusions();

    mapRowSeedsToPseudoParameters();

    Combination baseCombo( this );
    choose( m_parameters.begin(),
            m_parameters.end(),
            static_cast<int>( m_parameters.size() ),
            static_cast<int>( m_parameters.size() ),
            baseCombo, vecCombo );
    gcd( vecCombo );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
cmpq %rcx, %rax
je 0xabac
xorl %edx, %edx
movq %rax, %rsi
movq (%rsi), %rdi
movzbl 0x3c(%rdi), %edi
addq %rdi, %rdx
addq $0x8, %rsi
cmpq %rcx, %rsi
jne 0xab90
testq %rdx, %rdx
jne 0xad6c
movl $0x0, (%rbx)
leaq 0x50(%rbx), %r14
movq 0x50(%rbx), %r12
cmpq %r14, %r12
je 0xac08
movl $0xd8, %edi
callq 0x53c0
movq %rax, %r15
movl 0x130(%rbx), %edx
incl %edx
movl %edx, 0x130(%rbx)
movq 0x10(%r12), %rcx
movq %rax, %rdi
movl $0x2, %esi
callq 0xf068
movq %rbx, %rdi
movq %r15, %rsi
callq 0xc0a4
movq (%r12), %r12
cmpq %r14, %r12
jne 0xabbf
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpq %rcx, %rax
je 0xac54
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x3, %rdx
movl $0x1, %esi
movq %rsi, %rdi
movq (%rax), %rsi
movl %edx, 0x28(%rsi)
movslq 0x38(%rsi), %rsi
imulq %rdi, %rsi
cmpq $0xf4241, %rsi          # imm = 0xF4241
jge 0xacf5
addq $0x8, %rax
cmpq %rcx, %rax
jne 0xac2d
movq %rbx, %rdi
callq 0xb4fe
movl %eax, %ebp
movq %rbx, %rdi
callq 0xa49c
orb %al, %bpl
cmpb $0x1, %bpl
jne 0xac77
movq %rbx, %rdi
callq 0xb918
movq %rbx, %rdi
callq 0xba6e
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x630e
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rdx, %rcx
subq %rsi, %rcx
shrq $0x3, %rcx
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
leaq 0x50(%rsp), %r9
movq %rbx, %rdi
movl %ecx, %r8d
callq 0x8c4c
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x8e46
leaq 0x50(%rsp), %rdi
callq 0x6332
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xace5
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x53e0
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x51e0
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b92b(%rip), %rsi     # 0x2663d
leaq 0x1b93c(%rip), %rdx     # 0x26655
leaq 0x30(%rsp), %rdi
callq 0x74e8
movl $0x1, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movb $0x1, %bpl
callq 0x757e
movl $0x368, 0x28(%rbx)      # imm = 0x368
xorl %ebp, %ebp
leaq 0x29cf3(%rip), %rsi     # 0x34a50
leaq -0x391a(%rip), %rdx     # 0x744a
movq %rbx, %rdi
callq 0x5680
leaq 0x1ba57(%rip), %rdi     # 0x267ca
leaq 0x1b8c3(%rip), %rsi     # 0x2663d
leaq 0x1ba94(%rip), %rcx     # 0x26815
movl $0x34f, %edx            # imm = 0x34F
callq 0x52c0
jmp 0xadb0
jmp 0xadb0
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x6332
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xadf3
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
jmp 0xadee
movq %rax, %r14
jmp 0xadf3
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xadcf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
testb %bpl, %bpl
jne 0xadd9
jmp 0xadf3
movq %rax, %r14
movq %rbx, %rdi
callq 0x5300
jmp 0xadf3
movq %rax, %r14
movl $0xd8, %esi
movq %r15, %rdi
callq 0x53e0
movq %r14, %rdi
callq 0x56a0
nop