// // GJSmartTemplate::dataLoaded from 0x1000083e8 to 0x1000085dc (500 bytes) // // 1 xrefs: // > GJSmartTemplate::createWithCoder @ 0x1000083d4 // // 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 10:57:11 +0000 // __int64 __fastcall GJSmartTemplate::dataLoaded(__int64 a1, __int64 a2) { __int64 DictForKey; // x0 __int64 v5; // x20 __int64 result; // x0 __int64 v7; // x21 __int64 v8; // x0 char *CString; // x0 __int64 v10; // x0 unsigned int *v11; // x9 __int64 v12; // x8 unsigned __int64 v13; // x22 unsigned __int64 v14; // x23 std::string __p; // [xsp+0h] [xbp-60h] BYREF std::string __str; // [xsp+18h] [xbp-48h] BYREF *(_DWORD *)(a1 + 192) = DS_Dictionary::getIntegerForKey(a2, "1"); DS_Dictionary::getStringForKey(&__str, a2, "2"); if ( *(char *)(a1 + 167) < 0 ) operator delete(*(void **)(a1 + 144)); *(std::string *)(a1 + 144) = __str; *(_BYTE *)(a1 + 138) = (unsigned int)DS_Dictionary::getIntegerForKey(a2, "4") != 0; *(_BYTE *)(a1 + 136) = (unsigned int)DS_Dictionary::getIntegerForKey(a2, "5") != 0; *(_BYTE *)(a1 + 137) = (unsigned int)DS_Dictionary::getIntegerForKey(a2, "6") != 0; *(_BYTE *)(a1 + 139) = (unsigned int)DS_Dictionary::getIntegerForKey(a2, "7") != 0; DictForKey = DS_Dictionary::getDictForKey(a2, "3", 0); sub_100004430(a1, DictForKey); v5 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 56)); result = sub_1002E757C(v5); if ( (_DWORD)result ) { v7 = 0; do { v8 = cocos2d::CCArray::stringAtIndex(v5, v7); CString = (char *)cocos2d::CCString::getCString(v8); sub_100009900((int)&__str, CString); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, __str.__r_.__value_.__l.__data_); else __p = __str; sub_100004698((_QWORD *)a1, (__int128 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v10 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 56), &__str); if ( v10 ) { v11 = *(unsigned int **)(v10 + 56); v12 = *v11; if ( (_DWORD)v12 ) { v13 = *((_QWORD *)v11 + 2); v14 = v13 + 8 * v12 - 8; do { if ( !*(_QWORD *)v13 ) break; std::string::operator=((std::string *)(*(_QWORD *)v13 + 56LL), &__str); v13 += 8LL; } while ( v13 <= v14 ); } } if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); v7 = (unsigned int)(v7 + 1); result = sub_1002E757C(v5); } while ( (unsigned int)v7 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source