// // cocos2d::CCProfilingBeginTimingBlock from 0x180097b40 to 0x180097c2f (239 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801c0990 // // This function is hookable on this platform (idp: pc, 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 11:22:10 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::CCProfilingBeginTimingBlock(cocos2d *this, const char *a2) { __int64 *v3; // rsi struct cocos2d::CCProfilingTimer *v4; // rbx struct cocos2d::timezone *v5; // r8 void *v6; // rcx void *Block[2]; // [rsp+30h] [rbp-38h] BYREF __m128i si128; // [rsp+40h] [rbp-28h] v3 = (__int64 *)cocos2d::CCProfiler::sharedProfiler(); sub_180005A10(Block, (char *)this); v4 = (struct cocos2d::CCProfilingTimer *)cocos2d::CCDictionary::objectForKey(v3[7], (__int64)Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v6 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v6); } si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500); LOBYTE(Block[0]) = 0; if ( !v4 ) v4 = cocos2d::CCProfiler::createAndAddTimerWithName((cocos2d::CCProfiler *)v3, (const char *)this); ++*((_DWORD *)v4 + 22); cocos2d::gettimeofday((struct cocos2d::CCProfilingTimer *)((char *)v4 + 120), nullptr, v5); }