//
// FileOperation::readFile from 0xdb4e34 to 0xdb4ee8 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0xe4460
//
// 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::readFile(FileOperation *this)
{
char *v1; // x0
FILE *v2; // x0
FILE *v3; // x19
char *v5[2]; // [xsp+28h] [xbp+28h] BYREF
char *filename; // [xsp+38h] [xbp+38h]
char s[8]; // [xsp+40h] [xbp+40h] BYREF
__int64 v8; // [xsp+48h] [xbp+48h]
__int64 v9; // [xsp+50h] [xbp+50h]
__int64 v10; // [xsp+58h] [xbp+58h]
__int64 v11; // [xsp+60h] [xbp+60h]
__int64 v12; // [xsp+68h] [xbp+68h]
__int16 v13; // [xsp+70h] [xbp+70h]
FileOperation::getFilePath(v5);
v1 = (char *)v5 + 1;
if ( ((__int64)v5[0] & 1) != 0 )
v1 = filename;
v2 = fopen(v1, "r");
v13 = 0;
*(_QWORD *)s = 0;
v8 = 0;
v9 = 0;
v10 = 0;
v11 = 0;
v12 = 0;
v3 = v2;
if ( !v2 )
{
if ( ((__int64)v5[0] & 1) == 0 )
return _stack_chk_guard;
LABEL_7:
operator delete(filename);
return _stack_chk_guard;
}
fgets(s, 50, v2);
fclose(v3);
if ( ((__int64)v5[0] & 1) != 0 )
goto LABEL_7;
return _stack_chk_guard;
}