// // GJSmartTemplate::logTemplateStatus from 0xb11c94 to 0xb11fb0 (796 bytes) // // 3 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x7cc7a8 // > SetupSmartTemplateLayer::init @ 0xb16e84 // > @ 0xb9d70 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:01:29 +0000 // __int64 *__usercall GJSmartTemplate::logTemplateStatus@(__int64 *__return_ptr a1@, GJSmartTemplate *this@) { unsigned int v3; // w25 unsigned int v4; // w23 cocos2d::CCNode *v5; // x24 cocos2d::CCNode *v6; // x0 cocos2d::CCArray *v7; // x26 cocos2d::CCString *v8; // x0 const char *CString; // x0 size_t v10; // x0 _BOOL4 isUnrequired; // w28 cocos2d::CCArray *v12; // x0 cocos2d::CCArray *v13; // x24 _BOOL4 v14; // w0 cocos2d::CCString *v15; // x0 size_t v16; // x0 unsigned int v19; // [xsp+6Ch] [xbp+6Ch] char *v20; // [xsp+70h] [xbp+70h] char *v21; // [xsp+78h] [xbp+78h] char *v22; // [xsp+78h] [xbp+78h] __int64 v23; // [xsp+88h] [xbp+88h] BYREF size_t v24; // [xsp+90h] [xbp+90h] void *v25; // [xsp+98h] [xbp+98h] __int64 v26; // [xsp+A0h] [xbp+A0h] BYREF size_t v27; // [xsp+A8h] [xbp+A8h] void *v28; // [xsp+B0h] [xbp+B0h] __int64 v29; // [xsp+B8h] [xbp+B8h] BYREF size_t v30; // [xsp+C0h] [xbp+C0h] void *v31; // [xsp+C8h] [xbp+C8h] __int64 v32; // [xsp+D0h] [xbp+D0h] BYREF size_t v33; // [xsp+D8h] [xbp+D8h] void *v34; // [xsp+E0h] [xbp+E0h] int v35[8]; // [xsp+E8h] [xbp+E8h] BYREF v3 = 0; v4 = 0; v19 = 0; v20 = nullptr; v5 = (cocos2d::CCNode *)cocos2d::CCDictionary::create(_stack_chk_guard); v6 = (cocos2d::CCNode *)cocos2d::CCNode::create(v5); generateAllBinaryStrings(8, v35, 0, v5, v6); v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(v5); while ( v4 < (unsigned int)cocos2d::CCArray::count(v7) ) { v8 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v7, v4); CString = (const char *)cocos2d::CCString::getCString(v8); v23 = 0; v24 = 0; v25 = nullptr; v21 = (char *)CString; v10 = strlen(CString); std::string::__init(&v23, v21, v10); v29 = 0; v30 = 0; v31 = nullptr; if ( (v23 & 1) != 0 ) { std::string::__init(&v29, v25, v24); } else { v31 = v25; v29 = v23; v30 = v24; } prefabKeyFromBinary((__int64)&v29, (__int64)&v26); if ( (v29 & 1) != 0 ) operator delete(v31); v32 = 0; v33 = 0; v34 = nullptr; if ( (v26 & 1) != 0 ) { std::string::__init(&v32, v28, v27); } else { v34 = v28; v32 = v26; v33 = v27; } isUnrequired = GJSmartTemplate::isUnrequired((__int64)this, (unsigned __int8 *)&v32); if ( (v32 & 1) != 0 ) operator delete(v34); v12 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*((_QWORD *)this + 7), &v26); v13 = v12; if ( v12 ) { ++v4; v14 = cocos2d::CCArray::count(v12) != 0; if ( isUnrequired ) { if ( v14 ) { LABEL_23: LODWORD(v20) = (_DWORD)v20 + 1; v19 += cocos2d::CCArray::count(v13); } LABEL_14: if ( (v26 & 1) != 0 ) goto LABEL_20; goto LABEL_15; } ++v3; if ( v14 ) goto LABEL_23; } else { ++v4; if ( isUnrequired ) goto LABEL_14; ++v3; } ++HIDWORD(v20); if ( (v26 & 1) != 0 ) LABEL_20: operator delete(v28); LABEL_15: if ( (v23 & 1) == 0 ) continue; operator delete(v25); } v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Defined: %i / %i(%i), Variations : %i, Required Missing : %i", (const char *)(unsigned int)v20, v3, v4, v19, HIDWORD(v20)); v22 = (char *)cocos2d::CCString::getCString(v15); *a1 = 0; a1[1] = 0; a1[2] = 0; v16 = strlen(v22); std::string::__init(a1, v22, v16); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source