// File: WShabti-Team[P]WShabtiPict/wshabtilib/api/model.cpp
// Function: pictcore::Model::deriveSubmodelExclusions()
void Model::deriveSubmodelExclusions()
{
    ExclusionDeriver deriver( GetTask() );

    // the deriver must know about pseudo parameters
    ParamCollection params;
    GetAllParameters( params );
    for( ParamCollection::iterator ip = params.begin(); ip != params.end(); ++ip )
    {
        deriver.AddParameter( *ip );
    }

    // run the deriver on the newly created set of exclusions
    if( !deriver.GetParameters().empty() )
    {
        for( ExclusionCollection::iterator i_e = m_exclusions.begin(); i_e != m_exclusions.end(); ++i_e )
        {
            deriver.AddExclusion( const_cast<Exclusion&> ( *i_e ), true );
        }
        deriver.DeriveExclusions();

        // must clear because some initial exclusions may have been removed during derivation as obsolete
        m_exclusions.clear();
        __insert( m_exclusions, deriver.GetExclusions().begin(), deriver.GetExclusions().end() );
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x170, %rsp            # imm = 0x170
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x8f00
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
callq 0x1d140
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x9240
movq -0x140(%rbp), %rdi
movq -0x138(%rbp), %rsi
callq 0x1d200
jmp 0x1aa66
leaq -0xe0(%rbp), %rdi
callq 0x8c90
movq %rax, -0xf8(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x8cc0
movq %rax, -0x100(%rbp)
leaq -0xf8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x8cf0
testb $0x1, %al
jne 0x1aaa5
jmp 0x1ab01
leaq -0xf8(%rbp), %rdi
callq 0x8d30
movq (%rax), %rsi
leaq -0xc8(%rbp), %rdi
callq 0x1d2c0
jmp 0x1aac2
jmp 0x1aac4
leaq -0xf8(%rbp), %rdi
callq 0x8d70
jmp 0x1aa79
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x9260
leaq -0xc8(%rbp), %rdi
callq 0x1d340
jmp 0x1ac7f
leaq -0xc8(%rbp), %rdi
callq 0x1d2f0
movq %rax, -0x148(%rbp)
jmp 0x1ab16
movq -0x148(%rbp), %rdi
callq 0x1b820
testb $0x1, %al
jne 0x1ac5e
movq -0x140(%rbp), %rdi
addq $0x20, %rdi
callq 0xaf20
movq %rax, -0x108(%rbp)
movq -0x140(%rbp), %rdi
addq $0x20, %rdi
callq 0xab70
movq %rax, -0x110(%rbp)
leaq -0x108(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0xaf50
testb $0x1, %al
jne 0x1ab71
jmp 0x1abcb
leaq -0x108(%rbp), %rdi
callq 0xafa0
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
movl $0x1, %edx
callq 0x9ef0
movb %dl, -0x151(%rbp)
movq %rax, -0x150(%rbp)
jmp 0x1aba0
movb -0x151(%rbp), %al
movq -0x150(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movb %al, -0x118(%rbp)
leaq -0x108(%rbp), %rdi
callq 0xb000
jmp 0x1ab41
leaq -0xc8(%rbp), %rdi
callq 0xa300
jmp 0x1abd9
movq -0x140(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x168(%rbp)
callq 0x1d300
leaq -0xc8(%rbp), %rdi
callq 0x1d320
movq %rax, -0x160(%rbp)
jmp 0x1ac05
movq -0x160(%rbp), %rdi
callq 0xaf20
movq %rax, -0x128(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x1d320
movq %rax, -0x170(%rbp)
jmp 0x1ac2d
movq -0x170(%rbp), %rdi
callq 0xab70
movq -0x168(%rbp), %rdi
movq %rax, -0x130(%rbp)
movq -0x128(%rbp), %rsi
movq -0x130(%rbp), %rdx
callq 0x1d0c0
jmp 0x1ac5c
jmp 0x1ac5e
leaq -0xe0(%rbp), %rdi
callq 0x9260
leaq -0xc8(%rbp), %rdi
callq 0x1d340
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0x79d0
nopl (%rax,%rax)