{"type": "func", "start": 6443263664, "end": 6443264064, "name": "cocos2d::CCTimer::update", "pseudocode": "// \n// cocos2d::CCTimer::update from 0x1800c66b0 to 0x1800c6840 (400 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x18010dd28\n// > <???> @ 0x18014b36c\n// > <???> @ 0x18014b380\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c3924\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:27 +0000\n// \n\nvoid __fastcall cocos2d::CCTimer::update(cocos2d::CCTimer *this, float a2)\n{\n  float v4; // xmm1_4\n  _BYTE *v5; // rax\n  _BYTE *v6; // rbx\n  float v7; // xmm1_4\n  bool v8; // cf\n  void (*v9)(void); // rax\n  struct cocos2d::CCScriptEngineManager *v10; // rax\n  __int64 v11; // r8\n  bool v12; // zf\n  float v13; // xmm1_4\n  char *v14; // rsi\n  void (*v15)(void); // rax\n  struct cocos2d::CCScriptEngineManager *v16; // rax\n  __int64 v17; // r8\n  float v18; // xmm0_4\n  void (*v19)(void); // rax\n  struct cocos2d::CCScriptEngineManager *v20; // rax\n  __int64 v21; // r8\n  struct cocos2d::CCDirector *v22; // rax\n  __int64 v23; // rbx\n  __int64 v24; // rdi\n  cocos2d::CCScheduler *v25; // rax\n\n  v4 = *((float *)this + 16);\n  if ( v4 == -1.0 )\n  {\n    *((_DWORD *)this + 16) = 0;\n    *((_DWORD *)this + 18) = 0;\n    return;\n  }\n  v5 = (char *)this + 68;\n  v6 = (char *)this + 69;\n  if ( *((_BYTE *)this + 68) && !*v6 )\n  {\n    v7 = v4 + a2;\n    v8 = v7 < *((float *)this + 21);\n    *((float *)this + 16) = v7;\n    if ( !v8 )\n    {\n      if ( *((_QWORD *)this + 7) )\n      {\n        v9 = *((void (**)(void))this + 11);\n        if ( v9 )\n          v9();\n      }\n      if ( *((_DWORD *)this + 24) )\n      {\n        v10 = cocos2d::CCScriptEngineManager::sharedManager();\n        (*(void (__fastcall **)(_QWORD, _QWORD, __int64, _QWORD))(**(_QWORD **)v10 + 96LL))(\n          *(_QWORD *)v10,\n          *((unsigned int *)this + 24),\n          v11,\n          0);\n      }\n      *((_DWORD *)this + 16) = 0;\n    }\n    return;\n  }\n  v12 = *v6 == 0;\n  v13 = v4 + a2;\n  *((float *)this + 16) = v13;\n  if ( v12 )\n  {\n    if ( v13 >= *((float *)this + 21) )\n    {\n      if ( *((_QWORD *)this + 7) )\n      {\n        v19 = *((void (**)(void))this + 11);\n        if ( v19 )\n          v19();\n      }\n      if ( *((_DWORD *)this + 24) )\n      {\n        v20 = cocos2d::CCScriptEngineManager::sharedManager();\n        (*(void (__fastcall **)(_QWORD, _QWORD, __int64, _QWORD))(**(_QWORD **)v20 + 96LL))(\n          *(_QWORD *)v20,\n          *((unsigned int *)this + 24),\n          v21,\n          0);\n      }\n      *((_DWORD *)this + 16) = 0;\n      goto LABEL_27;\n    }\n  }\n  else if ( v13 >= *((float *)this + 20) )\n  {\n    v14 = (char *)this + 69;\n    if ( *((_QWORD *)this + 7) )\n    {\n      v15 = *((void (**)(void))this + 11);\n      if ( v15 )\n      {\n        v15();\n        v14 = (char *)this + 69;\n      }\n    }\n    if ( *((_DWORD *)this + 24) )\n    {\n      v16 = cocos2d::CCScriptEngineManager::sharedManager();\n      (*(void (__fastcall **)(_QWORD, _QWORD, __int64, _QWORD))(**(_QWORD **)v16 + 96LL))(\n        *(_QWORD *)v16,\n        *((unsigned int *)this + 24),\n        v17,\n        0);\n      v6 = v14;\n    }\n    v18 = *((float *)this + 16) - *((float *)this + 20);\n    *v6 = 0;\n    *((float *)this + 16) = v18;\nLABEL_27:\n    ++*((_DWORD *)this + 18);\n    v5 = (char *)this + 68;\n  }\n  if ( !*v5 && *((_DWORD *)this + 18) > *((_DWORD *)this + 19) )\n  {\n    v22 = cocos2d::CCDirector::sharedDirector();\n    v23 = *((_QWORD *)this + 7);\n    v24 = *((_QWORD *)this + 11);\n    v25 = (cocos2d::CCScheduler *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v22 + 112LL))(v22);\n    cocos2d::CCScheduler::unscheduleSelector(v25, v24, v23);\n  }\n}", "assembly": "; \n; cocos2d::CCTimer::update from 0x1800c66b0 to 0x1800c6840 (400 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x18010dd28\n; > <???> @ 0x18014b36c\n; > <???> @ 0x18014b380\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c3924\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:27 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800c66b0\nsub     rsp, 20h                                                       ; +0x2, 0x1800c66b2\nmovaps  xmm0, xmm1                                                     ; +0x6, 0x1800c66b6\nmov     rdi, rcx                                                       ; +0x9, 0x1800c66b9\nmovss   xmm1, dword ptr [rcx+40h]                                      ; +0xc, 0x1800c66bc\nucomiss xmm1, cs:dword_1800ED380                                       ; +0x11, 0x1800c66c1\njp      short loc_1800C66DA                                            ; +0x18, 0x1800c66c8\njnz     short loc_1800C66DA                                            ; +0x1a, 0x1800c66ca\nxor     eax, eax                                                       ; +0x1c, 0x1800c66cc\nmov     [rcx+40h], eax                                                 ; +0x1e, 0x1800c66ce\nmov     [rcx+48h], eax                                                 ; +0x21, 0x1800c66d1\nadd     rsp, 20h                                                       ; +0x24, 0x1800c66d4\npop     rdi                                                            ; +0x28, 0x1800c66d8\nretn                                                                   ; +0x29, 0x1800c66d9\ncmp     byte ptr [rcx+44h], 0                                          ; +0x2a, 0x1800c66da\nlea     rax, [rcx+44h]                                                 ; +0x2e, 0x1800c66de\nmov     [rsp+28h+arg_0], rbx                                           ; +0x32, 0x1800c66e2\nlea     rbx, [rcx+45h]                                                 ; +0x37, 0x1800c66e7\njz      short loc_1800C6748                                            ; +0x3b, 0x1800c66eb\ncmp     byte ptr [rbx], 0                                              ; +0x3d, 0x1800c66ed\njnz     short loc_1800C6748                                            ; +0x40, 0x1800c66f0\naddss   xmm1, xmm0                                                     ; +0x42, 0x1800c66f2\ncomiss  xmm1, dword ptr [rcx+54h]                                      ; +0x46, 0x1800c66f6\nmovss   dword ptr [rcx+40h], xmm1                                      ; +0x4a, 0x1800c66fa\njb      loc_1800C6835                                                  ; +0x4f, 0x1800c66ff\nmov     rcx, [rcx+38h]                                                 ; +0x55, 0x1800c6705\ntest    rcx, rcx                                                       ; +0x59, 0x1800c6709\njz      short loc_1800C6719                                            ; +0x5c, 0x1800c670c\nmov     rax, [rdi+58h]                                                 ; +0x5e, 0x1800c670e\ntest    rax, rax                                                       ; +0x62, 0x1800c6712\njz      short loc_1800C6719                                            ; +0x65, 0x1800c6715\ncall    rax                                                            ; +0x67, 0x1800c6717\ncmp     dword ptr [rdi+60h], 0                                         ; +0x69, 0x1800c6719\njz      short loc_1800C6738                                            ; +0x6d, 0x1800c671d\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x6f, 0x1800c671f\nmovss   xmm2, dword ptr [rdi+40h]                                      ; +0x74, 0x1800c6724\nxor     r9d, r9d                                                       ; +0x79, 0x1800c6729\nmov     edx, [rdi+60h]                                                 ; +0x7c, 0x1800c672c\nmov     rcx, [rax]                                                     ; +0x7f, 0x1800c672f\nmov     rax, [rcx]                                                     ; +0x82, 0x1800c6732\ncall    qword ptr [rax+60h]                                            ; +0x85, 0x1800c6735\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x88, 0x1800c6738\nxor     eax, eax                                                       ; +0x8d, 0x1800c673d\nmov     [rdi+40h], eax                                                 ; +0x8f, 0x1800c673f\nadd     rsp, 20h                                                       ; +0x92, 0x1800c6742\npop     rdi                                                            ; +0x96, 0x1800c6746\nretn                                                                   ; +0x97, 0x1800c6747\ncmp     byte ptr [rbx], 0                                              ; +0x98, 0x1800c6748\naddss   xmm1, xmm0                                                     ; +0x9b, 0x1800c674b\nmovss   dword ptr [rcx+40h], xmm1                                      ; +0x9f, 0x1800c674f\njz      short loc_1800C67BB                                            ; +0xa4, 0x1800c6754\ncomiss  xmm1, dword ptr [rcx+50h]                                      ; +0xa6, 0x1800c6756\njb      loc_1800C6800                                                  ; +0xaa, 0x1800c675a\nmov     rcx, [rcx+38h]                                                 ; +0xb0, 0x1800c6760\nmov     [rsp+28h+arg_8], rsi                                           ; +0xb4, 0x1800c6764\nmov     rsi, rbx                                                       ; +0xb9, 0x1800c6769\ntest    rcx, rcx                                                       ; +0xbc, 0x1800c676c\njz      short loc_1800C6780                                            ; +0xbf, 0x1800c676f\nmov     rax, [rdi+58h]                                                 ; +0xc1, 0x1800c6771\ntest    rax, rax                                                       ; +0xc5, 0x1800c6775\njz      short loc_1800C6780                                            ; +0xc8, 0x1800c6778\ncall    rax                                                            ; +0xca, 0x1800c677a\nlea     rsi, [rdi+45h]                                                 ; +0xcc, 0x1800c677c\ncmp     dword ptr [rdi+60h], 0                                         ; +0xd0, 0x1800c6780\njz      short loc_1800C67A2                                            ; +0xd4, 0x1800c6784\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0xd6, 0x1800c6786\nmovss   xmm2, dword ptr [rdi+40h]                                      ; +0xdb, 0x1800c678b\nxor     r9d, r9d                                                       ; +0xe0, 0x1800c6790\nmov     edx, [rdi+60h]                                                 ; +0xe3, 0x1800c6793\nmov     rcx, [rax]                                                     ; +0xe6, 0x1800c6796\nmov     rax, [rcx]                                                     ; +0xe9, 0x1800c6799\ncall    qword ptr [rax+60h]                                            ; +0xec, 0x1800c679c\nmov     rbx, rsi                                                       ; +0xef, 0x1800c679f\nmovss   xmm0, dword ptr [rdi+40h]                                      ; +0xf2, 0x1800c67a2\nsubss   xmm0, dword ptr [rdi+50h]                                      ; +0xf7, 0x1800c67a7\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xfc, 0x1800c67ac\nmov     byte ptr [rbx], 0                                              ; +0x101, 0x1800c67b1\nmovss   dword ptr [rdi+40h], xmm0                                      ; +0x104, 0x1800c67b4\njmp     short loc_1800C67F9                                            ; +0x109, 0x1800c67b9\ncomiss  xmm1, dword ptr [rcx+54h]                                      ; +0x10b, 0x1800c67bb\njb      short loc_1800C6800                                            ; +0x10f, 0x1800c67bf\nmov     rcx, [rcx+38h]                                                 ; +0x111, 0x1800c67c1\ntest    rcx, rcx                                                       ; +0x115, 0x1800c67c5\njz      short loc_1800C67D5                                            ; +0x118, 0x1800c67c8\nmov     rax, [rdi+58h]                                                 ; +0x11a, 0x1800c67ca\ntest    rax, rax                                                       ; +0x11e, 0x1800c67ce\njz      short loc_1800C67D5                                            ; +0x121, 0x1800c67d1\ncall    rax                                                            ; +0x123, 0x1800c67d3\ncmp     dword ptr [rdi+60h], 0                                         ; +0x125, 0x1800c67d5\njz      short loc_1800C67F4                                            ; +0x129, 0x1800c67d9\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x12b, 0x1800c67db\nmovss   xmm2, dword ptr [rdi+40h]                                      ; +0x130, 0x1800c67e0\nxor     r9d, r9d                                                       ; +0x135, 0x1800c67e5\nmov     edx, [rdi+60h]                                                 ; +0x138, 0x1800c67e8\nmov     rcx, [rax]                                                     ; +0x13b, 0x1800c67eb\nmov     rax, [rcx]                                                     ; +0x13e, 0x1800c67ee\ncall    qword ptr [rax+60h]                                            ; +0x141, 0x1800c67f1\nxor     eax, eax                                                       ; +0x144, 0x1800c67f4\nmov     [rdi+40h], eax                                                 ; +0x146, 0x1800c67f6\ninc     dword ptr [rdi+48h]                                            ; +0x149, 0x1800c67f9\nlea     rax, [rdi+44h]                                                 ; +0x14c, 0x1800c67fc\ncmp     byte ptr [rax], 0                                              ; +0x150, 0x1800c6800\njnz     short loc_1800C6835                                            ; +0x153, 0x1800c6803\nmov     eax, [rdi+4Ch]                                                 ; +0x155, 0x1800c6805\ncmp     [rdi+48h], eax                                                 ; +0x158, 0x1800c6808\njbe     short loc_1800C6835                                            ; +0x15b, 0x1800c680b\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x15d, 0x1800c680d\nmov     rbx, [rdi+38h]                                                 ; +0x162, 0x1800c6812\nmov     rdi, [rdi+58h]                                                 ; +0x166, 0x1800c6816\nmov     rcx, [rax]                                                     ; +0x16a, 0x1800c681a\nmov     r9, [rcx+70h]                                                  ; +0x16d, 0x1800c681d\nmov     rcx, rax                                                       ; +0x171, 0x1800c6821\ncall    r9                                                             ; +0x174, 0x1800c6824\nmov     rcx, rax; this                                                 ; +0x177, 0x1800c6827\nmov     r8, rbx                                                        ; +0x17a, 0x1800c682a\nmov     rdx, rdi                                                       ; +0x17d, 0x1800c682d\ncall    ?unscheduleSelector@CCScheduler@cocos2d@@QEAAXP8CCObject@2@EAAXM@ZPEAV32@@Z; cocos2d::CCScheduler::unscheduleSelector(void (cocos2d::CCObject::*)(float),cocos2d::CCObject *) ; +0x180, 0x1800c6830\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x185, 0x1800c6835\nadd     rsp, 20h                                                       ; +0x18a, 0x1800c683a\npop     rdi                                                            ; +0x18e, 0x1800c683e\nretn                                                                   ; +0x18f, 0x1800c683f", "xrefs": ["<???> @ 0x18010dd28", "<???> @ 0x18014b36c", "<???> @ 0x18014b380", "<???> @ 0x18014cf68", "<???> @ 0x1801c3924"], "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"}