// // cocos2d::CCProfiler::sharedProfiler from 0x1800948c0 to 0x180094952 (146 bytes) // // 5 xrefs: // > cocos2d::CCProfilingBeginTimingBlock @ 0x180094451 // > cocos2d::CCProfilingEndTimingBlock @ 0x180094538 // > cocos2d::CCProfilingResetTimingBlock @ 0x18009464c // > @ 0x1801438a8 // > @ 0x1801b672c // // 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 struct cocos2d::CCProfiler *__fastcall cocos2d::CCProfiler::sharedProfiler() { struct cocos2d::CCProfiler *result; // rax cocos2d::CCObject *v1; // rax _QWORD *v2; // rbx cocos2d::CCDictionary *v3; // rdi cocos2d::CCDictionary *v4; // rax result = (struct cocos2d::CCProfiler *)qword_1801A8A18; if ( !qword_1801A8A18 ) { v1 = (cocos2d::CCObject *)operator new(0x40u); v2 = &v1->__vftable; v3 = nullptr; if ( v1 ) { *(_OWORD *)&v1->__vftable = 0; *(_OWORD *)&v1->m_nTag = 0; *(_OWORD *)&v1->m_uIndexInArray = 0; *(_OWORD *)&v1->m_uOrderOfArrival = 0; cocos2d::CCObject::CCObject(v1); *v2 = &cocos2d::CCProfiler::`vftable'; } else { v2 = nullptr; } qword_1801A8A18 = (__int64)v2; v4 = (cocos2d::CCDictionary *)operator new(0x48u); if ( v4 ) v3 = cocos2d::CCDictionary::CCDictionary(v4); v2[7] = v3; return (struct cocos2d::CCProfiler *)qword_1801A8A18; } return result; }