// // tinyxml2::XMLElement::FindOrCreateAttribute from 0x1800990d0 to 0x1800991fd (301 bytes) // // 9 xrefs: // > tinyxml2::XMLElement::SetAttribute @ 0x18006d209 // > cocos2d::CCFileUtils::writeToFile @ 0x1800722b1 // > tinyxml2::XMLElement::ShallowClone @ 0x18009ca8b // > tinyxml2::XMLElement::SetAttribute @ 0x1800d12b9 // > tinyxml2::XMLElement::SetAttribute @ 0x1800d12d9 // > tinyxml2::XMLElement::SetAttribute @ 0x1800d12fc // > tinyxml2::XMLElement::SetAttribute @ 0x1800d132a // > @ 0x1801438a8 // > @ 0x1801b6dc8 // // 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 // struct tinyxml2::XMLAttribute *__fastcall tinyxml2::XMLElement::FindOrCreateAttribute( tinyxml2::XMLElement *this, const char *a2) { __int64 v2; // rdi __int64 v5; // rbp const char *v6; // rbx const char *Str; // rax const char *v8; // rcx int v9; // edx char v10; // al bool v11; // zf __int64 v12; // rbx v2 = *((_QWORD *)this + 12); v5 = 0; if ( v2 ) { while ( 1 ) { v6 = a2; Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v2 + 8)); v8 = Str; v9 = 0; if ( Str == a2 ) return (struct tinyxml2::XMLAttribute *)v2; v10 = *Str; if ( !v10 ) goto LABEL_11; do { if ( !*v6 || v10 != *v6 ) break; v11 = v9 == 0x7FFFFFFF; if ( v9 == 0x7FFFFFFF ) goto LABEL_9; v10 = *++v8; ++v6; ++v9; } while ( v10 ); v11 = v9 == 0x7FFFFFFF; LABEL_9: if ( v11 ) return (struct tinyxml2::XMLAttribute *)v2; if ( !*v8 ) { LABEL_11: if ( !*v6 ) return (struct tinyxml2::XMLAttribute *)v2; } v5 = v2; v2 = *(_QWORD *)(v2 + 56); if ( !v2 ) goto LABEL_13; } } else { LABEL_13: v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*((_QWORD *)this + 1) + 256LL) + 16LL))(*((_QWORD *)this + 1) + 256LL); *(_DWORD *)(v12 + 8) = 0; *(_QWORD *)(v12 + 16) = 0; *(_QWORD *)(v12 + 24) = 0; *(_QWORD *)v12 = &tinyxml2::XMLAttribute::`vftable'; *(_DWORD *)(v12 + 32) = 0; *(_QWORD *)(v12 + 40) = 0; *(_QWORD *)(v12 + 48) = 0; *(_QWORD *)(v12 + 56) = 0; *(_QWORD *)(v12 + 64) = *((_QWORD *)this + 1) + 256LL; if ( v5 ) *(_QWORD *)(v5 + 56) = v12; else *((_QWORD *)this + 12) = v12; tinyxml2::StrPair::SetStr((tinyxml2::StrPair *)(v12 + 8), a2, 0); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v12 + 64) + 32LL))(*(_QWORD *)(v12 + 64)); return (struct tinyxml2::XMLAttribute *)v12; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source