//
// GameStatsManager::getItemKey from 0x1401e1980 to 0x1401e1a6a (234 bytes)
//
// 27 xrefs:
// > GameStatsManager::init @ 0x1401d126e
// > GameStatsManager::generateItemUnlockableData @ 0x1401d1515
// > GameStatsManager::generateItemUnlockableData @ 0x1401d15fd
// > GameStatsManager::generateItemUnlockableData @ 0x1401d16be
// > GameStatsManager::generateItemUnlockableData @ 0x1401d1742
// > GameStatsManager::addStoreItem @ 0x1401d417d
// > GameStatsManager::hasRewardBeenCollected @ 0x1401e1a93
// > GameStatsManager::isItemUnlocked @ 0x1401e588d
// > GameStatsManager::isItemUnlocked @ 0x1401e5953
// > GameStatsManager::isItemUnlocked @ 0x1401e5a15
// > GameStatsManager::getItemUnlockState @ 0x1401e5b2e
// > GameStatsManager::toggleEnableItem @ 0x1401e5bf8
// > GameStatsManager::linkSpecialChestUnlocks @ 0x1401e9ffe
// > GameStatsManager::getSpecialUnlockDescription @ 0x1401ea377
// > GJGarageLayer::setupSpecialPage @ 0x140276f50
// > GJGarageLayer::onToggleItem @ 0x140277941
// > GJPathPage::onUnlock @ 0x1402874f8
// > GameOptionsLayer::setupOptions @ 0x14029f47e
// > GameOptionsLayer::onPracticeMusicSync @ 0x1402a033d
// > PlayerObject::init @ 0x140386afe
// > PlayerObject::init @ 0x140386b91
// > PlayerObject::init @ 0x140386c23
// > PlayLayer::toggleMusicInPractice @ 0x1403b2978
// > RewardsPage::rewardsStatusFinished @ 0x1403cd63b
// > RewardsPage::updateTimers @ 0x1403cd9a7
// > RewardsPage::updateTimers @ 0x1403cda22
// > ??> @ 0x1406cc528
//
// 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
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall GameStatsManager::getItemKey(__int64 a1, _QWORD *a2, unsigned int a3, unsigned int a4)
{
_BYTE *v7; // rax
size_t v8; // r8
_QWORD v10[4]; // [rsp+20h] [rbp-258h] BYREF
_BYTE v11[528]; // [rsp+40h] [rbp-238h] BYREF
fmt::BasicWriter::BasicWriter(v11);
fmt::BasicWriter::operator<<(v11, a3);
v10[0] = "_";
v10[1] = 0;
fmt::BasicWriter::operator<<(v11, v10);
fmt::BasicWriter::operator<<(v11, a4);
v7 = (_BYTE *)fmt::BasicWriter::c_str(v11);
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 0;
v8 = -1;
do
++v8;
while ( v7[v8] );
sub_14003A930(a2, v7, v8);
fmt::BasicWriter::~BasicWriter(v11);
return a2;
}