//
// tinyxml2::XMLDocument::SaveFile from 0x7f9fd0 to 0x7fa006 (54 bytes)
//
// 2 xrefs:
// > cocos2d::CCFileUtils::writeToFile @ 0x7e710e
// > sub_7F69A8 @ 0x7f69ca
//
// 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
//
int __fastcall tinyxml2::XMLDocument::SaveFile(tinyxml2::XMLDocument *this, const char *filename, char a3)
{
FILE *v6; // r5
v6 = fopen(filename, "w");
if ( v6 )
{
tinyxml2::XMLDocument::SaveFile(this, (int)v6, a3);
fclose(v6);
}
else
{
tinyxml2::XMLDocument::SetError(this, 4, (int)filename, 0);
}
return *((_DWORD *)this + 12);
}