//
// GameStatsManager::getItemKey from 0x1402e5360 to 0x1402e5447 (231 bytes)
//
// 27 xrefs:
// > GameSettingsLayer::getValue @ 0x1402c6fae
// > GameSettingsLayer::valueDidChange @ 0x1402c72d9
// > GameStatsManager::init @ 0x1402d6c4e
// > GameStatsManager::generateItemUnlockableData @ 0x1402d6f12
// > GameStatsManager::generateItemUnlockableData @ 0x1402d7009
// > GameStatsManager::generateItemUnlockableData @ 0x1402d70cf
// > GameStatsManager::generateItemUnlockableData @ 0x1402d7155
// > GameStatsManager::addStoreItem @ 0x1402da0dd
// > GameStatsManager::hasRewardBeenCollected @ 0x1402e5473
// > GameStatsManager::isItemUnlocked @ 0x1402e94da
// > GameStatsManager::isItemUnlocked @ 0x1402e9641
// > GameStatsManager::getItemUnlockState @ 0x1402e975e
// > GameStatsManager::toggleEnableItem @ 0x1402e9838
// > GameStatsManager::linkSpecialChestUnlocks @ 0x1402ee28e
// > GameStatsManager::getSpecialUnlockDescription @ 0x1402ee602
// > GameStatsManager::getSecretChestForItem @ 0x1402eec13
// > GJGarageLayer::setupSpecialPage @ 0x14037f958
// > GJGarageLayer::onToggleItem @ 0x140380347
// > GJPathPage::onUnlock @ 0x1403952dd
// > PlayerObject::init @ 0x1404e4d81
// > PlayerObject::init @ 0x1404e4e1b
// > PlayerObject::init @ 0x1404e4eb4
// > PlayLayer::toggleMusicInPractice @ 0x14051142f
// > RewardsPage::rewardsStatusFinished @ 0x140562ed7
// > RewardsPage::updateTimers @ 0x140563263
// > RewardsPage::updateTimers @ 0x1405632e2
// > ??> @ 0x14091df90
//
// 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 11:29:50 +0000
//
// 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[2]; // [rsp+30h] [rbp-248h] 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_14003D230(a2, v7, v8);
fmt::BasicWriter::~BasicWriter(v11);
return a2;
}