//
// GameStatsManager::addSpecialRewardDescription from 0x8deaac to 0x8deafc (80 bytes)
//
// 3 xrefs:
// > GameStatsManager::createSpecialChestItems @ 0x8e5244
// > GameStatsManager::createSpecialChestItems @ 0x8e60dc
// > ??> @ 0x7eb20
//
// 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:49 +0000
//
__int64 *__fastcall GameStatsManager::addSpecialRewardDescription(__int64 a1, _QWORD *a2, __int64 *a3)
{
__int64 *result; // x0
const void *v4; // x1
size_t v5; // x2
result = std::unordered_map::operator[](a1 + 376, a2);
if ( result != a3 )
{
if ( (*(_BYTE *)a3 & 1) != 0 )
{
v4 = (const void *)a3[2];
v5 = a3[1];
}
else
{
v4 = (char *)a3 + 1;
v5 = *(_BYTE *)a3 >> 1;
}
return std::string::assign(result, v4, v5);
}
return result;
}