{"type": "func", "start": 6443059392, "end": 6443059538, "name": "cocos2d::CCProfiler::sharedProfiler", "pseudocode": "// \n// cocos2d::CCProfiler::sharedProfiler from 0x1800948c0 to 0x180094952 (146 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCProfilingBeginTimingBlock @ 0x180094451\n// > cocos2d::CCProfilingEndTimingBlock @ 0x180094538\n// > cocos2d::CCProfilingResetTimingBlock @ 0x18009464c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b672c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCProfiler *__fastcall cocos2d::CCProfiler::sharedProfiler()\n{\n  struct cocos2d::CCProfiler *result; // rax\n  cocos2d::CCObject *v1; // rax\n  _QWORD *v2; // rbx\n  cocos2d::CCDictionary *v3; // rdi\n  cocos2d::CCDictionary *v4; // rax\n\n  result = (struct cocos2d::CCProfiler *)qword_1801A8A18;\n  if ( !qword_1801A8A18 )\n  {\n    v1 = (cocos2d::CCObject *)operator new(0x40u);\n    v2 = &v1->__vftable;\n    v3 = nullptr;\n    if ( v1 )\n    {\n      *(_OWORD *)&v1->__vftable = 0;\n      *(_OWORD *)&v1->m_nTag = 0;\n      *(_OWORD *)&v1->m_uIndexInArray = 0;\n      *(_OWORD *)&v1->m_uOrderOfArrival = 0;\n      cocos2d::CCObject::CCObject(v1);\n      *v2 = &cocos2d::CCProfiler::`vftable';\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801A8A18 = (__int64)v2;\n    v4 = (cocos2d::CCDictionary *)operator new(0x48u);\n    if ( v4 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v4);\n    v2[7] = v3;\n    return (struct cocos2d::CCProfiler *)qword_1801A8A18;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCProfiler::sharedProfiler from 0x1800948c0 to 0x180094952 (146 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCProfilingBeginTimingBlock @ 0x180094451\n; > cocos2d::CCProfilingEndTimingBlock @ 0x180094538\n; > cocos2d::CCProfilingResetTimingBlock @ 0x18009464c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b672c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800948c0\npush    rdi                                                            ; +0x5, 0x1800948c5\nsub     rsp, 20h                                                       ; +0x6, 0x1800948c6\nmov     rax, cs:qword_1801A8A18                                        ; +0xa, 0x1800948ca\ntest    rax, rax                                                       ; +0x11, 0x1800948d1\njnz     short loc_180094947                                            ; +0x14, 0x1800948d4\nlea     ecx, [rax+40h]; Size                                           ; +0x16, 0x1800948d6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1800948d9\nmov     rbx, rax                                                       ; +0x1e, 0x1800948de\nmov     [rsp+28h+arg_0], rax                                           ; +0x21, 0x1800948e1\nxor     edi, edi                                                       ; +0x26, 0x1800948e6\ntest    rax, rax                                                       ; +0x28, 0x1800948e8\njz      short loc_180094913                                            ; +0x2b, 0x1800948eb\nxorps   xmm0, xmm0                                                     ; +0x2d, 0x1800948ed\nmovups  xmmword ptr [rax], xmm0                                        ; +0x30, 0x1800948f0\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x33, 0x1800948f3\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x37, 0x1800948f7\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x3b, 0x1800948fb\nmov     rcx, rax; this                                                 ; +0x3f, 0x1800948ff\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x42, 0x180094902\nlea     rax, ??_7CCProfiler@cocos2d@@6B@; const cocos2d::CCProfiler::`vftable' ; +0x47, 0x180094907\nmov     [rbx], rax                                                     ; +0x4e, 0x18009490e\njmp     short loc_180094916                                            ; +0x51, 0x180094911\nmov     rbx, rdi                                                       ; +0x53, 0x180094913\nmov     cs:qword_1801A8A18, rbx                                        ; +0x56, 0x180094916\nmov     ecx, 48h ; 'H'; Size                                           ; +0x5d, 0x18009491d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x62, 0x180094922\nmov     [rsp+28h+arg_0], rax                                           ; +0x67, 0x180094927\ntest    rax, rax                                                       ; +0x6c, 0x18009492c\njz      short loc_18009493C                                            ; +0x6f, 0x18009492f\nmov     rcx, rax; this                                                 ; +0x71, 0x180094931\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x74, 0x180094934\nmov     rdi, rax                                                       ; +0x79, 0x180094939\nmov     [rbx+38h], rdi                                                 ; +0x7c, 0x18009493c\nmov     rax, cs:qword_1801A8A18                                        ; +0x80, 0x180094940\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x87, 0x180094947\nadd     rsp, 20h                                                       ; +0x8c, 0x18009494c\npop     rdi                                                            ; +0x90, 0x180094950\nretn                                                                   ; +0x91, 0x180094951", "xrefs": ["cocos2d::CCProfilingBeginTimingBlock @ 0x180094451", "cocos2d::CCProfilingEndTimingBlock @ 0x180094538", "cocos2d::CCProfilingResetTimingBlock @ 0x18009464c", "<???> @ 0x1801438a8", "<???> @ 0x1801b672c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}