//
// GJBaseGameLayer::updatePlatformerTime from 0x10029d31c to 0x10029d4c4 (424 bytes)
//
// 2 xrefs:
// > PlayLayer::toggleProgressbar @ 0x10014771c
// > GJBaseGameLayer::updateSpecialLabels @ 0x10029cf6c
//
// 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:11 +0000
//
void __fastcall GJBaseGameLayer::updatePlatformerTime(__int64 a1)
{
double v2; // d0
__int64 v3; // x20
unsigned int v4; // w21
__int64 v5; // x0
char *CString; // x0
_QWORD *v7; // x0
__int64 *v8; // x20
__int64 *i; // x21
__int64 v10; // x19
void **v11; // x8
void *v12; // x1
void **v13; // x8
void *__p[2]; // [xsp+10h] [xbp-90h] BYREF
void *v15; // [xsp+20h] [xbp-80h]
int v16; // [xsp+2Ch] [xbp-74h] BYREF
void *v17[2]; // [xsp+30h] [xbp-70h] BYREF
char v18; // [xsp+47h] [xbp-59h]
void *v19[2]; // [xsp+48h] [xbp-58h] BYREF
char v20; // [xsp+5Fh] [xbp-41h]
int *v21; // [xsp+68h] [xbp-38h] BYREF
v2 = *(double *)(a1 + 13320) * 1000.0;
v3 = (unsigned int)(int)(float)((float)(int)v2 / 1000.0);
v4 = (int)(float)((float)((int)v2 - 1000 * v3) / 10.0);
(*(void (__fastcall **)(__int64, __int64, _QWORD, __int64))(*(_QWORD *)a1 + 1552LL))(a1, v3, v4, 1);
LODWORD(v19[0]) = -1;
if ( sub_100019268((_QWORD *)(a1 + 4000), (int *)v19) )
{
v5 = sub_1003065B0("%i.%02d", v3, v4);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(v19, CString);
GameToolbox::intToString(v3, v17);
v16 = -1;
v21 = &v16;
v7 = sub_10001ACD8(a1 + 4000, &v16, (__int64)&unk_100763014, &v21);
v8 = (__int64 *)v7[3];
for ( i = (__int64 *)v7[4]; v8 != i; ++v8 )
{
v10 = *v8;
if ( *(_BYTE *)(*v8 + 773) == 1 )
{
v11 = *(_BYTE *)(v10 + 1888) ? v17 : v19;
if ( *((char *)v11 + 23) < 0 )
{
v12 = *v11;
v13 = *(_BYTE *)(v10 + 1888) ? v17 : v19;
sub_1000097D0(__p, v12, (unsigned __int64)v13[1]);
}
else
{
*(_OWORD *)__p = *(_OWORD *)v11;
v15 = v11[2];
}
sub_10042F660(v10, __p);
if ( SHIBYTE(v15) < 0 )
operator delete(__p[0]);
}
}
if ( v18 < 0 )
operator delete(v17[0]);
if ( v20 < 0 )
operator delete(v19[0]);
}
}