//
// GJBaseGameLayer::addObjectCounter from 0x1001fb970 to 0x1001fb9f4 (132 bytes)
//
// 3 xrefs:
// > PlayLayer::addObject @ 0x100118994
// > LevelEditorLayer::init @ 0x1003576a0
// > LevelEditorLayer::recreateGroups @ 0x100361e78
//
// 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
//
void __fastcall GJBaseGameLayer::addObjectCounter(GJBaseGameLayer *a1, LabelGameObject *a2)
{
int m_itemID; // w8
std::unordered_map> *p_m_timeLabelObjects; // x0
_QWORD *v4; // x0
int v5; // [xsp+4h] [xbp-1Ch] BYREF
LabelGameObject *v6; // [xsp+8h] [xbp-18h] BYREF
int *v7; // [xsp+18h] [xbp-8h] BYREF
v6 = a2;
m_itemID = a2->m_itemID;
if ( a2->m_shownSpecial < 0 )
m_itemID = a2->m_shownSpecial;
v5 = m_itemID;
if ( a2->m_isTimeCounter )
{
v7 = &v5;
p_m_timeLabelObjects = &a1->m_timeLabelObjects;
}
else
{
v7 = &v5;
p_m_timeLabelObjects = &a1->m_labelObjects;
}
v4 = sub_10001A284((unsigned __int64)p_m_timeLabelObjects, &v5, (__int64)&unk_10063A31C, &v7);
sub_1000115B8((__int64)(v4 + 3), &v6);
}