//
// GJBaseGameLayer::updateCounters from 0x48e4b0 to 0x48e584 (212 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::collectedObject @ 0x48e5c4
// > GJBaseGameLayer::addPickupTrigger @ 0x48e668
// > GJBaseGameLayer::activateItemEditTrigger @ 0x48e832
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x48ea66
// > GJBaseGameLayer::activatePersistentItemTrigger @ 0x48eaae
//
// 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 GJBaseGameLayer::updateCounters(GJBaseGameLayer *a1, int a2, int a3)
{
int *v4; // r0
int v5; // r8
int v6; // r1
char *v7; // r0
int *v8; // r9
int *v9; // r8
int v10; // t1
int v11; // [sp+4h] [bp-214h] BYREF
_BYTE v12[4]; // [sp+Ch] [bp-20Ch] BYREF
_BYTE v13[4]; // [sp+10h] [bp-208h] BYREF
unsigned int v14[3]; // [sp+14h] [bp-204h] BYREF
char v15; // [sp+20h] [bp-1F8h] BYREF
v11 = a2;
v4 = (int *)sub_46C7C8(&a1->m_labelObjects._M_h._M_buckets, a2 % a1->m_labelObjects._M_h._M_bucket_count, &v11);
if ( v4 )
{
v5 = *v4;
if ( *v4 )
{
v6 = 999999999;
v14[0] = 0;
v14[1] = 500;
if ( a3 <= 999999999 )
v6 = a3;
v14[2] = (unsigned int)&v15;
fmt::BasicWriter::operator<<(v14, v6);
v7 = (char *)fmt::BasicWriter::c_str((int *)v14);
sub_776584((int)v12, v7);
v8 = *(int **)(v5 + 12);
v9 = *(int **)(v5 + 8);
while ( v9 != v8 )
{
v10 = *v9++;
sub_775C20(v13);
LabelGameObject::queueUpdateLabel(v10, (int)v13);
sub_774008(v13);
}
sub_774008(v12);
fmt::internal::Array::free((int)v14);
}
}
}