//
// GameStatsManager::setStatIfHigher from 0x100032400 to 0x100032440 (64 bytes)
//
// 2 xrefs:
// > GameManager::verifySyncedCoins @ 0x100368ea2
// > sub_10053C050 @ 0x10053cc81
//
// 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:31 +0000
//
__int64 __fastcall GameStatsManager::setStatIfHigher(__int64 a1, const char *a2, int a3, __m128 a4)
{
__int64 result; // rax
result = GameStatsManager::getStat(a1, a2, a4);
if ( (int)result < a3 )
return GameStatsManager::setStat(a1, a2, a3, a4);
return result;
}