{"type": "func", "start": 6442922560, "end": 6442922673, "name": "cocos2d::CCApplication::logTimeElapsed", "pseudocode": "// \n// cocos2d::CCApplication::logTimeElapsed from 0x180073240 to 0x1800732b1 (113 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4428\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\nvoid __fastcall cocos2d::CCApplication::logTimeElapsed(__int64 a1, __int64 a2)\n{\n  unsigned __int64 v3; // rdx\n  _QWORD *v4; // rcx\n\n  QueryPerformanceCounter(&PerformanceCount);\n  v3 = *(_QWORD *)(a2 + 24);\n  if ( v3 > 0xF )\n  {\n    v4 = *(_QWORD **)a2;\n    if ( v3 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n      v4 = (_QWORD *)*(v4 - 1);\n    }\n    j_j_free_0(v4);\n  }\n  *(_QWORD *)(a2 + 16) = 0;\n  *(_QWORD *)(a2 + 24) = 15;\n  *(_BYTE *)a2 = 0;\n}", "assembly": "; \n; cocos2d::CCApplication::logTimeElapsed from 0x180073240 to 0x1800732b1 (113 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4428\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\npush    rbx                                                            ; +0x0, 0x180073240\nsub     rsp, 30h                                                       ; +0x2, 0x180073242\nlea     rcx, PerformanceCount; lpPerformanceCount                      ; +0x6, 0x180073246\nmov     [rsp+38h+var_18], rdx                                          ; +0xd, 0x18007324d\nmov     rbx, rdx                                                       ; +0x12, 0x180073252\ncall    cs:QueryPerformanceCounter                                     ; +0x15, 0x180073255\nmov     rdx, [rbx+18h]                                                 ; +0x1b, 0x18007325b\ncmp     rdx, 0Fh                                                       ; +0x1f, 0x18007325f\njbe     short loc_180073291                                            ; +0x23, 0x180073263\nmov     rcx, [rbx]                                                     ; +0x25, 0x180073265\ninc     rdx                                                            ; +0x28, 0x180073268\ncmp     rdx, 1000h                                                     ; +0x2b, 0x18007326b\njb      short loc_18007328C                                            ; +0x32, 0x180073272\nmov     r8, [rcx-8]                                                    ; +0x34, 0x180073274\nadd     rdx, 27h ; '''                                                 ; +0x38, 0x180073278\nsub     rcx, r8                                                        ; +0x3c, 0x18007327c\nlea     rax, [rcx-8]                                                   ; +0x3f, 0x18007327f\ncmp     rax, 1Fh                                                       ; +0x43, 0x180073283\nja      short loc_1800732AA                                            ; +0x47, 0x180073287\nmov     rcx, r8; Block                                                 ; +0x49, 0x180073289\ncall    j_j_free_0                                                     ; +0x4c, 0x18007328c\nmov     qword ptr [rbx+10h], 0                                         ; +0x51, 0x180073291\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x59, 0x180073299\nmov     byte ptr [rbx], 0                                              ; +0x61, 0x1800732a1\nadd     rsp, 30h                                                       ; +0x64, 0x1800732a4\npop     rbx                                                            ; +0x68, 0x1800732a8\nretn                                                                   ; +0x69, 0x1800732a9\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x6a, 0x1800732aa\ndb 0CCh                                                                ; +0x70, 0x1800732b0", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b4428"], "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"}