// // GJSmartTemplate::logTemplateStatus from 0x671738 to 0x671894 (348 bytes) // // 2 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x4888f8 // > SetupSmartTemplateLayer::init @ 0x674646 // // 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:55:52 +0000 // GJSmartTemplate *__fastcall GJSmartTemplate::logTemplateStatus(GJSmartTemplate *this, int a2) { cocos2d::CCNode *v3; // r4 cocos2d::CCNode *v4; // r0 cocos2d::CCArray *v5; // r0 int v6; // r4 const char *v7; // r9 int v8; // r11 unsigned int v9; // r6 cocos2d::CCString *v10; // r0 const char *CString; // r0 const char *v12; // r10 size_t v13; // r0 cocos2d::CCArray *v14; // r0 _BOOL4 v15; // r0 cocos2d::CCString *v16; // r0 const char *v17; // r0 const char *v18; // r4 size_t v19; // r0 int v21; // [sp+8h] [bp-74h] cocos2d::CCArray *v22; // [sp+Ch] [bp-70h] cocos2d::CCArray *v23; // [sp+10h] [bp-6Ch] int isUnrequired; // [sp+18h] [bp-64h] int v26[3]; // [sp+24h] [bp-58h] BYREF int v27[3]; // [sp+30h] [bp-4Ch] BYREF int v28[3]; // [sp+3Ch] [bp-40h] BYREF int v29[3]; // [sp+48h] [bp-34h] BYREF int v30[8]; // [sp+54h] [bp-28h] BYREF v3 = (cocos2d::CCNode *)cocos2d::CCDictionary::create(this); v4 = (cocos2d::CCNode *)cocos2d::CCNode::create(v3); generateAllBinaryStrings(8, v30, 0, v3, v4); v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v3); v6 = 0; v7 = nullptr; v8 = 0; v9 = 0; v21 = 0; v22 = v5; while ( v9 < cocos2d::CCArray::count(v22) ) { v10 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v22, v9); CString = (const char *)cocos2d::CCString::getCString(v10); memset(v26, 0, sizeof(v26)); v12 = CString; v13 = strlen(CString); std::string::__init(v26, v12, v13); std::string::basic_string(v28, (int)v26); prefabKeyFromBinary(v27, (unsigned __int8 *)v28); std::string::~string((int)v28); std::string::basic_string(v29, (int)v27); isUnrequired = GJSmartTemplate::isUnrequired(a2, (unsigned __int8 *)v29); std::string::~string((int)v29); v14 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(_DWORD *)(a2 + 52), v27); v23 = v14; if ( v14 ) v15 = cocos2d::CCArray::count(v14) != 0; else v15 = 0; ++v9; if ( isUnrequired ) { if ( !v15 ) goto LABEL_12; LABEL_10: ++v7; v21 += cocos2d::CCArray::count(v23); goto LABEL_12; } ++v8; if ( v15 ) goto LABEL_10; ++v6; LABEL_12: std::string::~string((int)v27); std::string::~string((int)v26); } v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Defined: %i / %i(%i), Variations : %i, Required Missing : %i", v7, v8, v9, v21, v6); v17 = (const char *)cocos2d::CCString::getCString(v16); *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v18 = v17; v19 = strlen(v17); std::string::__init((int *)this, v18, v19); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source