//
// FileOperation::saveFile from 0xdb4d88 to 0xdb4e34 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0xd19f8
//
// 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:41 +0000
//
__int64 __fastcall FileOperation::saveFile(FileOperation *this)
{
char *v1; // x0
FILE *v2; // x0
FILE *v3; // x19
char *v5[2]; // [xsp+20h] [xbp+20h] BYREF
char *filename; // [xsp+30h] [xbp+30h]
FileOperation::getFilePath(v5);
v1 = (char *)v5 + 1;
if ( ((__int64)v5[0] & 1) != 0 )
v1 = filename;
v2 = fopen(v1, "w");
v3 = v2;
if ( !v2 )
{
if ( ((__int64)v5[0] & 1) == 0 )
return _stack_chk_guard;
LABEL_7:
operator delete(filename);
return _stack_chk_guard;
}
fwrite("file example", 1u, 0xCu, v2);
fclose(v3);
if ( ((__int64)v5[0] & 1) != 0 )
goto LABEL_7;
return _stack_chk_guard;
}