{"type": "func", "start": 6443072880, "end": 6443073103, "name": "cocos2d::CCProfilingResetTimingBlock", "pseudocode": "// \n// cocos2d::CCProfilingResetTimingBlock from 0x180097d70 to 0x180097e4f (223 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c09a8\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=1\nvoid __fastcall cocos2d::CCProfilingResetTimingBlock(cocos2d *this, const char *a2)\n{\n  struct cocos2d::CCProfiler *v3; // rdi\n  __int64 v4; // rbx\n  struct cocos2d::timezone *v5; // r8\n  void *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __m128i si128; // [rsp+40h] [rbp-28h]\n\n  v3 = cocos2d::CCProfiler::sharedProfiler();\n  sub_180005A10(Block, (char *)this);\n  v4 = cocos2d::CCDictionary::objectForKey(*((_QWORD *)v3 + 7), (__int64)Block);\n  if ( si128.m128i_i64[1] > 0xFuLL )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v6);\n  }\n  si128 = _mm_load_si128((const __m128i *)&xmmword_1800EC500);\n  LOBYTE(Block[0]) = 0;\n  *(_QWORD *)(v4 + 88) = 0;\n  *(_DWORD *)(v4 + 96) = 0;\n  *(_QWORD *)(v4 + 104) = 0;\n  *(_QWORD *)(v4 + 112) = 100000000;\n  cocos2d::gettimeofday((cocos2d *)(v4 + 120), nullptr, v5);\n}", "assembly": "; \n; cocos2d::CCProfilingResetTimingBlock from 0x180097d70 to 0x180097e4f (223 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c09a8\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, 0x180097d70\npush    rdi                                                            ; +0x5, 0x180097d75\nsub     rsp, 60h                                                       ; +0x6, 0x180097d76\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x180097d7a\nxor     rax, rsp                                                       ; +0x11, 0x180097d81\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x180097d84\nmov     rbx, rcx                                                       ; +0x19, 0x180097d89\ncall    ?sharedProfiler@CCProfiler@cocos2d@@SAPEAV12@XZ; cocos2d::CCProfiler::sharedProfiler(void) ; +0x1c, 0x180097d8c\nmov     rdi, rax                                                       ; +0x21, 0x180097d91\nmov     rdx, rbx; Str                                                  ; +0x24, 0x180097d94\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x27, 0x180097d97\ncall    sub_180005A10                                                  ; +0x2c, 0x180097d9c\nnop                                                                    ; +0x31, 0x180097da1\nlea     rdx, [rsp+68h+Block]                                           ; +0x32, 0x180097da2\nmov     rcx, [rdi+38h]                                                 ; +0x37, 0x180097da7\ncall    ?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x3b, 0x180097dab\nmov     rbx, rax                                                       ; +0x40, 0x180097db0\nmov     rdx, [rsp+68h+var_20]                                          ; +0x43, 0x180097db3\ncmp     rdx, 0Fh                                                       ; +0x48, 0x180097db8\njbe     short loc_180097E04                                            ; +0x4c, 0x180097dbc\ninc     rdx                                                            ; +0x4e, 0x180097dbe\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x51, 0x180097dc1\nmov     rax, rcx                                                       ; +0x56, 0x180097dc6\ncmp     rdx, 1000h                                                     ; +0x59, 0x180097dc9\njb      short loc_180097DFF                                            ; +0x60, 0x180097dd0\nadd     rdx, 27h ; '''                                                 ; +0x62, 0x180097dd2\nmov     rcx, [rcx-8]                                                   ; +0x66, 0x180097dd6\nsub     rax, rcx                                                       ; +0x6a, 0x180097dda\nsub     rax, 8                                                         ; +0x6d, 0x180097ddd\ncmp     rax, 1Fh                                                       ; +0x71, 0x180097de1\njbe     short loc_180097DFF                                            ; +0x75, 0x180097de5\nxor     eax, eax                                                       ; +0x77, 0x180097de7\nmov     [rsp+68h+Reserved], rax; Reserved                              ; +0x79, 0x180097de9\nxor     r9d, r9d; LineNo                                               ; +0x7e, 0x180097dee\nxor     r8d, r8d; FileName                                             ; +0x81, 0x180097df1\nxor     edx, edx; FunctionName                                         ; +0x84, 0x180097df4\nxor     ecx, ecx; Expression                                           ; +0x86, 0x180097df6\ncall    cs:_invoke_watson                                              ; +0x88, 0x180097df8\ndb 0CCh                                                                ; +0x8e, 0x180097dfe\ncall    j_j_free_0                                                     ; +0x8f, 0x180097dff\nmovdqa  xmm0, cs:xmmword_1800EC500                                     ; +0x94, 0x180097e04\nmovdqu  xmmword ptr [rsp+40h], xmm0                                    ; +0x9c, 0x180097e0c\nmov     byte ptr [rsp+68h+Block], 0                                    ; +0xa2, 0x180097e12\nxor     eax, eax                                                       ; +0xa7, 0x180097e17\nmov     [rbx+58h], rax                                                 ; +0xa9, 0x180097e19\nmov     [rbx+60h], eax                                                 ; +0xad, 0x180097e1d\nmov     [rbx+68h], rax                                                 ; +0xb0, 0x180097e20\nmov     qword ptr [rbx+70h], 5F5E100h                                  ; +0xb4, 0x180097e24\nlea     rcx, [rbx+78h]; this                                           ; +0xbc, 0x180097e2c\nxor     edx, edx; struct timeval *                                     ; +0xc0, 0x180097e30\ncall    ?gettimeofday@cocos2d@@YAHPEAUtimeval@@PEAUtimezone@1@@Z; cocos2d::gettimeofday(timeval *,cocos2d::timezone *) ; +0xc2, 0x180097e32\nmov     rcx, [rsp+68h+var_18]                                          ; +0xc7, 0x180097e37\nxor     rcx, rsp; StackCookie                                          ; +0xcc, 0x180097e3c\ncall    __security_check_cookie                                        ; +0xcf, 0x180097e3f\nmov     rbx, [rsp+68h+arg_8]                                           ; +0xd4, 0x180097e44\nadd     rsp, 60h                                                       ; +0xd9, 0x180097e49\npop     rdi                                                            ; +0xdd, 0x180097e4d\nretn                                                                   ; +0xde, 0x180097e4e", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c09a8"], "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"}