//
// PlayLayer::updateTimeLabel from 0x6ffbbc to 0x6ffd94 (472 bytes)
//
// 2 xrefs:
// > ??> @ 0x52408
// > ??> @ 0x1428a50
//
// 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 12:52:02 +0000
//
__int64 __fastcall PlayLayer::updateTimeLabel(PlayLayer *this, const char *a2, __int64 a3, unsigned __int8 a4)
{
int v4; // w21
cocos2d::CCString *v7; // x0
char *CString; // x0
char *v9; // x1
cocos2d::CCDirector *v10; // x0
cocos2d::CCDirector *v11; // x0
__int64 v12; // x20
__int64 v13; // x0
void (__fastcall *v14)(__int64, _BYTE *); // x22
float v15; // s8
__int64 v16; // x0
char *v17; // x1
__int64 v20; // [xsp+58h] [xbp+58h] BYREF
_BYTE v21[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v22; // [xsp+68h] [xbp+68h] BYREF
__int64 v23; // [xsp+70h] [xbp+70h]
void *v24; // [xsp+78h] [xbp+78h]
unsigned __int64 v25[2]; // [xsp+80h] [xbp+80h] BYREF
void *v26; // [xsp+90h] [xbp+90h]
v4 = a4;
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**((_QWORD **)this + 1792) + 352LL))(*((_QWORD *)this + 1792))
&& *((_BYTE *)this + 12238) )
{
v22 = 0;
v23 = 0;
v24 = nullptr;
if ( v4 )
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i.%02d", a2, a3);
CString = (char *)cocos2d::CCString::getCString(v7);
std::string::assign(&v22, CString);
}
else
{
GameToolbox::intToString(v25, (GameToolbox *)(unsigned int)a2);
v17 = (char *)v25 + 1;
if ( (v25[0] & 1) != 0 )
v17 = (char *)v26;
std::string::assign(&v22, v17);
if ( (v25[0] & 1) != 0 )
operator delete(v26);
}
v9 = (char *)&v22 + 1;
if ( (v22 & 1) != 0 )
v9 = (char *)v24;
v10 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 1792) + 928LL))(
*((_QWORD *)this + 1792),
v9);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
cocos2d::CCDirector::getWinSize(&v20, v11);
v12 = *((_QWORD *)this + 1792);
v13 = (unsigned __int8)v22 >> 1;
v14 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 184LL);
if ( (v22 & 1) != 0 )
v13 = v23;
v15 = (float)(*(float *)&v20 * 0.5) - (float)(unsigned __int64)(5 * v13);
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 192LL))(v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v15, *(float *)(v16 + 4));
v14(v12, v21);
if ( (v22 & 1) != 0 )
operator delete(v24);
}
return _stack_chk_guard;
}