//
// GameStatsManager::getRewardKey from 0x419950 to 0x4199d4 (132 bytes)
//
// 2 xrefs:
// > GameStatsManager::hasRewardBeenCollected @ 0x4199fa
// > GameStatsManager::collectReward @ 0x41c770
//
// 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 GameStatsManager::getRewardKey(int a1, int a2, int a3, int a4)
{
char *v6; // r0
unsigned int v8[3]; // [sp+Ch] [bp-208h] BYREF
char v9; // [sp+18h] [bp-1FCh] BYREF
v8[0] = 0;
v8[1] = 500;
v8[2] = (unsigned int)&v9;
fmt::BasicWriter::operator<<(v8, a3);
fmt::BasicWriter::operator<<(v8, "_", 0);
fmt::BasicWriter::operator<<(v8, a4);
v6 = (char *)fmt::BasicWriter::c_str((int *)v8);
sub_776584(a1, v6);
fmt::internal::Array::free((int)v8);
return a1;
}