GameObject BackgroundGenerator::generate(uint, Box, Object@[]@)

Temps: 6, 13, 14, 15, 16, 17, 18, 21, 24, 26, 28, 30, 34, 42, 44, 46, 50, 52, 57

Variables: 
 -002: uint amount
 -003: Box box
 -005: Object@[]@ inItems
 002: (heap) Vector3[] positions
 004: (heap) GameObject obj
 005: uint control
 007: uint i
 008: bool intersects
 011: Vector3 destVector
 022: uint i2
 022: uint randItemNr
 032: (heap) Object temp
 036: (heap) Object@ item
 038: (heap) MyColor endColor
 040: (heap) MyColor startColor
 055: Vector3 rndVec
 000: BackgroundGenerator this
 013: (heap) Random {noname}
 024: (heap) Vector3 {noname}
 026: (heap) Box {noname}
 028: (heap) Box {noname}
 030: (heap) Random {noname}
 034: (heap) Object {noname}
 042: (heap) Model {noname}
 044: (heap) MyColor {noname}
 046: (heap) MyColor {noname}
 052: (heap) Color {noname}
 057: (heap) GameObject {noname}
 021: Vector3 {noname}
 050: Color {noname}


- 80,3 -
    0  57 *    VarDecl  0
    0  57 *    VarDecl  1
    0  57 *    VarDecl  2
    0  57 *    SUSPEND
    1  57 *    VarDecl  3
    1  57 *    CALL     4602           (Vector3[]@ factstub())
    3  57 *    STOREOBJ v2
- 81,3 -
    4  57 *    SUSPEND
    5  57 *    VarDecl  4
    5  57 *    CALL     4028           (GameObject@ GameObject())
    7  57 *    STOREOBJ v4
- 82,3 -
    8  57 *    SUSPEND
    9  57 *    VarDecl  5
    9  57 *    SetV4    v5, 0x0          (i:0, f:0)
- 83,8 -
   11  57 *    SUSPEND
   12  57 *    VarDecl  6
   12  57 *    SetV4    v7, 0x0          (i:0, f:0)
   14  57 *    JMP      +403              (d:419)
   16  57 * 4:
   16  57 *    SUSPEND
