// // GJBaseGameLayer::updatePlatformerTime from 0x1402396c0 to 0x1402398c2 (514 bytes) // // 3 xrefs: // > GJBaseGameLayer::updateSpecialLabels @ 0x140239410 // > PlayLayer::toggleProgressbar @ 0x1403b28e1 // > @ 0x1406ce160 // // 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 // // Hidden C++ exception states: #wind=2 void GJBaseGameLayer::updatePlatformerTime(GJBaseGameLayer *a1) { int v2; // ebx int v3; // esi std::_Vector_val>>>>>>::pointer Myfirst; // rdx __int64 v5; // rax cocos2d::CCString *v6; // rax const char *CString; // rax size_t v8; // r8 __int64 v9; // rax __int64 *v10; // rbx __int64 *i; // rsi __int64 v12; // rdi void **v13; // rdx __int64 v14; // rax void *v15; // rcx int v16; // [rsp+20h] [rbp-78h] BYREF _BYTE v17[32]; // [rsp+28h] [rbp-70h] BYREF void *Block[2]; // [rsp+48h] [rbp-50h] BYREF __int128 v19; // [rsp+58h] [rbp-40h] _QWORD v20[4]; // [rsp+68h] [rbp-30h] BYREF v2 = (int)(float)((float)(int)(a1->m_timePlayed * 1000.0) / 1000.0); v3 = (int)(float)((float)((int)(a1->m_timePlayed * 1000.0) - 1000 * v2) / 10.0); a1->updateTimeLabel(a1, v2, v3, 1); Myfirst = a1->m_labelObjects._Vec._Mypair._Myval2._Myfirst; v5 = *((_QWORD *)Myfirst + 2 * (a1->m_labelObjects._Mask & 0x994F76653E2A3951uLL) + 1); if ( (std::_List_val>>>::_Nodeptr)v5 != a1->m_labelObjects._List._Mypair._Myval2._Myhead ) { if ( *(_DWORD *)(v5 + 16) == -1 ) goto LABEL_7; while ( v5 != *((_QWORD *)Myfirst + 2 * (a1->m_labelObjects._Mask & 0x994F76653E2A3951uLL)) ) { v5 = *(_QWORD *)(v5 + 8); if ( *(_DWORD *)(v5 + 16) == -1 ) goto LABEL_7; } } v5 = 0; LABEL_7: if ( v5 ) { v6 = cocos2d::CCString::createWithFormat("%i.%02d", v2, v3); CString = cocos2d::CCString::getCString(v6); *(_OWORD *)Block = 0; v19 = 0; v8 = -1; do ++v8; while ( CString[v8] ); sub_14003A930(Block, CString, v8); GameToolbox::intToString(v20, v2); v16 = -1; v9 = sub_14024EAF0(&a1->m_labelObjects, v17, &v16); v10 = *(__int64 **)(*(_QWORD *)v9 + 24LL); for ( i = *(__int64 **)(*(_QWORD *)v9 + 32LL); v10 != i; ++v10 ) { v12 = *v10; if ( *(_BYTE *)(*v10 + 773) ) { v13 = (void **)v20; if ( !*(_BYTE *)(v12 + 1912) ) v13 = Block; v14 = sub_14003BDB0((__int64)v17, (__int64)v13); LabelGameObject::updateLabel(v12, v14); } } sub_14003A830((__int64)v20); if ( *((_QWORD *)&v19 + 1) > 0xFu ) { v15 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v19 + 1) + 1LL) >= 0x1000 ) { v15 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v15 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v15); } } }