//
// sub_2F0144 from 0x2f0144 to 0x2f01dc (152 bytes)
//
// 2 xrefs:
// > GManager::loadDataFromFile @ 0x2f0462
// > GManager::loadDataFromFile @ 0x2f048c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_2F0144(int a1, char *a2, char *a3, int a4)
{
int i; // r2
int v7; // r8
char *v9; // [sp+4h] [bp-Ch] BYREF
_DWORD v10[2]; // [sp+8h] [bp-8h] BYREF
v9 = a2;
v10[0] = a3;
v10[1] = a4;
sub_776584(a1, a2);
sub_776584((int)&v9, ".dat");
sub_776584((int)v10, a3);
for ( i = 0; ; i = *(_DWORD *)(v10[0] - 12) + v7 )
{
v7 = sub_774834(a1, &v9, i);
if ( v7 == -1 )
break;
sub_776454(a1, v7, *((_DWORD *)v9 - 3), v10);
}
sub_774008(v10);
sub_774008(&v9);
return a1;
}