//
// GameStatsManager::getStatFromKey from 0x100031f70 to 0x100031fb7 (71 bytes)
//
// 4 xrefs:
// > GJPathSprite::updateState @ 0x1002e955f
// > GJPathsLayer::onPath @ 0x1002e95e1
// > GJPathPage::init @ 0x1002ea96b
// > GJPathPage::init @ 0x1002ea987
//
// This function is hookable on this platform (idp: pc, 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:19:30 +0000
//
__int64 __fastcall GameStatsManager::getStatFromKey(__int64 a1, __int64 a2, __m128 a3)
{
const char *v3; // rsi
__int64 result; // rax
unsigned int v5; // ebx
char v6; // [rsp+0h] [rbp-20h] BYREF
char v7; // [rsp+1h] [rbp-1Fh] BYREF
void *__p; // [rsp+10h] [rbp-10h]
GameToolbox::intToString(&v6, a2);
if ( (v6 & 1) != 0 )
v3 = (const char *)__p;
else
v3 = &v7;
result = GameStatsManager::getStat(a1, v3, a3);
if ( (v6 & 1) != 0 )
{
v5 = result;
operator delete(__p);
return v5;
}
return result;
}