// // LevelSearchLayer::toggleTime from 0x10062b320 to 0x10062b495 (373 bytes) // // 1 xrefs: // > LevelSearchLayer::init @ 0x1006299a3 // // 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 __fastcall LevelSearchLayer::toggleTime(LevelSearchLayer *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 unsigned int v3; // ebx bool v4; // r15 cocos2d::CCString *v5; // rax const char *CString; // r14 size_t v7; // rax size_t v8; // r13 char *v9; // r12 size_t v10; // r15 __int64 v11; // rax GameLevelManager *v12; // rax char v13; // [rsp+0h] [rbp-70h] char v14; // [rsp+0h] [rbp-70h] cocos2d::CCDictionary *m_difficultyDict; // [rsp+8h] [rbp-68h] cocos2d::CCObject *v16; // [rsp+10h] [rbp-60h] _QWORD __dst[2]; // [rsp+28h] [rbp-48h] BYREF void *__p; // [rsp+38h] [rbp-38h] bool v19; // [rsp+47h] [rbp-29h] v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v19 = LevelSearchLayer::checkTime(a1, v3); m_difficultyDict = a1->m_difficultyDict; v4 = !v19; v16 = (cocos2d::CCObject *)sub_1007AB580("%i", v13); v5 = (cocos2d::CCString *)sub_1007AB580("T%i", v14); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v8 = v7; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; v9 = (char *)operator new(v10); __p = v9; __dst[0] = v10 + 1; v4 = !v19; __dst[1] = v8; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_8: memmove(v9, CString, v8); v9[v8] = 0; cocos2d::CCDictionary::setObject_1((__int64)m_difficultyDict, v16, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); v11 = sub_1007200C0(a1->m_lengthSprites, v3); if ( v19 ) { memset(__dst, 125, 3); } else { BYTE2(__dst[0]) = -1; LOWORD(__dst[0]) = -1; } (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v11 + 1056LL))(v11, __dst); v12 = GameLevelManager::sharedState(); GameLevelManager::setLenVal(v12, v3, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source