{"type": "func", "start": 4301297760, "end": 4301298029, "name": "GJActionManager::updateInternalActions", "pseudocode": "// \n// GJActionManager::updateInternalActions from 0x100609860 to 0x10060996d (269 bytes)\n// \n// 1 xrefs:\n// > PlayerObject::updateInternalActions @ 0x10041dbce\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 GJActionManager::updateInternalActions(GJActionManager *a1, float a2, bool a3)\n{\n  cocos2d::CCArray *v3; // rax\n  cocos2d::ccArray *data; // rax\n  unsigned __int64 arr; // r12\n  unsigned __int64 v6; // r13\n  intptr_t v7; // r14\n  cocos2d::CCObject *v8; // r15\n  intptr_t v9; // r14\n  cocos2d::CCObject *v10; // r15\n  char v11; // al\n  cocos2d::CCObject_vtbl *v12; // rcx\n\n  v3 = cocos2d::CCDictionary::allKeys(a1->m_internalActions);\n  if ( v3 )\n  {\n    data = v3->data;\n    if ( data->num )\n    {\n      arr = (unsigned __int64)data->arr;\n      v6 = arr + 8LL * data->num - 8;\n      if ( a3 )\n      {\n        do\n        {\n          if ( !*(_QWORD *)arr )\n            break;\n          v7 = *(int *)(*(_QWORD *)arr + 56LL);\n          v8 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v7);\n          ((void (__fastcall *)(cocos2d::CCObject *))v8->__vftable[1].copyWithZone)(v8);\n          ((void (__fastcall *)(cocos2d::CCObject *))v8->__vftable[1].~CCObject_0)(v8);\n          cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v7);\n          arr += 8LL;\n        }\n        while ( arr <= v6 );\n      }\n      else\n      {\n        while ( *(_QWORD *)arr )\n        {\n          v9 = *(int *)(*(_QWORD *)arr + 56LL);\n          v10 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v9);\n          v11 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v10->__vftable[1].copyWithZone)(v10);\n          v12 = v10->__vftable;\n          if ( v11 )\n          {\n            ((void (__fastcall *)(cocos2d::CCObject *))v12[1].~CCObject_0)(v10);\n            cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v9);\n            arr += 8LL;\n            if ( arr > v6 )\n              return;\n          }\n          else\n          {\n            ((void (__fastcall *)(cocos2d::CCObject *, float))v12[1].isEqual)(v10, a2);\n            arr += 8LL;\n            if ( arr > v6 )\n              return;\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; GJActionManager::updateInternalActions from 0x100609860 to 0x10060996d (269 bytes)\n; \n; 1 xrefs:\n; > PlayerObject::updateInternalActions @ 0x10041dbce\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    rbp                                                            ; +0x0, 0x100609860\nmov     rbp, rsp                                                       ; +0x1, 0x100609861\npush    r15                                                            ; +0x4, 0x100609864\npush    r14                                                            ; +0x6, 0x100609866\npush    r13                                                            ; +0x8, 0x100609868\npush    r12                                                            ; +0xa, 0x10060986a\npush    rbx                                                            ; +0xc, 0x10060986c\npush    rax                                                            ; +0xd, 0x10060986d\nmov     r14d, esi                                                      ; +0xe, 0x10060986e\nmovss   [rbp+var_2C], xmm0                                             ; +0x11, 0x100609871\nmov     rbx, rdi                                                       ; +0x16, 0x100609876\nmov     rdi, [rdi+140h]                                                ; +0x19, 0x100609879\ncall    cocos2d__CCDictionary__allKeys                                 ; +0x20, 0x100609880\ntest    rax, rax                                                       ; +0x25, 0x100609885\njz      loc_10060995E                                                  ; +0x28, 0x100609888\nmov     rax, [rax+38h]                                                 ; +0x2e, 0x10060988e\nmov     ecx, [rax]                                                     ; +0x32, 0x100609892\ntest    rcx, rcx                                                       ; +0x34, 0x100609894\njz      loc_10060995E                                                  ; +0x37, 0x100609897\nmov     r12, [rax+10h]                                                 ; +0x3d, 0x10060989d\nlea     r13, [r12+rcx*8]                                               ; +0x41, 0x1006098a1\nadd     r13, 0FFFFFFFFFFFFFFF8h                                        ; +0x45, 0x1006098a5\ntest    r14b, r14b                                                     ; +0x49, 0x1006098a9\njz      short loc_100609911                                            ; +0x4c, 0x1006098ac\nxchg    ax, ax                                                         ; +0x4e, 0x1006098ae\nmov     rax, [r12]                                                     ; +0x50, 0x1006098b0\ntest    rax, rax                                                       ; +0x54, 0x1006098b4\njz      loc_10060995E                                                  ; +0x57, 0x1006098b7\nmovsxd  r14, dword ptr [rax+38h]                                       ; +0x5d, 0x1006098bd\nmov     rdi, [rbx+140h]                                                ; +0x61, 0x1006098c1\nmov     rsi, r14                                                       ; +0x68, 0x1006098c8\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x6b, 0x1006098cb\nmov     r15, rax                                                       ; +0x70, 0x1006098d0\nmov     rax, [rax]                                                     ; +0x73, 0x1006098d3\nmov     rdi, r15                                                       ; +0x76, 0x1006098d6\ncall    qword ptr [rax+50h]                                            ; +0x79, 0x1006098d9\nmov     rax, [r15]                                                     ; +0x7c, 0x1006098dc\nmov     rdi, r15                                                       ; +0x7f, 0x1006098df\ncall    qword ptr [rax+60h]                                            ; +0x82, 0x1006098e2\nmov     rdi, [rbx+140h]                                                ; +0x85, 0x1006098e5\nmov     rsi, r14                                                       ; +0x8c, 0x1006098ec\ncall    cocos2d__CCDictionary__removeObjectForKey                      ; +0x8f, 0x1006098ef\nadd     r12, 8                                                         ; +0x94, 0x1006098f4\ncmp     r12, r13                                                       ; +0x98, 0x1006098f8\njbe     short loc_1006098B0                                            ; +0x9b, 0x1006098fb\njmp     short loc_10060995E                                            ; +0x9d, 0x1006098fd\nalign 20h                                                              ; +0x9f, 0x1006098ff\nmovss   xmm0, [rbp+var_2C]                                             ; +0xa0, 0x100609900\ncall    qword ptr [rcx+68h]                                            ; +0xa5, 0x100609905\nadd     r12, 8                                                         ; +0xa8, 0x100609908\ncmp     r12, r13                                                       ; +0xac, 0x10060990c\nja      short loc_10060995E                                            ; +0xaf, 0x10060990f\nmov     rax, [r12]                                                     ; +0xb1, 0x100609911\ntest    rax, rax                                                       ; +0xb5, 0x100609915\njz      short loc_10060995E                                            ; +0xb8, 0x100609918\nmovsxd  r14, dword ptr [rax+38h]                                       ; +0xba, 0x10060991a\nmov     rdi, [rbx+140h]                                                ; +0xbe, 0x10060991e\nmov     rsi, r14                                                       ; +0xc5, 0x100609925\ncall    cocos2d__CCDictionary__objectForKey                            ; +0xc8, 0x100609928\nmov     r15, rax                                                       ; +0xcd, 0x10060992d\nmov     rax, [rax]                                                     ; +0xd0, 0x100609930\nmov     rdi, r15                                                       ; +0xd3, 0x100609933\ncall    qword ptr [rax+50h]                                            ; +0xd6, 0x100609936\nmov     rcx, [r15]                                                     ; +0xd9, 0x100609939\nmov     rdi, r15                                                       ; +0xdc, 0x10060993c\ntest    al, al                                                         ; +0xdf, 0x10060993f\njz      short loc_100609900                                            ; +0xe1, 0x100609941\ncall    qword ptr [rcx+60h]                                            ; +0xe3, 0x100609943\nmov     rdi, [rbx+140h]                                                ; +0xe6, 0x100609946\nmov     rsi, r14                                                       ; +0xed, 0x10060994d\ncall    cocos2d__CCDictionary__removeObjectForKey                      ; +0xf0, 0x100609950\nadd     r12, 8                                                         ; +0xf5, 0x100609955\ncmp     r12, r13                                                       ; +0xf9, 0x100609959\njbe     short loc_100609911                                            ; +0xfc, 0x10060995c\nadd     rsp, 8                                                         ; +0xfe, 0x10060995e\npop     rbx                                                            ; +0x102, 0x100609962\npop     r12                                                            ; +0x103, 0x100609963\npop     r13                                                            ; +0x105, 0x100609965\npop     r14                                                            ; +0x107, 0x100609967\npop     r15                                                            ; +0x109, 0x100609969\npop     rbp                                                            ; +0x10b, 0x10060996b\nretn                                                                   ; +0x10c, 0x10060996c", "xrefs": ["PlayerObject::updateInternalActions @ 0x10041dbce"], "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"}