// // GJBaseGameLayer::updatePlatformerTime from 0x9dce90 to 0x9dd0cc (572 bytes) // // 3 xrefs: // > PlayLayer::toggleProgressbar @ 0x700480 // > GJBaseGameLayer::updateSpecialLabels @ 0x9dd108 // > @ 0x975e8 // // 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:58:51 +0000 // __int64 __fastcall GJBaseGameLayer::updatePlatformerTime(GJBaseGameLayer *this) { _QWORD *v2; // x21 int PlayTimerMilli; // w19 GJBaseGameLayer *v4; // x0 void (__fastcall *v5)(GJBaseGameLayer *, _QWORD, _QWORD, __int64); // x23 unsigned int v6; // w22 unsigned int v7; // w19 cocos2d::CCString *v8; // x0 const char *CString; // x0 size_t v10; // x0 __int64 **v11; // x0 __int64 *v12; // x22 __int64 *i; // x19 __int64 v14; // x0 unsigned __int64 v15; // x1 __int64 v16; // x21 int v17; // w0 unsigned __int64 *v18; // x2 char *v20; // [xsp+58h] [xbp+58h] int v21; // [xsp+6Ch] [xbp+6Ch] BYREF __int64 v22[2]; // [xsp+70h] [xbp+70h] BYREF void *v23; // [xsp+80h] [xbp+80h] unsigned __int64 v24[3]; // [xsp+88h] [xbp+88h] BYREF __int64 v25; // [xsp+A0h] [xbp+A0h] BYREF unsigned __int64 v26; // [xsp+A8h] [xbp+A8h] void *v27; // [xsp+B0h] [xbp+B0h] v2 = (_QWORD *)((char *)this + 4000); PlayTimerMilli = GJBaseGameLayer::getPlayTimerMilli(this); v4 = this; v5 = *(void (__fastcall **)(GJBaseGameLayer *, _QWORD, _QWORD, __int64))(*(_QWORD *)this + 1552LL); v6 = (int)(float)((float)PlayTimerMilli / 1000.0); v7 = (int)(float)((float)(int)(PlayTimerMilli - 1000 * v6) / 10.0); v5(v4, v6, v7, 1); v21 = -1; if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v2, &v21) ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i.%02d", (const char *)v6, v7); CString = (const char *)cocos2d::CCString::getCString(v8); v22[0] = 0; v20 = (char *)CString; v22[1] = 0; v23 = nullptr; v10 = strlen(CString); std::string::__init(v22, v20, v10); GameToolbox::intToString(v24, (GameToolbox *)v6); v21 = -1; v11 = (__int64 **)std::unordered_map>::operator[]((unsigned __int64)v2, &v21); v12 = v11[1]; for ( i = *v11; v12 != i; ++i ) { while ( 1 ) { v16 = *i; if ( *(_BYTE *)(*i + 773) ) { v17 = *(unsigned __int8 *)(v16 + 1888); v25 = 0; v26 = 0; v18 = v17 ? v24 : (unsigned __int64 *)v22; v27 = nullptr; if ( (*(_BYTE *)v18 & 1) != 0 ) { std::string::__init(&v25, (void *)v18[2], v18[1]); } else { v14 = *v18; v15 = v18[1]; v27 = (void *)v18[2]; v25 = v14; v26 = v15; } LabelGameObject::updateLabel(v16, (char *)&v25); if ( (v25 & 1) != 0 ) break; } if ( v12 == ++i ) goto LABEL_14; } operator delete(v27); } LABEL_14: if ( (v24[0] & 1) != 0 ) operator delete((void *)v24[2]); if ( (v22[0] & 1) != 0 ) operator delete(v23); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source