//
// GameStatsManager::incrementActivePath from 0x8e833c to 0x8e83fc (192 bytes)
//
// 2 xrefs:
// > GameStatsManager::incrementStat @ 0x8e8514
// > ??> @ 0x5b048
//
// 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:56:53 +0000
//
__int64 __fastcall GameStatsManager::incrementActivePath(GameStatsManager *this, int a2)
{
GameToolbox *v4; // x0
const char *v6; // x1
unsigned __int64 v7[2]; // [xsp+30h] [xbp+30h] BYREF
void *v8; // [xsp+40h] [xbp+40h]
GameStatsManager::trySelectActivePath(this);
v4 = (GameToolbox *)*((unsigned int *)this + 229);
if ( (unsigned int)((_DWORD)v4 - 30) <= 9 )
{
GameToolbox::intToString(v7, v4);
v6 = (char *)v7 + 1;
if ( (v7[0] & 1) != 0 )
v6 = (const char *)v8;
GameStatsManager::incrementStat(this, v6, a2);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
}
return _stack_chk_guard;
}