// // GJBaseGameLayer::getCapacityString from 0x1001e2de4 to 0x1001e2f60 (380 bytes) // // 1 xrefs: // > PlayLayer::levelComplete @ 0x100119a8c // // 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 __usercall GJBaseGameLayer::getCapacityString(__int64 a1@, _QWORD *a2@) { __int64 v3; // x8 unsigned int *v4; // x9 __int64 v5; // x8 __int64 v6; // x20 cocos2d::CCSpriteBatchNode **v7; // x24 unsigned __int64 v8; // x25 char v9; // w26 __int64 UsedAtlasCapacity; // x22 unsigned __int128 v11; // kr00_16 int v13; // [xsp+Ch] [xbp-274h] BYREF __int128 v14; // [xsp+10h] [xbp-270h] BYREF void *__p; // [xsp+20h] [xbp-260h] _BYTE v16[512]; // [xsp+28h] [xbp-258h] BYREF v14 = xmmword_1006350E0; __p = v16; v3 = *(_QWORD *)(a1 + 3872); if ( v3 && (v4 = *(unsigned int **)(v3 + 56), v5 = *v4, (_DWORD)v5) ) { v6 = 0; v7 = *((cocos2d::CCSpriteBatchNode ***)v4 + 2); v8 = (unsigned __int64)&v7[v5 - 1]; v9 = 1; do { if ( !*v7 ) break; UsedAtlasCapacity = cocos2d::CCSpriteBatchNode::getUsedAtlasCapacity(*v7); if ( (int)UsedAtlasCapacity >= 201 ) { if ( (v9 & 1) == 0 ) sub_10000CB18((__int64 *)&v14, ",", 0); v13 = v6; sub_100009A40((int)&v14, v6, (int)&v13); sub_10000CB18((__int64 *)&v14, ",", 0); v13 = UsedAtlasCapacity; sub_100009A40((int)&v14, UsedAtlasCapacity, (int)&v13); v9 = 0; } v6 = (unsigned int)(v6 + 1); ++v7; } while ( (unsigned __int64)v7 <= v8 ); v11 = v14; } else { v11 = __PAIR128__(500, 0); } if ( *((_QWORD *)&v11 + 1) < (unsigned __int64)(v11 + 1) ) sub_100009ED4((__int64)&v14, v11 + 1); *((_BYTE *)__p + v11) = 0; sub_100009900(a2, (char *)__p); if ( __p != v16 && __p != nullptr ) operator delete[](__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source