// // tinyxml2::XMLElement::FindOrCreateAttribute from 0x5ee54c to 0x5ee5b8 (108 bytes) // // 2 xrefs: // > cocos2d::CCFileUtils::writeToFile @ 0x5deca4 // > tinyxml2::XMLElement::ShallowClone @ 0x5ee782 // // 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 // tinyxml2::XMLAttribute *__fastcall tinyxml2::XMLElement::FindOrCreateAttribute( tinyxml2::XMLElement *this, tinyxml2::XMLUtil *a2) { tinyxml2::XMLAttribute *v3; // r4 tinyxml2::XMLAttribute *v5; // r6 tinyxml2::XMLUtil *Str; // r0 int v7; // r3 tinyxml2::XMLAttribute *v8; // r0 v3 = *((tinyxml2::XMLAttribute **)this + 12); v5 = nullptr; while ( v3 ) { Str = (tinyxml2::XMLUtil *)tinyxml2::StrPair::GetStr((tinyxml2::XMLAttribute *)((char *)v3 + 4)); if ( tinyxml2::XMLUtil::StringEqual(Str, a2, (const char *)0x7FFFFFFF, v7) ) return v3; v5 = v3; v3 = *((tinyxml2::XMLAttribute **)v3 + 7); } v8 = (tinyxml2::XMLAttribute *)tinyxml2::MemPoolT<36>::Alloc(*((_DWORD *)this + 1) + 144); v3 = v8; if ( v8 ) { *(_DWORD *)v8 = &off_AADCD8; *((_DWORD *)v8 + 1) = 0; *((_DWORD *)v8 + 2) = 0; *((_DWORD *)v8 + 3) = 0; *((_DWORD *)v8 + 4) = 0; *((_DWORD *)v8 + 5) = 0; *((_DWORD *)v8 + 6) = 0; *((_DWORD *)v8 + 7) = 0; } *((_DWORD *)v8 + 8) = *((_DWORD *)this + 1) + 144; if ( v5 ) *((_DWORD *)v5 + 7) = v8; else *((_DWORD *)this + 12) = v8; tinyxml2::XMLAttribute::SetName(v8, (const char *)a2); (*(void (__fastcall **)(_DWORD))(**((_DWORD **)v3 + 8) + 20))(*((_DWORD *)v3 + 8)); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source