- 84,4 -
   17  57 * {
   17  57 *    SUSPEND
   18  57 *    VarDecl  7
   18  57 *    SetV1    v6, 0x0
   20  57 *    CpyVtoV4 v8, v6
- 86,4 -
   22  57 *    SUSPEND
   23  57 *    VarDecl  8
   23  57 *    PSF      v11
   24  59 *    CALLSYS  183           (Vector3::Vector3())
   26  57 *    ObjInfo  v11, 1
   26  57 *    PshVPtr  v-3
   27  59 *    ADDSi    v44, 134217938
   29  59 *    ADDSi    v8, 67108879
   31  59 *    PopRPtr
   32  57 *    RDR4     v6
   33  57 *    PshV4    v6
   34  58 *    PshVPtr  v-3
   35  60 *    ADDSi    v32, 134217938
   37  60 *    ADDSi    v8, 67108879
   39  60 *    PopRPtr
   40  58 *    RDR4     v14
   41  58 *    PshV4    v14
   42  59 *    PshVPtr  v-3
   43  61 *    ADDSi    v44, 134217938
   45  61 *    ADDSi    v4, 67108879
   47  61 *    PopRPtr
   48  59 *    RDR4     v15
   49  59 *    PshV4    v15
   50  60 *    PshVPtr  v-3
   51  62 *    ADDSi    v32, 134217938
   53  62 *    ADDSi    v4, 67108879
   55  62 *    PopRPtr
   56  60 *    RDR4     v16
   57  60 *    PshV4    v16
   58  61 *    PshVPtr  v-3
   59  63 *    ADDSi    v44, 134217938
   61  63 *    ADDSi    v0, 67108879
   63  63 *    PopRPtr
   64  61 *    RDR4     v17
   65  61 *    PshV4    v17
   66  62 *    PshVPtr  v-3
   67  64 *    ADDSi    v32, 134217938
   69  64 *    ADDSi    v0, 67108879
   71  64 *    PopRPtr
   72  62 *    RDR4     v18
   73  62 *    PshV4    v18
   74  63 *    PshVPtr  v0
   75  65 *    ADDSi    v64, 134217952
   77  65 *    RDSPtr
   78  65 *    RefCpyV  v13, 0x2c82590          (i:46671248, f:2.30587e-316)
   81  65 *    PopPtr
   82  63 *    VAR      v13
   83  65 *    PSF      v21
   84  67 *    GETOBJ   2
   85  67 *    CALL     4357           (Vector3 getRandVectorSd(Random@, float, float, float, float, float, float))
   87  57 *    ObjInfo  v21, 1
   87  57 *    PSF      v21
   88  59 *    PSF      v11
   89  61 *    COPY     v3, 67108879
   91  59 *    ObjInfo  v21, 0
   91  59 *    PopPtr
- 87,9 -
   92  57 *    SUSPEND
   93  57 *    VarDecl  9
   93  57 *    SetV4    v22, 0x0          (i:0, f:0)
   95  57 *    JMP      +67              (d:164)
   97  57 * 8:
   97  57 *    SUSPEND
- 88,5 -
   98  57 * {
   98  57 *    SUSPEND
   99  57 *    CMPIu    v5, 100
  101  57 *    JNP      +3              (d:106)
- 88,26 -
  103  57 * {
  103  57 *    SUSPEND
  104  57 * {
  104  57 * }
  104  57 *    JMP      +67              (d:173)
- 89,5 -
  106  56   }
  106  57 * 9:
  106  57 *    SUSPEND
  107  57 *    IncVi    v5
- 90,5 -
  108  57 *    SUSPEND
  109  57 *    PshC4    0x3f000000          (i:1056964608, f:0.5)
  111  58 *    PSF      v24
  112  60 *    PshV4    v22
  113  61 *    PshVPtr  v2
  114  63 *    CALLSYS  4606           (Vector3& Array::opIndex(uint))
  116  60 *    PshRPtr
  117  62 *    ALLOC    0x487f30, 184             (type:Vector3)
  121  58 *    VAR      v24
  122  60 *    GETOBJ   0
  123  60 *    CALL     4364           (Box@ getBound(Vector3, float))
  125  57 *    STOREOBJ v28
  126  57 *    ChkNullV v28
  127  57 *    VAR      v28
  128  59 *    PshC4    0x3f000000          (i:1056964608, f:0.5)
  130  60 *    PSF      v24
  131  62 *    PSF      v11
  132  64 *    ALLOC    0x487f30, 184             (type:Vector3)
  136  60 *    VAR      v24
  137  62 *    GETOBJ   0
  138  62 *    CALL     4364           (Box@ getBound(Vector3, float))
  140  59 *    STOREOBJ v26
  141  59 *    PshVPtr  v26
  142  61 *    GETOBJ   2
  143  61 *    CALLINTF 4465           (bool Box::intersects(Box))
  145  57 *    CpyRtoV4 v14
  146  57 *    FREE     v26, 0x2c82e10          (i:46673424, f:2.30597e-316)
  149  57 *    CpyVtoR4 v14
  150  57 *    JLowZ    +10              (d:162)
- 91,6 -
  152  57 * {
  152  57 *    SUSPEND
  153  57 *    DecVi    v7
- 92,6 -
  154  57 *    SUSPEND
  155  57 *    SetV1    v14, 0x1
  157  57 *    CpyVtoV4 v8, v14
- 93,6 -
  159  57 *    SUSPEND
  160  57 * {
  160  57 * }
  160  57 *    JMP      +11              (d:173)
- 87,47 -
  162  56   }
  162  57 * 10:
  162  57 * }
  162  57 * 7:
  162  57 *    SUSPEND
  163  57 *    IncVi    v22
- 87,22 -
  164  57 * 5:
  164  57 *    SUSPEND
  165  57 *    PshVPtr  v2
  166  59 *    CALLSYS  131           (uint Array::length() const)
  168  57 *    CpyRtoV4 v14
  169  57 *    CMPu     v22, v14
  171  57 *    JS       -76              (d:97)
- 96,4 -
  173  57 * 6:
  173  57 *    SUSPEND
  174  57 *    CpyVtoV4 v15, v8
  176  57 *    NOT      v15
  177  57 *    CpyVtoR4 v15
  178  57 *    JLowZ    +237              (d:417)
- 97,5 -
  180  57 * {
  180  57 *    SUSPEND
  181  57 *    VAR      v11
  182  59 *    PshVPtr  v2
  183  61 *    GETREF   2
  184  61 *    CALLSYS  4609           (void Array::add(const Vector3&in))
- 98,5 -
  186  57 *    SUSPEND
  187  57 *    VarDecl  10
  187  57 *    PshVPtr  v-5
  188  59 *    CALLSYS  131           (uint Array::length() const)
  190  57 *    CpyRtoV4 v15
  191  57 *    SUBIi    v16, v15, 1
  194  57 *    PshV4    v16
  195  58 *    PshC4    0x0          (i:0, f:0)
  197  59 *    PshVPtr  v0
  198  61 *    ADDSi    v64, 134217952
  200  61 *    RDSPtr
  201  61 *    RefCpyV  v30, 0x2c82590          (i:46671248, f:2.30587e-316)
  204  61 *    CALLINTF 4464           (uint Random::get(int, int))
  206  57 *    CpyRtoV4 v15
  207  57 *    FREE     v30, 0x2c82590          (i:46671248, f:2.30587e-316)
  210  57 *    CpyVtoV4 v22, v15
- 101,5 -
  212  57 *    SUSPEND
  213  57 *    VarDecl  11
  213  57 *    PshV4    v22
  214  58 *    PshVPtr  v-5
  215  60 *    CALLSYS  4271           (Object@& Array::opIndex(uint))
  217  57 *    PshRPtr
  218  59 *    RDSPtr
  219  59 *    CHKREF
  220  59 *    RefCpyV  v34, 0x492650          (i:4793936, f:2.36852e-317)
  223  59 *    PopPtr
  224  57 *    VAR      v34
  225  59 *    GETOBJREF 0
  226  59 *    CALLSYS  792           (Object@ Object(const Object&in))
  228  57 *    STOREOBJ v32
  229  57 *    FREE     v34, 0x492650          (i:4793936, f:2.36852e-317)
- 102,5 -
  232  57 *    SUSPEND
  233  57 *    VarDecl  12
  233  57 *    PshVPtr  v32
  234  59 *    RefCpyV  v34, 0x492650          (i:4793936, f:2.36852e-317)
  237  59 *    PopPtr
  238  57 *    PshVPtr  v34
  239  59 *    RefCpyV  v36, 0x492650          (i:4793936, f:2.36852e-317)
  242  59 *    FREE     v34, 0x492650          (i:4793936, f:2.36852e-317)
  245  59 *    PopPtr
- 104,5 -
  246  57 *    SUSPEND
  247  57 *    PshC4    0x3e99999a          (i:1050253722, f:0.3)
  249  58 *    PshVPtr  v36
  250  60 *    CALLSYS  815           (void Object::scale(float))
- 105,5 -
  252  57 *    SUSPEND
  253  57 *    VarDecl  13
  253  57 *    PshC4    0x32          (i:50, f:7.00649e-044)
  255  58 *    PshC4    0x32          (i:50, f:7.00649e-044)
  257  59 *    PshC4    0x96          (i:150, f:2.10195e-043)
  259  60 *    CALL     4142           (MyColor@ MyColor(int, int, int))
  261  57 *    STOREOBJ v38
- 106,5 -
  262  57 *    SUSPEND
  263  57 *    VarDecl  14
  263  57 *    PshC4    0x5c          (i:92, f:1.28919e-043)
  265  58 *    PshC4    0xba          (i:186, f:2.60642e-043)
  267  59 *    PshC4    0xe9          (i:233, f:3.26503e-043)
  269  60 *    CALL     4142           (MyColor@ MyColor(int, int, int))
  271  57 *    STOREOBJ v40
- 115,5 -
  272  57 *    SUSPEND
  273  57 *    PSF      v52
  274  59 *    ALLOC    0x489a00, 525             (type:Color)
  278  57 *    LoadVObjR v11, v8, 67108879
  281  57 *    RDR4     v17
  282  57 *    PshV4    v17
  283  58 *    PshVPtr  v-3
  284  60 *    ADDSi    v44, 134217938
  286  60 *    ADDSi    v8, 67108879
  288  60 *    PopRPtr
  289  58 *    RDR4     v6
  290  58 *    PshV4    v6
  291  59 *    PshVPtr  v-3
  292  61 *    ADDSi    v32, 134217938
  294  61 *    ADDSi    v8, 67108879
  296  61 *    PopRPtr
  297  59 *    RDR4     v15
  298  59 *    PshV4    v15
  299  60 *    CALL     4140           (MyColor@ MyColor())
  301  60 *    STOREOBJ v44
  302  60 *    PshVPtr  v38
  303  62 *    CHKREF
  304  62 *    PshVPtr  v44
  305  64 *    CALLSYS  4           (int& _builtin_object_::opAssign(int&in))
  307  60 *    VAR      v44
  308  62 *    CALL     4140           (MyColor@ MyColor())
  310  62 *    STOREOBJ v46
  311  62 *    PshVPtr  v40
  312  64 *    CHKREF
  313  64 *    PshVPtr  v46
  314  66 *    CALLSYS  4           (int& _builtin_object_::opAssign(int&in))
  316  62 *    VAR      v46
  317  64 *    PSF      v50
  318  66 *    GETOBJ   2
  319  66 *    GETOBJ   4
  320  66 *    CALL     4369           (Color modColor(MyColor, MyColor, float, float, float))
  322  57 *    ObjInfo  v50, 1
  322  57 *    PSF      v50
  323  59 *    PshVPtr  v52
  324  61 *    COPY     v4, 67108885
  326  59 *    PopPtr
  327  57 *    ObjInfo  v50, 0
  327  57 *    VAR      v52
  328  59 *    PshVPtr  v36
  329  61 *    CALLSYS  838           (Model@ Object::get_model() const)
  331  59 *    STOREOBJ v42
  332  59 *    PshVPtr  v42
  333  61 *    GETOBJ   2
  334  61 *    CALLSYS  1351           (void Model::setColor(Color))
  336  57 *    FREE     v42, 0x49f960          (i:4847968, f:2.39521e-317)
- 116,5 -
  339  57 *    SUSPEND
  340  57 *    VarDecl  15
  340  57 *    PSF      v55
  341  59 *    CALLSYS  183           (Vector3::Vector3())
  343  57 *    ObjInfo  v55, 1
  343  57 *    PshC4    0x42c80000          (i:1120403456, f:100)
  345  58 *    PshC4    0xc2c80000          (i:-1027080192, f:-100)
  347  59 *    PshC4    0x42c80000          (i:1120403456, f:100)
  349  60 *    PshC4    0xc2c80000          (i:-1027080192, f:-100)
  351  61 *    PshC4    0x42c80000          (i:1120403456, f:100)
  353  62 *    PshC4    0xc2c80000          (i:-1027080192, f:-100)
  355  63 *    PshVPtr  v0
  356  65 *    ADDSi    v64, 134217952
  358  65 *    RDSPtr
  359  65 *    RefCpyV  v13, 0x2c82590          (i:46671248, f:2.30587e-316)
  362  65 *    PopPtr
  363  63 *    VAR      v13
  364  65 *    PSF      v21
  365  67 *    GETOBJ   2
  366  67 *    CALL     4357           (Vector3 getRandVectorSd(Random@, float, float, float, float, float, float))
  368  57 *    ObjInfo  v21, 1
  368  57 *    PSF      v21
  369  59 *    PSF      v55
  370  61 *    COPY     v3, 67108879
  372  59 *    ObjInfo  v21, 0
  372  59 *    PopPtr
- 117,5 -
  373  57 *    SUSPEND
  374  57 *    CpyGtoV4 v18, 0x140185b94          (i:5370305428, f:2.65328e-314)
  377  57 *    MULIf    v17, v18, 0.450000
  380  57 *    PshV4    v17
  381  58 *    VAR      v55
  382  60 *    PshVPtr  v36
  383  62 *    GETREF   2
  384  62 *    CALLSYS  801           (void Object::relRotate(const Vector3&in, float))
- 118,5 -
  386  57 *    SUSPEND
  387  57 *    PSF      v24
  388  59 *    PSF      v11
  389  61 *    ALLOC    0x487f30, 184             (type:Vector3)
  393  57 *    VAR      v24
  394  59 *    PshVPtr  v36
  395  61 *    RefCpyV  v34, 0x492650          (i:4793936, f:2.36852e-317)
  398  61 *    PopPtr
  399  59 *    VAR      v34
  400  61 *    PshVPtr  v4
  401  63 *    GETOBJ   2
  402  63 *    GETOBJ   4
  403  63 *    CALLINTF 4689           (uint GameObject::addChild(Object@, Vector3))
  405  57 *    ObjInfo  v55, 0
  405  57 *    FREE     v40, 0x2c8a410          (i:46703632, f:2.30747e-316)
  408  57 *    FREE     v38, 0x2c8a410          (i:46703632, f:2.30747e-316)
  411  57 *    FREE     v36, 0x492650          (i:4793936, f:2.36852e-317)
  414  57 *    FREE     v32, 0x492650          (i:4793936, f:2.36852e-317)
- 83,32 -
  417  57 * }
  417  57 * 11:
  417  57 *    ObjInfo  v11, 0
  417  57 * }
  417  57 * 3:
  417  57 *    SUSPEND
  418  57 *    IncVi    v7
- 83,20 -
  419  57 * 1:
  419  57 *    SUSPEND
  420  57 *    CMPu     v7, v-2
  422  57 *    JS       -408              (d:16)
- 122,3 -
  424  57 * 2:
  424  57 *    SUSPEND
  425  57 *    CALL     4028           (GameObject@ GameObject())
  427  57 *    STOREOBJ v57
  428  57 *    PshVPtr  v4
  429  59 *    CHKREF
  430  59 *    PshVPtr  v57
  431  61 *    CALLSYS  4           (int& _builtin_object_::opAssign(int&in))
  433  57 * {
  433  57 *    FREE     v4, 0x2c81a70          (i:46668400, f:2.30573e-316)
  436  57 *    FREE     v2, 0x2d6dcc0          (i:47635648, f:2.35351e-316)
  439  57 * }
  439  57 *    LOADOBJ  v57
  440  57 * 0:
  440  57 *    FREE     v-3, 0x2c82e10          (i:46673424, f:2.30597e-316)
  443  57 *    FREE     v-5, 0x2cf8f10          (i:47157008, f:2.32987e-316)
  446  57 *    RET      7
