//
// GJBaseGameLayer::refreshCounterLabels from 0x100298800 to 0x100298960 (352 bytes)
//
// 1 xrefs:
// > PlayLayer::resetLevel @ 0x10014be30
//
// This function is hookable on this platform (idp: arm, 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:02:07 +0000
//
void __fastcall GJBaseGameLayer::refreshCounterLabels(__int64 a1)
{
__int64 *i; // x22
__int64 v3; // x0
__int64 v4; // x20
__int64 *v5; // x24
__int64 *v6; // x25
__int64 v7; // x20
std::string *v8; // x1
void *__p[2]; // [xsp+18h] [xbp-298h] BYREF
char v10; // [xsp+2Fh] [xbp-281h]
std::string v11; // [xsp+30h] [xbp-280h] BYREF
int v12; // [xsp+4Ch] [xbp-264h] BYREF
__int128 v13; // [xsp+50h] [xbp-260h] BYREF
std::string::value_type *__s; // [xsp+60h] [xbp-250h]
_BYTE v15[512]; // [xsp+68h] [xbp-248h] BYREF
for ( i = *(__int64 **)(a1 + 4016); i; i = (__int64 *)*i )
{
memset(&v11, 0, sizeof(v11));
v13 = xmmword_10075BA80;
__s = v15;
v3 = sub_100015640(*(_QWORD *)(a1 + 2152), *((_DWORD *)i + 4));
v12 = v3;
sub_100009A40((int)&v13, v3, (int)&v12);
v4 = v13;
if ( *((_QWORD *)&v13 + 1) < (unsigned __int64)(v13 + 1) )
sub_100009ED4((__int64)&v13, v13 + 1);
__s[v4] = 0;
std::string::assign(&v11, __s);
v5 = (__int64 *)i[3];
v6 = (__int64 *)i[4];
while ( v5 != v6 )
{
v7 = *v5;
if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v8 = &v11;
else
v8 = (std::string *)v11.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v8);
sub_10042F660(v7, __p);
if ( v10 < 0 )
operator delete(__p[0]);
++v5;
}
if ( __s != v15 && __s )
operator delete[](__s);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v11.__r_.__value_.__l.__data_);
}
}