//
// PlayLayer::updateTimeLabel from 0x30ec1c to 0x30ed2a (270 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayLayer::updateTimeLabel(PlayLayer *a1, int a2, int a3, bool a4)
{
_BOOL4 v4; // r10
cocos2d::CCString *v8; // r0
char *CString; // r0
cocos2d::CCDirector *v10; // r0
cocos2d::CCLabelBMFont *m_percentageLabel; // r6
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
float v13; // s16
int v14; // r0
const unsigned __int8 *v15; // [sp+0h] [bp-18h] BYREF
cocos2d::CCSize v16; // [sp+4h] [bp-14h] BYREF
cocos2d::CCPoint v17; // [sp+Ch] [bp-Ch] BYREF
v4 = a4;
if ( ((int (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_percentageLabel->isVisible)(a1->m_percentageLabel)
&& a1->m_isPlatformer )
{
v15 = (const unsigned __int8 *)&unk_ACDDA8;
if ( v4 )
{
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i.%02d",
(const char *)a2,
a3);
CString = (char *)cocos2d::CCString::getCString(v8);
sub_7753D4((int)&v15, CString);
}
else
{
GameToolbox::intToString((GameToolbox *)&v17, a2);
sub_7753D4((int)&v15, (char *)LODWORD(v17.x));
sub_774008(&v17);
}
a1->m_percentageLabel->setString(a1->m_percentageLabel, v15);
v10 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v16, v10);
m_percentageLabel = a1->m_percentageLabel;
setPosition = m_percentageLabel->setPosition;
v13 = (float)(v16.width * 0.5) - (float)(unsigned int)(5 * *((_DWORD *)v15 - 3));
v14 = (int)m_percentageLabel->getPosition(m_percentageLabel);
cocos2d::CCPoint::CCPoint(&v17, v13, *(float *)(v14 + 4));
setPosition(m_percentageLabel, &v17);
sub_774008(&v15);
}
}