//
// GJBaseGameLayer::resetGroupCounters from 0x59c4c8 to 0x59c5c0 (248 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::onStopPlaytest @ 0x462b84
// > LevelEditorLayer::onPlaytest @ 0x4683ce
// > LevelEditorLayer::init @ 0x476546
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:13 +0000
//
void __fastcall GJBaseGameLayer::resetGroupCounters(GJBaseGameLayer *this, int a2)
{
_DWORD *i; // r4
LabelGameObject **v5; // r11
LabelGameObject **j; // r7
LabelGameObject *v7; // r3
LabelGameObject *v8; // t1
_DWORD *k; // r4
unsigned __int8 **v10; // r11
unsigned __int8 **m; // r6
unsigned __int8 *v12; // r3
unsigned __int8 *v13; // t1
int v14; // r2
const char *v15; // r1
size_t v16; // r0
int v17; // [sp+8h] [bp-1Ch]
const char *v18; // [sp+8h] [bp-1Ch]
int v19; // [sp+Ch] [bp-18h]
int v20; // [sp+10h] [bp-14h] BYREF
int v21; // [sp+14h] [bp-10h]
int v22; // [sp+18h] [bp-Ch]
for ( i = *((_DWORD **)this + 621); i; i = (_DWORD *)*i )
{
v5 = (LabelGameObject **)i[4];
for ( j = (LabelGameObject **)i[3]; j != v5; ++j )
{
v8 = *j;
v7 = v8;
if ( a2 )
{
v17 = (int)v7;
v20 = 0;
v21 = 0;
v22 = 0;
std::string::__init(&v20, "0", 1u);
LabelGameObject::updateLabel(v17, (int)&v20);
std::string::~string((int)&v20);
}
else
{
LabelGameObject::updatePreviewLabel(v7);
}
}
}
for ( k = *((_DWORD **)this + 626); k; k = (_DWORD *)*k )
{
v10 = (unsigned __int8 **)k[4];
for ( m = (unsigned __int8 **)k[3]; m != v10; ++m )
{
v13 = *m;
v12 = v13;
if ( a2 )
{
v14 = v12[1676];
v19 = (int)v12;
v20 = 0;
v21 = 0;
if ( v14 )
v15 = "0";
else
v15 = "0.00";
v18 = v15;
v22 = 0;
v16 = strlen(v15);
std::string::__init(&v20, v18, v16);
LabelGameObject::updateLabel(v19, (int)&v20);
std::string::~string((int)&v20);
}
else
{
LabelGameObject::updatePreviewLabel((LabelGameObject *)v12);
}
}
}
}