// // cocos2d::CCProfilingResetTimingBlock from 0x1004ec9b0 to 0x1004ecafe (334 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 __fastcall cocos2d::CCProfilingResetTimingBlock(const char *a1) { double v1; // xmm0_8 __int64 v2; // rax _OWORD *v3; // r14 void *v4; // r15 __int64 v5; // r14 size_t v6; // rax size_t v7; // r15 char *v8; // r12 size_t v9; // r13 __int64 v10; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] v2 = qword_1009A21F0; if ( !qword_1009A21F0 ) { v3 = operator new(0x40u); v1 = 0.0; *v3 = 0; v3[1] = 0; v3[2] = 0; v3[3] = 0; cocos2d::CCObject::CCObject((__int64)v3); *(_QWORD *)v3 = off_100957E80; qword_1009A21F0 = (__int64)v3; v4 = operator new(0x48u); cocos2d::CCDictionary::CCDictionary((__int64)v4); *((_QWORD *)v3 + 7) = v4; v2 = qword_1009A21F0; } v5 = *(_QWORD *)(v2 + 56); v6 = strlen(a1); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v1); v7 = v6; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 + 1; __dst[1] = v7; goto LABEL_10; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_10: memcpy(v8, a1, v7); v8[v7] = 0; v10 = cocos2d::CCDictionary::objectForKey_1(v5, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); *(_QWORD *)(v10 + 80) = 0; *(_DWORD *)(v10 + 88) = 0; *(_QWORD *)(v10 + 96) = 0; *(_QWORD *)(v10 + 104) = 100000000; gettimeofday((timeval *)(v10 + 112), nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source