// File: /workspace/github_cpp_makefile_star2_O1/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 0xacef
xorl %edx, %edx
movq (%rax), %rsi
movzbl 0x3c(%rsi), %esi
addq %rsi, %rdx
addq $0x8, %rax
cmpq %rcx, %rax
jne 0xacd3
testq %rdx, %rdx
jne 0xaeae
movl $0x0, (%rbx)
leaq 0x50(%rbx), %r15
movq 0x50(%rbx), %r12
cmpq %r15, %r12
je 0xad40
movl $0xd8, %edi
callq 0x53c0
movq %rax, %r14
movl 0x130(%rbx), %edx
incl %edx
movl %edx, 0x130(%rbx)
movq 0x10(%r12), %rcx
movq %rax, %rdi
movl $0x2, %esi
callq 0xf24c
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc1c4
movq (%r12), %r12
jmp 0xacfd
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
cmpq %rcx, %rax
je 0xad94
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 0xae35
addq $0x8, %rax
cmpq %rcx, %rax
jne 0xad6d
movq %rbx, %rdi
callq 0xb62a
movl %eax, %ebp
movq %rbx, %rdi
callq 0xa5ec
orb %al, %bpl
cmpb $0x1, %bpl
jne 0xadb7
movq %rbx, %rdi
callq 0xba2c
movq %rbx, %rdi
callq 0xbb82
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x62c8
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 0x8d5c
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x8f5c
leaq 0x50(%rsp), %rdi
callq 0x62ec
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xae25
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, %r14
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1b7eb(%rip), %rsi     # 0x2663d
leaq 0x1b7fc(%rip), %rdx     # 0x26655
leaq 0x30(%rsp), %rdi
callq 0x7592
movl $0x1, (%r14)
leaq 0x8(%r14), %rdi
movq %r14, %rax
addq $0x18, %rax
movq %rax, 0x8(%r14)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movb $0x1, %bpl
callq 0x7622
movl $0x368, 0x28(%r14)      # imm = 0x368
xorl %ebp, %ebp
leaq 0x29b71(%rip), %rsi     # 0x34a10
leaq -0x39b2(%rip), %rdx     # 0x74f4
movq %r14, %rdi
callq 0x5680
leaq 0x1b915(%rip), %rdi     # 0x267ca
leaq 0x1b781(%rip), %rsi     # 0x2663d
leaq 0x1b952(%rip), %rcx     # 0x26815
movl $0x34f, %edx            # imm = 0x34F
callq 0x52c0
jmp 0xaee0
jmp 0xaee0
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x62ec
jmp 0xaf14
movq %rax, %rbx
jmp 0xaf14
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xaf07
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x53e0
jmp 0xaf07
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xaf14
movq %r14, %rdi
callq 0x5300
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xaf38
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
jmp 0xaf33
movq %rax, %rbx
movl $0xd8, %esi
movq %r14, %rdi
callq 0x53e0
movq %rbx, %rdi
callq 0x56a0