// // PlayLayer::updateTimeLabel from 0x406078 to 0x40619a (290 bytes) // // 0 xrefs: // // 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:47:27 +0000 // int __fastcall PlayLayer::updateTimeLabel(PlayLayer *this, const char *a2, int a3, int a4) { char *v4; // r6 int result; // r0 cocos2d::CCString *v10; // r0 char *CString; // r0 char *v12; // r1 cocos2d::CCDirector *v13; // r0 int v14; // r6 int v15; // r3 void (__fastcall *v16)(int, _BYTE *); // r8 float v17; // s16 int v18; // s15 int v19; // r0 float v20[2]; // [sp+4h] [bp-30h] BYREF _BYTE v21[8]; // [sp+Ch] [bp-28h] BYREF int v22; // [sp+14h] [bp-20h] BYREF int v23; // [sp+18h] [bp-1Ch] int v24; // [sp+1Ch] [bp-18h] char v25; // [sp+20h] [bp-14h] BYREF char v26; // [sp+21h] [bp-13h] BYREF char *v27; // [sp+28h] [bp-Ch] v4 = (char *)this + 11904; result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 2976) + 176))(*((_DWORD *)this + 2976)); if ( result && *((_BYTE *)this + 10614) ) { v22 = 0; v23 = 0; v24 = 0; if ( a4 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i.%02d", a2, a3); CString = (char *)cocos2d::CCString::getCString(v10); std::string::assign(&v22, CString); } else { GameToolbox::intToString((GameToolbox *)&v25, (int)a2); if ( (v25 & 1) != 0 ) v12 = v27; else v12 = &v26; std::string::assign(&v22, v12); std::string::~string((int)&v25); } v13 = (cocos2d::CCDirector *)(*(int (**)(void))(**(_DWORD **)v4 + 464))(); cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20); v14 = *(_DWORD *)v4; if ( (v22 & 1) != 0 ) v15 = v23; else v15 = (int)(unsigned __int8)v22 >> 1; v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92); v17 = v20[0] * 0.5; v18 = 5 * v15; v19 = (*(int (__fastcall **)(int, int))(*(_DWORD *)v14 + 96))(v14, (unsigned __int8)v22 << 31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v17 - (float)(unsigned int)v18, *(float *)(v19 + 4)); v16(v14, v21); return std::string::~string((int)&v22); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source