// // AnimatedGameObject::setupChildSprites from 0x4ebae0 to 0x4ebfe4 (1284 bytes) // // 1 xrefs: // > AnimatedGameObject::init @ 0x4ec14a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:51:08 +0000 // cocos2d::CCSprite *__fastcall AnimatedGameObject::setupChildSprites(cocos2d::CCSprite *this) { int v1; // r6 cocos2d::CCSprite *v2; // r4 int v3; // r0 unsigned int v4; // r7 cocos2d::CCArray *v5; // r8 const char *v6; // r1 CCSpritePlus *v7; // r5 char *v8; // r0 cocos2d::CCNode *v9; // r6 int v10; // r0 int v11; // r0 int v12; // r0 int v13; // r0 const cocos2d::CCSize *v14; // r0 void (__fastcall *v15)(int, _BYTE *); // r6 int v16; // r0 cocos2d::CCArray *v17; // r7 const char *v18; // r1 CCSpritePlus *v19; // r6 char *v20; // r0 int v21; // r0 cocos2d::CCNode *v22; // r5 void (__fastcall *v23)(cocos2d::CCNode *, int); // r9 int v24; // r0 void (__fastcall *v25)(cocos2d::CCNode *, int); // r9 int v26; // r0 void (__fastcall *v27)(cocos2d::CCNode *, int); // r9 int v28; // r0 void (__fastcall *v29)(cocos2d::CCNode *, int); // r9 int v30; // r0 cocos2d::CCObject *v31; // r0 int v32; // r0 unsigned int v33; // r5 cocos2d::CCArray *v34; // r7 cocos2d::CCObject *v35; // r0 const char *v36; // r1 int v37; // r6 char *v38; // r0 cocos2d::CCNode *v39; // r11 int v40; // r0 int v41; // r0 int v42; // r0 int v43; // r0 int v44; // r0 cocos2d::CCArray *v45; // r7 int v46; // r5 const char *v47; // r1 cocos2d::CCNode *v48; // r6 void (__fastcall *v49)(cocos2d::CCNode *, int); // r9 int v50; // r0 void (__fastcall *v51)(cocos2d::CCNode *, int); // r9 int v52; // r0 void (__fastcall *v53)(cocos2d::CCNode *, int); // r9 int v54; // r0 void (__fastcall *v55)(cocos2d::CCNode *, int); // r9 int v56; // r0 cocos2d::CCObject *v57; // r0 void (__fastcall *v58)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] void (__fastcall *v59)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] void (__fastcall *v60)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] void (__fastcall *v61)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] int v62; // [sp+4h] [bp-28h] void (__fastcall *v63)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] void (__fastcall *v64)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] void (__fastcall *v65)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] void (__fastcall *v66)(cocos2d::CCNode *, int); // [sp+4h] [bp-28h] float v67[2]; // [sp+8h] [bp-24h] BYREF _BYTE v68[8]; // [sp+10h] [bp-1Ch] BYREF int v69[3]; // [sp+18h] [bp-14h] BYREF v1 = *((_DWORD *)this + 223); v2 = this; if ( v1 != 918 ) { if ( v1 == 1327 ) { v16 = cocos2d::CCSprite::create(this); *((_DWORD *)v2 + 320) = v16; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)v2 + 319) + 232))(*((_DWORD *)v2 + 319), v16, -1); v17 = *(cocos2d::CCArray **)(*(_DWORD *)(*((_DWORD *)v2 + 319) + 544) + 528); this = (cocos2d::CCSprite *)cocos2d::CCArray::count(v17); if ( (unsigned int)this <= 1 ) return this; v19 = (CCSpritePlus *)cocos2d::CCArray::objectAtIndex(v17, 1u); v20 = "GJBeast02_01_glow_001.png"; LABEL_16: v22 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v20, v18); (*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(**((_DWORD **)v2 + 320) + 232))( *((_DWORD *)v2 + 320), v22, -1); CCSpritePlus::addFollower(v19, v22); *((_BYTE *)v19 + 517) = 1; v23 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v22 + 180); v24 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v19 + 184))(v19); v23(v22, v24); v25 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v22 + 64); v26 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v19 + 68))(v19); v25(v22, v26); v27 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v22 + 72); v28 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v19 + 76))(v19); v27(v22, v28); v29 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v22 + 92); v30 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v19 + 96))(v19); v29(v22, v30); *((_BYTE *)v2 + 552) = 1; *((_BYTE *)v2 + 734) = 1; v31 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v17, 0); *((_DWORD *)v2 + 189) = v31; goto LABEL_17; } if ( v1 == 1328 ) { v21 = cocos2d::CCSprite::create(this); *((_DWORD *)v2 + 320) = v21; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)v2 + 319) + 232))(*((_DWORD *)v2 + 319), v21, -1); v17 = *(cocos2d::CCArray **)(*(_DWORD *)(*((_DWORD *)v2 + 319) + 544) + 528); this = (cocos2d::CCSprite *)cocos2d::CCArray::count(v17); if ( (unsigned int)this <= 1 ) return this; v19 = (CCSpritePlus *)cocos2d::CCArray::objectAtIndex(v17, 1u); v20 = "GJBeast03_01_glow_001.png"; goto LABEL_16; } if ( v1 != 1584 ) { if ( v1 != 2012 ) return this; v44 = cocos2d::CCSprite::create(this); *((_DWORD *)v2 + 320) = v44; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)v2 + 319) + 232))(*((_DWORD *)v2 + 319), v44, -1); v45 = *(cocos2d::CCArray **)(*(_DWORD *)(*((_DWORD *)v2 + 319) + 544) + 528); this = (cocos2d::CCSprite *)cocos2d::CCArray::count(v45); if ( (unsigned int)this <= 1 ) return this; v46 = cocos2d::CCArray::objectAtIndex(v45, 0); v48 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJBeast05_02_glow_001.png", v47); (*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(**((_DWORD **)v2 + 320) + 232))( *((_DWORD *)v2 + 320), v48, -1); CCSpritePlus::addFollower((CCSpritePlus *)v46, v48); *(_BYTE *)(v46 + 517) = 1; v49 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v48 + 180); v50 = (*(int (__fastcall **)(int))(*(_DWORD *)v46 + 184))(v46); v49(v48, v50); v51 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v48 + 64); v52 = (*(int (__fastcall **)(int))(*(_DWORD *)v46 + 68))(v46); v51(v48, v52); v53 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v48 + 72); v54 = (*(int (__fastcall **)(int))(*(_DWORD *)v46 + 76))(v46); v53(v48, v54); v55 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v48 + 92); v56 = (*(int (__fastcall **)(int))(*(_DWORD *)v46 + 96))(v46); v55(v48, v56); *(_DWORD *)(v46 + 532) = (char *)v2 + 1272; *((_BYTE *)v2 + 552) = 1; *((_BYTE *)v2 + 734) = 1; v57 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v45, 1u); *((_DWORD *)v2 + 189) = v57; cocos2d::CCObject::retain(v57); v31 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v45, 2u); *((_DWORD *)v2 + 321) = v31; LABEL_17: cocos2d::CCObject::retain(v31); GameObject::createSpriteColor(v2, 2); return (cocos2d::CCSprite *)GameObject::setDefaultSecondaryColorMode(v2, 1011); } v32 = cocos2d::CCSprite::create(this); v33 = 1; *((_DWORD *)v2 + 320) = v32; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)v2 + 319) + 232))(*((_DWORD *)v2 + 319), v32, -1); v34 = *(cocos2d::CCArray **)(*(_DWORD *)(*((_DWORD *)v2 + 319) + 544) + 528); *((_BYTE *)v2 + 552) = 1; *((_BYTE *)v2 + 734) = 1; v35 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v34, 0); *((_DWORD *)v2 + 189) = v35; cocos2d::CCObject::retain(v35); GameObject::createSpriteColor(v2, 2); GameObject::setDefaultSecondaryColorMode(v2, 1011); while ( 1 ) { this = (cocos2d::CCSprite *)cocos2d::CCArray::count(v34); if ( v33 >= (unsigned int)this ) return this; v37 = cocos2d::CCArray::objectAtIndex(v34, v33); switch ( v33 ) { case 2u: v38 = "GJBeast04_02_glow_001.png"; break; case 3u: v38 = "GJBeast04_01_glow_001.png"; break; case 1u: v38 = "GJBeast04_04_glow_001.png"; break; default: goto LABEL_30; } v39 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v38, v36); if ( v39 ) { (*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(**((_DWORD **)v2 + 320) + 232))( *((_DWORD *)v2 + 320), v39, -1); CCSpritePlus::addFollower((CCSpritePlus *)v37, v39); *(_BYTE *)(v37 + 517) = 1; v63 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v39 + 180); v40 = (*(int (__fastcall **)(int))(*(_DWORD *)v37 + 184))(v37); v63(v39, v40); v64 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v39 + 64); v41 = (*(int (__fastcall **)(int))(*(_DWORD *)v37 + 68))(v37); v64(v39, v41); v65 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v39 + 72); v42 = (*(int (__fastcall **)(int))(*(_DWORD *)v37 + 76))(v37); v65(v39, v42); v66 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v39 + 92); v43 = (*(int (__fastcall **)(int))(*(_DWORD *)v37 + 96))(v37); v66(v39, v43); if ( v33 == 1 ) *(_DWORD *)(v37 + 532) = (char *)v2 + 1272; } LABEL_30: ++v33; } } v3 = cocos2d::CCSprite::create(this); v4 = 0; *((_DWORD *)v2 + 320) = v3; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)v2 + 319) + 232))(*((_DWORD *)v2 + 319), v3, -1); v5 = *(cocos2d::CCArray **)(*(_DWORD *)(*((_DWORD *)v2 + 319) + 544) + 528); while ( 1 ) { this = (cocos2d::CCSprite *)cocos2d::CCArray::count(v5); if ( v4 >= (unsigned int)this ) break; v7 = (CCSpritePlus *)cocos2d::CCArray::objectAtIndex(v5, v4); if ( v4 == 1 ) v8 = "GJBeast01_01_glow_001.png"; else v8 = "GJBeast01_02_glow_001.png"; v9 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v8, v6); (*(void (__fastcall **)(_DWORD, cocos2d::CCNode *, int))(**((_DWORD **)v2 + 320) + 232))( *((_DWORD *)v2 + 320), v9, -1); CCSpritePlus::addFollower(v7, v9); v58 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v9 + 180); v10 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v7 + 184))(v7); v58(v9, v10); v59 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v9 + 64); v11 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v7 + 68))(v7); v59(v9, v11); v60 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v9 + 72); v12 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v7 + 76))(v7); v60(v9, v12); v61 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v9 + 92); v13 = (*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v7 + 96))(v7); v61(v9, v13); if ( v4 == 1 ) { *((_BYTE *)v2 + 552) = 1; *((_BYTE *)v2 + 734) = 1; memset(v69, 0, sizeof(v69)); std::string::__init(v69, "GJBeast01_03_001.png", 0x14u); GameObject::addCustomColorChild(v2, (int)v69); std::string::~string((int)v69); GameObject::setDefaultSecondaryColorMode(v2, 1011); (*(void (__fastcall **)(CCSpritePlus *, _DWORD, int))(*(_DWORD *)v7 + 232))(v7, *((_DWORD *)v2 + 189), 1); v14 = (const cocos2d::CCSize *)(*(int (__fastcall **)(CCSpritePlus *))(*(_DWORD *)v7 + 164))(v7); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v67, v14); v62 = *((_DWORD *)v2 + 189); v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v62 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, v67[0] * 0.5, v67[1] * 0.5); v15(v62, v68); } ++v4; } return this; }