//
// GJBaseGameLayer::updatePlatformerTime from 0x5b56b8 to 0x5b57e8 (304 bytes)
//
// 2 xrefs:
// > PlayLayer::toggleProgressbar @ 0x406732
// > GJBaseGameLayer::updateSpecialLabels @ 0x5b5812
//
// 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:36 +0000
//
_DWORD *__fastcall GJBaseGameLayer::updatePlatformerTime(GJBaseGameLayer *this)
{
int PlayTimerMilli; // r0
int v3; // r4
int v4; // r3
GJBaseGameLayer *v5; // r0
int v6; // s15
int v7; // r3
_DWORD *v8; // r6
_DWORD *result; // r0
cocos2d::CCString *v10; // r0
const char *CString; // r0
const char *v12; // r9
size_t v13; // r0
int **v14; // r0
int *v15; // r6
int *v16; // r10
int v17; // r8
int v18; // t1
int *v19; // r1
unsigned int v20; // [sp+Ch] [bp-2Ch] BYREF
int v21[3]; // [sp+10h] [bp-28h] BYREF
_BYTE v22[12]; // [sp+1Ch] [bp-1Ch] BYREF
int v23[3]; // [sp+28h] [bp-10h] BYREF
PlayTimerMilli = GJBaseGameLayer::getPlayTimerMilli(this);
v3 = (int)(float)((float)PlayTimerMilli / 1000.0);
v4 = PlayTimerMilli - 1000 * v3;
v5 = this;
v6 = v4;
v7 = *(_DWORD *)this;
v8 = (_DWORD *)((char *)this + 2476);
(*(void (__fastcall **)(GJBaseGameLayer *, int, int, int))(v7 + 776))(v5, v3, (int)(float)((float)v6 / 10.0), 1);
v20 = -1;
result = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find(
v8,
&v20);
if ( result )
{
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i.%02d",
(const char *)v3,
(int)(float)((float)v6 / 10.0));
CString = (const char *)cocos2d::CCString::getCString(v10);
memset(v21, 0, sizeof(v21));
v12 = CString;
v13 = strlen(CString);
std::string::__init(v21, v12, v13);
GameToolbox::intToString((GameToolbox *)v22, v3);
v20 = -1;
v14 = (int **)std::unordered_map>::operator[]((int)v8, &v20);
v15 = *v14;
v16 = v14[1];
while ( v15 != v16 )
{
v18 = *v15++;
v17 = v18;
if ( *(_BYTE *)(v18 + 657) )
{
if ( *(_BYTE *)(v17 + 1676) )
v19 = (int *)v22;
else
v19 = v21;
std::string::basic_string(v23, (int)v19);
LabelGameObject::updateLabel(v17, (int)v23);
std::string::~string((int)v23);
}
}
std::string::~string((int)v22);
return (_DWORD *)std::string::~string((int)v21);
}
return result;
}