//
// GameStatsManager::getPathRewardKey from 0x7b66ac to 0x7b67c8 (284 bytes)
//
// 15 xrefs:
// > GameStatsManager::isPathChestUnlocked @ 0x7b67f8
// > GameStatsManager::tryFixPathBug @ 0x7b6ecc
// > GameStatsManager::unlockPathChest @ 0x7bbeac
// > GameStatsManager::createSpecialChestItems @ 0x7c22f0
// > GameStatsManager::createSpecialChestItems @ 0x7c23a8
// > GameStatsManager::createSpecialChestItems @ 0x7c2464
// > GameStatsManager::createSpecialChestItems @ 0x7c2500
// > GameStatsManager::createSpecialChestItems @ 0x7c25bc
// > GameStatsManager::createSpecialChestItems @ 0x7c2674
// > GameStatsManager::createSpecialChestItems @ 0x7c2730
// > GameStatsManager::createSpecialChestItems @ 0x7c27e8
// > GameStatsManager::createSpecialChestItems @ 0x7c28a4
// > GameStatsManager::createSpecialChestItems @ 0x7c295c
// > GameStatsManager::createSpecialChestItems @ 0x7c2a08
// > ??> @ 0x3e910
//
// 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
//
__int64 __usercall GameStatsManager::getPathRewardKey@(
GameStatsManager *this@,
unsigned int a2@,
__int64 a3@)
{
size_t v4; // x23
size_t v6; // [xsp+48h] [xbp+48h] BYREF
unsigned __int64 v7; // [xsp+50h] [xbp+50h]
char *v8; // [xsp+58h] [xbp+58h]
_BYTE v9[504]; // [xsp+60h] [xbp+60h] BYREF
v8 = v9;
v7 = 500;
qmemcpy(v9, "pr_", 3);
v6 = 3;
fmt::BasicWriter::FormatInt,char>>(&v6, a2);
v4 = v6;
if ( v6 + 1 > v7 )
fmt::internal::Array::grow(&v6, v6 + 1);
v8[v4] = 0;
sub_D153B8(a3, v8);
if ( v8 != v9 && v8 )
operator delete[](v8);
return a3;
}