//
// FileOperation::readFile from 0x80a474 to 0x80a4d8 (100 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::readFile(FileOperation *this)
{
char *v1; // r0
FILE *v2; // r6
char v4; // [sp+4h] [bp-Ch] BYREF
char v5; // [sp+5h] [bp-Bh] BYREF
char *filename; // [sp+Ch] [bp-4h]
char v7[52]; // [sp+10h] [bp+0h] BYREF
FileOperation::getFilePath((FileOperation *)&v4);
if ( (v4 & 1) != 0 )
v1 = filename;
else
v1 = &v5;
v2 = fopen(v1, (const char *)&a1i2r3e45s789g[3]);
memset(v7, 0, 0x32u);
if ( v2 )
{
fgets(v7, 50, v2);
fclose(v2);
}
return std::string::~string((int)&v4);
}