{"type": "func", "start": 6443073568, "end": 6443073716, "name": "cocos2d::CCProfiler::sharedProfiler", "pseudocode": "// \n// cocos2d::CCProfiler::sharedProfiler from 0x180098020 to 0x1800980b4 (148 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCProfilingBeginTimingBlock @ 0x180097b61\n// > cocos2d::CCProfilingEndTimingBlock @ 0x180097c58\n// > cocos2d::CCProfilingResetTimingBlock @ 0x180097d8c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c09cc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:10 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCProfiler *__fastcall cocos2d::CCProfiler::sharedProfiler()\n{\n  struct cocos2d::CCProfiler *result; // rax\n  _OWORD *v1; // rax\n  _QWORD *v2; // rbx\n  cocos2d::CCDictionary *v3; // rdi\n  cocos2d::CCDictionary *v4; // rax\n\n  result = (struct cocos2d::CCProfiler *)qword_1801B2A78;\n  if ( !qword_1801B2A78 )\n  {\n    v1 = (_OWORD *)sub_1800E4AC0(0x40u);\n    v2 = v1;\n    v3 = nullptr;\n    if ( v1 )\n    {\n      *v1 = 0;\n      v1[1] = 0;\n      v1[2] = 0;\n      v1[3] = 0;\n      cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);\n      *v2 = &cocos2d::CCProfiler::`vftable';\n    }\n    else\n    {\n      v2 = nullptr;\n    }\n    qword_1801B2A78 = (__int64)v2;\n    v4 = (cocos2d::CCDictionary *)sub_1800E4AC0(0x48u);\n    if ( v4 )\n      v3 = cocos2d::CCDictionary::CCDictionary(v4);\n    v2[7] = v3;\n    return (struct cocos2d::CCProfiler *)qword_1801B2A78;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCProfiler::sharedProfiler from 0x180098020 to 0x1800980b4 (148 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCProfilingBeginTimingBlock @ 0x180097b61\n; > cocos2d::CCProfilingEndTimingBlock @ 0x180097c58\n; > cocos2d::CCProfilingResetTimingBlock @ 0x180097d8c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c09cc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:10 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180098020\npush    rdi                                                            ; +0x5, 0x180098025\nsub     rsp, 20h                                                       ; +0x6, 0x180098026\nmov     rax, cs:qword_1801B2A78                                        ; +0xa, 0x18009802a\ntest    rax, rax                                                       ; +0x11, 0x180098031\njnz     short loc_1800980A9                                            ; +0x14, 0x180098034\nmov     ecx, 40h ; '@'; Size                                           ; +0x16, 0x180098036\ncall    sub_1800E4AC0                                                  ; +0x1b, 0x18009803b\nmov     rbx, rax                                                       ; +0x20, 0x180098040\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x180098043\nxor     edi, edi                                                       ; +0x28, 0x180098048\ntest    rax, rax                                                       ; +0x2a, 0x18009804a\njz      short loc_180098075                                            ; +0x2d, 0x18009804d\nxorps   xmm0, xmm0                                                     ; +0x2f, 0x18009804f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x32, 0x180098052\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x35, 0x180098055\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x39, 0x180098059\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x3d, 0x18009805d\nmov     rcx, rax; this                                                 ; +0x41, 0x180098061\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x44, 0x180098064\nlea     rax, ??_7CCProfiler@cocos2d@@6B@; const cocos2d::CCProfiler::`vftable' ; +0x49, 0x180098069\nmov     [rbx], rax                                                     ; +0x50, 0x180098070\njmp     short loc_180098078                                            ; +0x53, 0x180098073\nmov     rbx, rdi                                                       ; +0x55, 0x180098075\nmov     cs:qword_1801B2A78, rbx                                        ; +0x58, 0x180098078\nmov     ecx, 48h ; 'H'; Size                                           ; +0x5f, 0x18009807f\ncall    sub_1800E4AC0                                                  ; +0x64, 0x180098084\nmov     [rsp+28h+arg_0], rax                                           ; +0x69, 0x180098089\ntest    rax, rax                                                       ; +0x6e, 0x18009808e\njz      short loc_18009809E                                            ; +0x71, 0x180098091\nmov     rcx, rax; this                                                 ; +0x73, 0x180098093\ncall    ??0CCDictionary@cocos2d@@QEAA@XZ; cocos2d::CCDictionary::CCDictionary(void) ; +0x76, 0x180098096\nmov     rdi, rax                                                       ; +0x7b, 0x18009809b\nmov     [rbx+38h], rdi                                                 ; +0x7e, 0x18009809e\nmov     rax, cs:qword_1801B2A78                                        ; +0x82, 0x1800980a2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x89, 0x1800980a9\nadd     rsp, 20h                                                       ; +0x8e, 0x1800980ae\npop     rdi                                                            ; +0x92, 0x1800980b2\nretn                                                                   ; +0x93, 0x1800980b3", "xrefs": ["cocos2d::CCProfilingBeginTimingBlock @ 0x180097b61", "cocos2d::CCProfilingEndTimingBlock @ 0x180097c58", "cocos2d::CCProfilingResetTimingBlock @ 0x180097d8c", "<???> @ 0x18014cf68", "<???> @ 0x1801c09cc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}