//
// sub_7FE4F8 from 0x7fe4f8 to 0x7fe580 (136 bytes)
//
// 2 xrefs:
// > GameLevelManager::writePlatformerSaveJournal @ 0x83cf7c
// > GameLevelManager::replayPlatformerSaveJournal @ 0x8450e4
//
// 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 12:54:42 +0000
//
__int64 __fastcall sub_7FE4F8(GJAccountManager *a1)
{
__int64 v2; // x0
unsigned __int64 v3; // x2
int i; // w0
char *v5; // x3
int v6; // w3
v2 = GJAccountManager::sharedState(a1);
v3 = 0;
for ( i = -1640531535 * (*(_DWORD *)(v2 + 352) - *(_DWORD *)(v2 + 356)); ; i = 16777619 * (v6 ^ i) )
{
v5 = (char *)a1 + 1;
if ( (*(_BYTE *)a1 & 1) == 0 )
break;
if ( v3 >= *((_QWORD *)a1 + 1) )
return i & 0x7FFFFFFF;
v5 = *((char **)a1 + 2);
LABEL_4:
v6 = (unsigned __int8)v5[v3++];
}
if ( v3 < *(_BYTE *)a1 >> 1 )
goto LABEL_4;
return i & 0x7FFFFFFF;
}