// // GJSmartTemplate::logTemplateStatus from 0x100007bbc to 0x100007df4 (568 bytes) // // 2 xrefs: // > SetupSmartTemplateLayer::init @ 0x100070ae8 // > EditorUI::addObjectsToSmartTemplate @ 0x1003f14e4 // // 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 // __int64 __usercall GJSmartTemplate::logTemplateStatus@(__int64 a1@, int a2@) { cocos2d::CCDictionary *v3; // x21 cocos2d::CCNode *v4; // x0 cocos2d::CCArray *v5; // x21 int v6; // w27 int v7; // w26 int v8; // w25 unsigned int v9; // w22 int v10; // w28 int v11; // w19 cocos2d::CCString *v12; // x0 char *CString; // x0 int v14; // w0 int isUnrequired; // w23 __int64 v16; // x0 __int64 v17; // x24 int v18; // w8 cocos2d::CCString *v19; // x0 char *v20; // x0 std::string __dst; // [xsp+30h] [xbp-F0h] BYREF void *__p[2]; // [xsp+50h] [xbp-D0h] BYREF __int64 v25; // [xsp+60h] [xbp-C0h] std::string v26; // [xsp+70h] [xbp-B0h] BYREF void *v27[2]; // [xsp+88h] [xbp-98h] BYREF __int64 v28; // [xsp+98h] [xbp-88h] _BYTE v29[32]; // [xsp+A0h] [xbp-80h] BYREF v3 = cocos2d::CCDictionary::create(); v4 = cocos2d::CCNode::create(); sub_100004114(8, (__int64)v29, 0, (__int64)v3, (__int64)v4); v5 = cocos2d::CCDictionary::allKeys(v3); if ( (unsigned int)sub_10024A36C(v5) ) { v6 = 0; v7 = 0; v8 = 0; v9 = 0; v10 = 0; v11 = 0; while ( 1 ) { v12 = cocos2d::CCArray::stringAtIndex(v5, v9); CString = (char *)cocos2d::CCString::getCString(v12); sub_100009900((int)v27, CString); if ( SHIBYTE(v28) < 0 ) { sub_1000097D0(__p, v27[0]); } else { *(_OWORD *)__p = *(_OWORD *)v27; v25 = v28; } v14 = (unsigned int)sub_1000041EC((__int64)__p, &v26); if ( SHIBYTE(v25) < 0 ) operator delete(__p[0]); if ( SHIBYTE(v26.__r_.__value_.__r.__words[2]) < 0 ) v14 = sub_1000097D0(&__dst, v26.__r_.__value_.__l.__data_); else __dst = v26; isUnrequired = GJSmartTemplate::isUnrequired(v14, &__dst); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); v16 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 56), &v26); v17 = v16; if ( !v16 ) break; ++v6; v7 += isUnrequired ^ 1; if ( !(unsigned int)sub_10024A36C(v16) ) goto LABEL_17; ++v8; v10 += sub_10024A36C(v17); v18 = v11; LABEL_18: if ( !isUnrequired ) v11 = v18; if ( SHIBYTE(v26.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v26.__r_.__value_.__l.__data_); if ( SHIBYTE(v28) < 0 ) operator delete(v27[0]); if ( ++v9 >= (unsigned int)sub_10024A36C(v5) ) goto LABEL_27; } ++v6; v7 += isUnrequired ^ 1; LABEL_17: v18 = v11 + 1; goto LABEL_18; } v11 = 0; v10 = 0; v8 = 0; v7 = 0; v6 = 0; LABEL_27: v19 = (cocos2d::CCString *)sub_100268F4C( "Defined: %i / %i(%i), Variations : %i, Required Missing : %i", v8, v7, v6, v10, v11); v20 = (char *)cocos2d::CCString::getCString(v19); return sub_100009900(a2, v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source