//
// tinyxml2::XMLDocument::SaveFile from 0xd98e2c to 0xd98eb4 (136 bytes)
//
// 8 xrefs:
// > cocos2d::CCFileUtils::writeToFile @ 0xd74bb0
// > sub_D90480 @ 0xd904b8
// > cocos2d::CCUserDefault::setBoolForKey @ 0xd906c8
// > cocos2d::CCUserDefault::setIntegerForKey @ 0xd90874
// > cocos2d::CCUserDefault::setFloatForKey @ 0xd90a20
// > cocos2d::CCUserDefault::setDoubleForKey @ 0xd90bcc
// > cocos2d::CCUserDefault::setStringForKey @ 0xd90d70
// > ??> @ 0x995b0
//
// 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:08:23 +0000
//
__int64 __fastcall tinyxml2::XMLDocument::SaveFile(tinyxml2::XMLDocument *this, const char *filename, char a3)
{
FILE *v6; // x0
FILE *v7; // x19
v6 = fopen(filename, "w");
v7 = v6;
if ( v6 )
{
tinyxml2::XMLDocument::SaveFile(this, (__int64)v6, a3);
fclose(v7);
}
else
{
tinyxml2::XMLDocument::SetError((__int64)this, 4, (__int64)filename, 0);
}
return *((unsigned int *)this + 23);
}