// // GameObject::addColorSprite from 0x357460 to 0x35864c (4588 bytes) // // 7 xrefs: // > PlayLayer::setupHasCompleted @ 0x31c25c // > GameObject::objectFromVector @ 0x362b9e // > LevelEditorLayer::copyObjectState @ 0x368c36 // > LevelEditorLayer::copyParticleState @ 0x368d0e // > LevelEditorLayer::createObject @ 0x37142e // > EditorUI::getCreateBtn @ 0x3863c4 // > GJBaseGameLayer::createPlayerCollisionBlock @ 0x46fd2e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall GameObject::addColorSprite(GameObject *a1, char **a2) { int m_objectID; // r3 int v4; // r2 bool v5; // zf int v6; // r2 int v7; // r2 cocos2d::CCSprite *v8; // r0 cocos2d::CCSprite *v9; // r6 void (__fastcall *v10)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v11; // r0 int v12; // r2 int v13; // r2 char *v14; // r3 cocos2d::CCSprite *v15; // r6 void (__fastcall *v16)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v17; // r0 cocos2d::CCSprite *v18; // r6 void (__fastcall *v19)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v20; // r0 cocos2d::CCSprite *v21; // r6 void (__fastcall *v22)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v23; // r0 cocos2d::CCSprite *v24; // r6 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v26; // r0 cocos2d::CCSprite *m_colorSprite; // r6 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v29; // r0 cocos2d::CCSprite *v30; // r6 void (__fastcall *v31)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v32; // r0 cocos2d::CCSprite *v33; // r6 void (__fastcall *v34)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v35; // r0 cocos2d::CCSprite *v36; // r0 cocos2d::CCSprite *v37; // r6 void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v39; // r0 char *v40; // r3 cocos2d::CCSprite *v41; // r6 void (__fastcall *v42)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v43; // r0 char *v44; // r3 cocos2d::CCSprite *v45; // r6 void (__fastcall *v46)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v47; // r0 cocos2d::CCSprite *v48; // r0 cocos2d::CCSprite *v49; // r6 void (__fastcall *v50)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v51; // r0 char *v52; // r3 cocos2d::CCSprite *v53; // r6 void (__fastcall *v54)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 int v55; // r0 char v56[4]; // [sp+4h] [bp-10h] BYREF cocos2d::CCSprite *v57; // [sp+8h] [bp-Ch] BYREF m_objectID = a1->m_objectID; if ( m_objectID > 2392 ) { if ( m_objectID == 3027 ) goto LABEL_468; if ( m_objectID > 3027 ) { if ( m_objectID > 3591 ) { if ( m_objectID > 4076 ) { if ( m_objectID > 4180 ) { if ( m_objectID > 4360 ) { if ( m_objectID > 4399 ) { if ( (unsigned int)(m_objectID - 4401) > 0x8A ) return; } else if ( m_objectID < 4384 && (unsigned int)(m_objectID - 4362) > 5 ) { return; } } else if ( m_objectID < 4314 && (m_objectID < 4185 || m_objectID > 4200 && (unsigned int)(m_objectID - 4202) > 0x6E) ) { return; } } else if ( m_objectID < 4174 ) { if ( m_objectID > 4155 ) { if ( m_objectID < 4158 || m_objectID > 4160 && (unsigned int)(m_objectID - 4163) > 9 ) return; } else if ( m_objectID < 4154 && (m_objectID < 4085 || m_objectID > 4145 && (unsigned int)(m_objectID - 4148) > 3) ) { return; } } } else if ( m_objectID < 4070 ) { if ( m_objectID > 4009 ) { if ( m_objectID > 4039 ) { if ( m_objectID > 4066 ) { if ( m_objectID != 4068 ) return; } else if ( m_objectID < 4064 && (unsigned int)(m_objectID - 4046) > 0x10 ) { return; } } else if ( m_objectID < 4034 && (m_objectID < 4012 || m_objectID > 4022 && (unsigned int)(m_objectID - 4024) > 5) ) { return; } } else if ( m_objectID < 4000 ) { if ( m_objectID > 3790 ) { if ( m_objectID != 3792 && (m_objectID < 3792 || (unsigned int)(m_objectID - 3794) > 5) ) return; } else if ( m_objectID < 3780 && (m_objectID < 3593 || m_objectID > 3597 && (unsigned int)(m_objectID - 3702) > 0x4C) ) { return; } } } } else if ( m_objectID < 3586 ) { if ( m_objectID > 3166 ) { if ( m_objectID > 3510 ) { if ( m_objectID > 3555 ) { if ( m_objectID != 3567 ) { if ( m_objectID >= 3568 ) { if ( (unsigned int)(m_objectID - 3571) > 0xC ) return; } else if ( (unsigned int)(m_objectID - 3559) > 3 ) { return; } } } else if ( m_objectID < 3549 && (m_objectID < 3512 || m_objectID > 3541 && (unsigned int)(m_objectID - 3544) > 2) ) { return; } } else if ( m_objectID < 3501 ) { if ( m_objectID > 3351 ) { if ( m_objectID > 3397 ) { if ( (unsigned int)(m_objectID - 3402) > 0x5B ) return; } else if ( m_objectID < 3360 && m_objectID != 3358 ) { return; } } else if ( m_objectID < 3336 && (m_objectID <= 3168 || m_objectID > 3178 && (unsigned int)(m_objectID - 3181) > 0x99) ) { return; } } } else if ( m_objectID < 3162 && m_objectID != 3103 ) { if ( m_objectID >= 3104 ) { if ( m_objectID > 3129 ) { if ( m_objectID < 3132 || m_objectID > 3141 && (unsigned int)(m_objectID - 3143) > 9 ) return; } else if ( m_objectID < 3118 && m_objectID != 3109 ) { if ( m_objectID > 3109 ) { if ( m_objectID != 3112 && m_objectID != 3114 ) return; } else if ( m_objectID != 3105 && m_objectID != 3107 ) { return; } } } else { if ( m_objectID <= 3066 ) { if ( m_objectID >= 3054 || m_objectID == 3050 ) goto LABEL_468; if ( m_objectID <= 3050 ) { if ( (unsigned int)(m_objectID - 3034) > 3 ) return; goto LABEL_468; } v4 = 3052; goto LABEL_53; } if ( m_objectID == 3088 ) goto LABEL_468; if ( m_objectID <= 3088 ) { if ( (unsigned int)(m_objectID - 3080) > 6 ) return; goto LABEL_468; } if ( m_objectID == 3090 ) goto LABEL_468; if ( m_objectID != 3101 ) return; } } } goto LABEL_471; } if ( m_objectID == 2644 ) goto LABEL_471; if ( m_objectID <= 2644 ) { if ( m_objectID > 2554 ) { if ( m_objectID != 2578 ) { if ( m_objectID > 2578 ) { if ( m_objectID > 2630 ) { if ( m_objectID > 2634 ) { if ( m_objectID != 2640 && m_objectID != 2642 && m_objectID != 2637 ) return; } else if ( m_objectID < 2632 ) { sub_352E70((int)&v57, "pixelart_454_001.png", "_001.png", "_color_001.png"); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); cocos2d::CCObject::retain(a1->m_colorSprite); m_colorSprite = a1->m_colorSprite; setPosition = m_colorSprite->setPosition; v29 = (int)a1->getPosition(a1); setPosition(m_colorSprite, (const cocos2d::CCPoint *)v29); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 2); return; } } else if ( m_objectID < 2626 && (m_objectID < 2580 || m_objectID > 2592 && (unsigned int)(m_objectID - 2598) > 8) ) { return; } } else if ( m_objectID != 2566 ) { if ( m_objectID > 2566 ) { if ( m_objectID != 2572 ) { if ( m_objectID > 2572 ) { if ( m_objectID != 2574 && m_objectID != 2576 ) return; } else if ( m_objectID != 2568 && m_objectID != 2570 ) { return; } } } else if ( m_objectID >= 2560 ) { if ( m_objectID != 2562 && m_objectID != 2564 ) return; } else if ( m_objectID < 2558 && m_objectID != 2556 ) { return; } } } } else if ( m_objectID < 2550 ) { if ( m_objectID >= 2496 ) { if ( m_objectID > 2538 ) { if ( m_objectID != 2544 ) { if ( m_objectID > 2544 ) { if ( m_objectID != 2546 && m_objectID != 2548 ) return; } else if ( m_objectID != 2540 && m_objectID != 2542 ) { return; } } } else if ( m_objectID < 2526 && (m_objectID < 2498 || m_objectID > 2518 && m_objectID != 2524) ) { return; } } else if ( m_objectID < 2488 ) { if ( m_objectID > 2454 ) { if ( m_objectID < 2456 || m_objectID > 2465 && (unsigned int)(m_objectID - 2467) > 0x10 ) return; } else if ( m_objectID < 2452 && (m_objectID < 2396 || m_objectID > 2405 && (unsigned int)(m_objectID - 2407) > 0x1A) ) { return; } } } goto LABEL_471; } if ( m_objectID != 2732 ) { if ( m_objectID <= 2732 ) { if ( m_objectID != 2673 ) { if ( m_objectID > 2673 ) { if ( m_objectID > 2689 ) { if ( m_objectID > 2700 ) { if ( (unsigned int)(m_objectID - 2703) > 1 ) return; } else if ( m_objectID < 2696 && (unsigned int)(m_objectID - 2691) > 3 ) { return; } } else if ( m_objectID < 2687 && m_objectID != 2679 ) { if ( m_objectID > 2679 ) { if ( m_objectID != 2681 && m_objectID != 2684 ) return; } else if ( m_objectID != 2676 ) { return; } } } else if ( m_objectID != 2660 ) { if ( m_objectID > 2660 ) { if ( m_objectID != 2666 ) { if ( m_objectID > 2666 ) { if ( m_objectID != 2668 && m_objectID != 2670 ) return; } else if ( m_objectID != 2662 && m_objectID != 2664 ) { return; } } } else if ( m_objectID != 2651 ) { if ( m_objectID > 2651 ) { if ( m_objectID != 2654 && m_objectID != 2657 ) return; } else if ( m_objectID != 2647 && m_objectID != 2649 ) { return; } } } } goto LABEL_471; } if ( m_objectID != 2776 ) { if ( m_objectID <= 2776 ) { if ( m_objectID == 2755 ) goto LABEL_473; if ( m_objectID > 2755 ) { if ( m_objectID > 2770 ) { v13 = 2773; } else { if ( m_objectID >= 2764 || m_objectID == 2758 ) goto LABEL_473; v13 = 2761; } } else { if ( m_objectID == 2741 ) goto LABEL_473; if ( m_objectID > 2741 ) { if ( (unsigned int)(m_objectID - 2744) > 8 ) return; goto LABEL_473; } if ( m_objectID == 2735 ) goto LABEL_473; v13 = 2738; } goto LABEL_340; } if ( m_objectID == 2802 ) goto LABEL_473; if ( m_objectID <= 2802 ) { if ( m_objectID == 2785 ) goto LABEL_473; if ( m_objectID > 2785 ) { if ( m_objectID == 2796 ) goto LABEL_473; v13 = 2799; } else { if ( m_objectID == 2779 ) goto LABEL_473; v13 = 2782; } goto LABEL_340; } if ( m_objectID <= 2837 ) { if ( m_objectID >= 2808 ) goto LABEL_471; v13 = 2805; LABEL_340: if ( m_objectID != v13 ) return; goto LABEL_473; } if ( m_objectID > 2849 ) { v12 = 2903; goto LABEL_356; } } } LABEL_473: sub_352E70((int)&v57, *a2, "_001.png", "_2_001.png"); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); cocos2d::CCObject::retain(a1->m_colorSprite); v30 = a1->m_colorSprite; v31 = v30->setPosition; v32 = (int)a1->getPosition(a1); v31(v30, (const cocos2d::CCPoint *)v32); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 2); return; } if ( m_objectID >= 2359 ) goto LABEL_471; if ( m_objectID > 1472 ) { if ( m_objectID == 1803 ) goto LABEL_468; if ( m_objectID <= 1803 ) { if ( m_objectID > 1624 ) { if ( m_objectID >= 1704 ) { if ( m_objectID <= 1784 ) { if ( m_objectID >= 1781 || m_objectID >= 1708 && (m_objectID <= 1710 || (unsigned int)(m_objectID - 1734) <= 2) ) { goto LABEL_468; } return; } if ( m_objectID == 1797 ) goto LABEL_468; if ( m_objectID > 1797 ) { if ( m_objectID == 1799 ) goto LABEL_468; v4 = 1801; } else { v4 = 1793; } } else { if ( m_objectID >= 1685 ) goto LABEL_468; if ( m_objectID > 1642 ) { if ( m_objectID >= 1645 && (m_objectID <= 1646 || (unsigned int)(m_objectID - 1649) <= 1) ) goto LABEL_468; return; } if ( m_objectID > 1640 ) goto LABEL_468; if ( m_objectID > 1632 ) { if ( (unsigned int)(m_objectID - 1637) > 1 ) return; goto LABEL_468; } if ( m_objectID >= 1629 ) goto LABEL_468; v4 = 1627; } goto LABEL_53; } if ( m_objectID >= 1623 || m_objectID == 1586 ) goto LABEL_468; if ( m_objectID <= 1586 ) { if ( m_objectID == 1516 ) goto LABEL_474; if ( m_objectID <= 1516 ) { if ( m_objectID != 1507 ) { if ( m_objectID > 1507 ) { if ( m_objectID < 1510 ) return; goto LABEL_468; } if ( m_objectID == 1473 ) goto LABEL_468; v5 = m_objectID == 1496; LABEL_54: if ( !v5 ) return; goto LABEL_468; } goto LABEL_474; } if ( m_objectID > 1560 ) { if ( (unsigned int)(m_objectID - 1582) > 1 ) return; goto LABEL_474; } if ( m_objectID < 1552 ) { if ( m_objectID == 1517 ) { v8 = cocos2d::CCSprite::createWithSpriteFrameName("waterfallAnim_color_007.png"); a1->m_colorSprite = v8; cocos2d::CCObject::retain(v8); v9 = a1->m_colorSprite; v10 = v9->setPosition; v11 = (int)a1->getPosition(a1); v10(v9, (const cocos2d::CCPoint *)v11); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 1012); } return; } LABEL_477: v48 = cocos2d::CCSprite::createWithSpriteFrameName(*a2); a1->m_colorSprite = v48; cocos2d::CCObject::retain(v48); v49 = a1->m_colorSprite; v50 = v49->setPosition; v51 = (int)a1->getPosition(a1); v50(v49, (const cocos2d::CCPoint *)v51); GameObject::createSpriteColor(a1, 2); a1->m_colorSprite->m_bDontDraw = 1; return; } if ( m_objectID != 1599 ) { if ( m_objectID >= 1600 ) { if ( m_objectID != 1617 ) { if ( m_objectID > 1617 ) { if ( (unsigned int)(m_objectID - 1619) > 2 ) return; } else if ( m_objectID > 1601 ) { return; } goto LABEL_468; } goto LABEL_474; } if ( m_objectID == 1591 ) goto LABEL_468; if ( m_objectID >= 1592 ) { if ( (unsigned int)(m_objectID - 1593) > 1 ) return; goto LABEL_468; } if ( m_objectID != 1588 ) { v7 = 1590; LABEL_138: if ( m_objectID != v7 ) return; } } LABEL_478: sub_775C20(v56, a2); GameObject::getColorFrame((int)&v57, (int)a1, v56, v52); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); sub_774008(v56); cocos2d::CCObject::retain(a1->m_colorSprite); v53 = a1->m_colorSprite; v54 = v53->setPosition; v55 = (int)a1->getPosition(a1); v54(v53, (const cocos2d::CCPoint *)v55); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 1012); return; } if ( m_objectID == 2093 ) goto LABEL_470; if ( m_objectID <= 2093 ) { if ( m_objectID <= 1921 ) { if ( m_objectID >= 1919 ) goto LABEL_468; if ( m_objectID <= 1857 ) { if ( m_objectID <= 1848 ) { if ( m_objectID == 1807 ) goto LABEL_468; if ( m_objectID >= 1808 ) { if ( m_objectID == 1809 ) goto LABEL_468; v4 = 1843; } else { v4 = 1805; } goto LABEL_53; } LABEL_469: sub_352E70((int)&v57, *a2, "_00", "_color_00"); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); cocos2d::CCObject::retain(a1->m_colorSprite); v18 = a1->m_colorSprite; v19 = v18->setPosition; v20 = (int)a1->getPosition(a1); v19(v18, (const cocos2d::CCPoint *)v20); GameObject::createSpriteColor(a1, 2); return; } if ( m_objectID > 1885 ) { if ( (unsigned int)(m_objectID - 1910) > 1 ) return; goto LABEL_468; } if ( m_objectID >= 1861 ) goto LABEL_468; v12 = 1860; LABEL_356: if ( m_objectID != v12 ) return; goto LABEL_469; } if ( m_objectID > 2054 ) { if ( m_objectID > 2076 ) { if ( (unsigned int)(m_objectID - 2078) > 0xA ) return; } else if ( m_objectID < 2070 ) { v4 = 2065; LABEL_53: v5 = m_objectID == v4; goto LABEL_54; } } else if ( m_objectID < 2051 ) { if ( m_objectID == 1928 ) goto LABEL_478; if ( m_objectID <= 1928 ) { if ( m_objectID > 1926 ) return; goto LABEL_478; } if ( m_objectID != 2046 ) return; } LABEL_470: sub_352E70((int)&v57, *a2, "_00", "_color_00"); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); cocos2d::CCObject::retain(a1->m_colorSprite); v21 = a1->m_colorSprite; v22 = v21->setPosition; v23 = (int)a1->getPosition(a1); v22(v21, (const cocos2d::CCPoint *)v23); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 2); return; } if ( m_objectID > 2154 ) { if ( m_objectID > 2313 ) { if ( m_objectID > 2347 ) { if ( (unsigned int)(m_objectID - 2353) > 2 ) return; } else if ( m_objectID < 2340 && (unsigned int)(m_objectID - 2315) > 0x14 ) { return; } } else if ( m_objectID < 2207 && (m_objectID < 2156 || m_objectID > 2176 && (unsigned int)(m_objectID - 2179) > 0x1A) ) { return; } } else if ( m_objectID < 2143 ) { if ( m_objectID > 2131 ) { if ( m_objectID < 2133 || m_objectID > 2136 && (unsigned int)(m_objectID - 2138) > 3 ) return; } else if ( m_objectID < 2125 && (m_objectID < 2098 || m_objectID > 2119 && (unsigned int)(m_objectID - 2122) > 1) ) { return; } } LABEL_471: sub_352E70((int)&v57, *a2, "_001.png", "_color_001.png"); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); cocos2d::CCObject::retain(a1->m_colorSprite); v24 = a1->m_colorSprite; v25 = v24->setPosition; v26 = (int)a1->getPosition(a1); v25(v24, (const cocos2d::CCPoint *)v26); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 2); return; } if ( m_objectID >= 1471 ) goto LABEL_474; if ( m_objectID > 874 ) { if ( m_objectID < 976 ) { if ( m_objectID >= 974 ) goto LABEL_468; if ( m_objectID <= 904 ) { if ( m_objectID >= 903 ) goto LABEL_468; if ( m_objectID > 889 ) { if ( m_objectID == 891 || m_objectID >= 891 && (unsigned int)(m_objectID - 893) <= 1 ) goto LABEL_468; } else if ( m_objectID >= 888 || m_objectID > 876 && (m_objectID <= 878 || (unsigned int)(m_objectID - 880) <= 5) ) { goto LABEL_468; } return; } if ( m_objectID > 961 ) { if ( m_objectID >= 964 && (m_objectID <= 965 || (unsigned int)(m_objectID - 967) <= 5) ) goto LABEL_468; return; } if ( m_objectID >= 959 ) goto LABEL_468; if ( m_objectID > 954 ) { if ( (unsigned int)(m_objectID - 956) > 1 ) return; goto LABEL_468; } if ( m_objectID >= 952 ) goto LABEL_468; v4 = 939; goto LABEL_53; } if ( m_objectID <= 1267 ) { if ( m_objectID >= 1266 ) goto LABEL_468; if ( m_objectID > 1040 ) { if ( m_objectID == 1062 ) goto LABEL_468; if ( m_objectID > 1062 ) { if ( (unsigned int)(m_objectID - 1159) > 2 ) return; goto LABEL_468; } if ( (unsigned int)(m_objectID - 1053) <= 1 ) { sub_775C20(v56, a2); GameObject::getColorFrame((int)&v57, (int)a1, v56, v40); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); sub_774008(v56); cocos2d::CCObject::retain(a1->m_colorSprite); v41 = a1->m_colorSprite; v42 = v41->setPosition; v43 = (int)a1->getPosition(a1); v42(v41, (const cocos2d::CCPoint *)v43); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 1010); } return; } if ( m_objectID > 1032 ) goto LABEL_468; if ( m_objectID < 980 ) return; if ( m_objectID > 988 ) { if ( (unsigned int)(m_objectID - 1001) <= 4 ) { sub_775C20(v56, a2); GameObject::getColorFrame((int)&v57, (int)a1, v56, v44); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); sub_774008(v56); cocos2d::CCObject::retain(a1->m_colorSprite); v45 = a1->m_colorSprite; v46 = v45->setPosition; v47 = (int)a1->getPosition(a1); v46(v45, (const cocos2d::CCPoint *)v47); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 1006); } return; } goto LABEL_477; } if ( m_objectID > 1440 ) { if ( m_objectID >= 1442 && (m_objectID <= 1448 || (unsigned int)(m_objectID - 1461) <= 3) ) goto LABEL_468; return; } if ( m_objectID >= 1431 ) goto LABEL_468; if ( m_objectID > 1365 ) { if ( (unsigned int)(m_objectID - 1387) > 8 ) return; goto LABEL_468; } if ( m_objectID >= 1348 ) goto LABEL_468; v7 = 1276; goto LABEL_138; } if ( m_objectID >= 867 ) goto LABEL_468; if ( m_objectID > 482 ) { if ( m_objectID <= 765 ) { if ( m_objectID >= 762 ) goto LABEL_468; if ( m_objectID <= 708 ) { if ( m_objectID >= 703 || m_objectID > 484 && (m_objectID < 492 || (unsigned int)(m_objectID - 678) <= 2) ) goto LABEL_468; return; } if ( m_objectID <= 757 ) { if ( m_objectID >= 756 || (unsigned int)(m_objectID - 752) <= 2 ) goto LABEL_468; return; } v4 = 759; goto LABEL_53; } if ( m_objectID <= 848 ) { if ( m_objectID > 844 || m_objectID == 841 ) goto LABEL_468; if ( m_objectID <= 841 ) { if ( (unsigned int)(m_objectID - 769) > 5 ) return; goto LABEL_468; } v4 = 843; goto LABEL_53; } if ( m_objectID > 857 ) { v6 = 859; } else { if ( m_objectID > 852 ) goto LABEL_474; v6 = 850; } if ( m_objectID != v6 ) return; LABEL_474: sub_352E70((int)&v57, *a2, "_00", "_color_00"); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); cocos2d::CCObject::retain(a1->m_colorSprite); v33 = a1->m_colorSprite; v34 = v33->setPosition; v35 = (int)a1->getPosition(a1); v34(v33, (const cocos2d::CCPoint *)v35); GameObject::createSpriteColor(a1, 2); GameObject::setDefaultSecondaryColorMode(a1, 1012); return; } if ( m_objectID > 476 ) goto LABEL_468; if ( m_objectID >= 262 ) { if ( m_objectID > 272 ) { if ( m_objectID >= 400 ) { if ( (unsigned int)(m_objectID - 453) > 5 ) return; goto LABEL_468; } if ( m_objectID > 396 || (unsigned int)(m_objectID - 274) <= 1 ) goto LABEL_468; } else { if ( m_objectID > 268 ) goto LABEL_468; if ( m_objectID > 262 && m_objectID != 266 ) { v36 = cocos2d::CCSprite::createWithSpriteFrameName("lightsquare_04_05_color_001.png"); a1->m_colorSprite = v36; cocos2d::CCObject::retain(v36); v37 = a1->m_colorSprite; v38 = v37->setPosition; v39 = (int)a1->getPosition(a1); v38(v37, (const cocos2d::CCPoint *)v39); GameObject::createSpriteColor(a1, 2); } } } else { if ( m_objectID >= 260 ) goto LABEL_468; if ( m_objectID <= 220 ) { if ( m_objectID < 215 && (m_objectID < 207 || m_objectID > 210 && (unsigned int)(m_objectID - 212) > 1) ) return; LABEL_468: sub_775C20(v56, a2); GameObject::getColorFrame((int)&v57, (int)a1, v56, v14); a1->m_colorSprite = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v57); sub_774008(&v57); sub_774008(v56); cocos2d::CCObject::retain(a1->m_colorSprite); v15 = a1->m_colorSprite; v16 = v15->setPosition; v17 = (int)a1->getPosition(a1); v16(v15, (const cocos2d::CCPoint *)v17); GameObject::createSpriteColor(a1, 2); return; } if ( m_objectID >= 247 && (m_objectID <= 250 || (unsigned int)(m_objectID - 252) <= 6) ) goto LABEL_468; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source