//
// sub_5FC64C from 0x5fc64c to 0x5fc6ca (126 bytes)
//
// 4 xrefs:
// > DS_Dictionary::saveRootSubDictToFile @ 0x5fc814
// > DS_Dictionary::saveRootSubDictToFile @ 0x5fc820
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x5fca96
// > DS_Dictionary::saveRootSubDictToCompressedFile @ 0x5fcaa2
//
// 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_5FC64C(int a1, char *a2, char *a3, int a4)
{
int i; // r2
int v7; // r8
char *v9; // [sp+4h] [bp+0h] BYREF
_DWORD v10[2]; // [sp+8h] [bp+4h] 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;
}