// // tinyxml2::XMLElement::FindOrCreateAttribute from 0x7f95a4 to 0x7f9610 (108 bytes) // // 2 xrefs: // > cocos2d::CCFileUtils::writeToFile @ 0x7e70c8 // > tinyxml2::XMLElement::ShallowClone @ 0x7f97da // // 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 12:01:13 +0000 // 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_D11690; *((_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