//
// FileOperation::saveFile from 0x80a410 to 0x80a466 (86 bytes)
//
// 0 xrefs:
//
// 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:29 +0000
//
int __fastcall FileOperation::saveFile(FileOperation *this, int a2, char *a3, int a4)
{
char *v4; // r0
FILE *v5; // r0
FILE *v6; // r6
_DWORD v8[2]; // [sp+0h] [bp-10h] BYREF
char *filename; // [sp+8h] [bp-8h]
int v10; // [sp+Ch] [bp-4h]
v8[0] = this;
v8[1] = a2;
filename = a3;
v10 = a4;
FileOperation::getFilePath((FileOperation *)v8);
if ( (v8[0] & 1) != 0 )
v4 = filename;
else
v4 = (char *)v8 + 1;
v5 = fopen(v4, "w");
v6 = v5;
if ( v5 )
{
fputs("file example", v5);
fclose(v6);
}
return std::string::~string((int)v8);
}