{"type": "func", "start": 5372526352, "end": 5372526566, "name": "PlayerObject::updateInternalActions", "pseudocode": "// \n// PlayerObject::updateInternalActions from 0x1403a3f10 to 0x1403a3fe6 (214 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::update @ 0x140238415\n// > GJBaseGameLayer::update @ 0x14023842e\n// > MenuGameLayer::update @ 0x140332421\n// > <???> @ 0x140698b44\n// > <???> @ 0x140698ba0\n// > <???> @ 0x1406d69f8\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 PlayerObject::updateInternalActions(PlayerObject *a1, float a2)\n{\n  GJActionManager *m_actionManager; // r14\n  struct cocos2d::CCArray *v3; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rbp\n  __int64 v8; // rsi\n  struct cocos2d::CCObject *v9; // rdi\n  char v10; // al\n  cocos2d::CCObject_vtbl *v11; // rdx\n\n  m_actionManager = a1->m_actionManager;\n  v3 = cocos2d::CCDictionary::allKeys(m_actionManager->m_internalActions);\n  if ( v3 )\n  {\n    data = v3->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        if ( !*arr )\n          break;\n        v8 = SLODWORD((*arr)[1].__vftable);\n        v9 = cocos2d::CCDictionary::objectForKey(m_actionManager->m_internalActions, v8);\n        v10 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v9->__vftable[1].copyWithZone)(v9);\n        v11 = v9->__vftable;\n        if ( v10 )\n        {\n          ((void (__fastcall *)(struct cocos2d::CCObject *))v11[1].isEqual)(v9);\n          cocos2d::CCDictionary::removeObjectForKey(m_actionManager->m_internalActions, v8);\n        }\n        else\n        {\n          ((void (__fastcall *)(struct cocos2d::CCObject *))v11[1].acceptVisitor)(v9);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; PlayerObject::updateInternalActions from 0x1403a3f10 to 0x1403a3fe6 (214 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::update @ 0x140238415\n; > GJBaseGameLayer::update @ 0x14023842e\n; > MenuGameLayer::update @ 0x140332421\n; > <???> @ 0x140698b44\n; > <???> @ 0x140698ba0\n; > <???> @ 0x1406d69f8\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    r14                                                            ; +0x0, 0x1403a3f10\nsub     rsp, 30h                                                       ; +0x2, 0x1403a3f12\nmov     r14, [rcx+0C30h]                                               ; +0x6, 0x1403a3f16\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x1403a3f1d\nmovaps  xmm6, xmm1                                                     ; +0x12, 0x1403a3f22\nmov     rcx, [r14+140h]                                                ; +0x15, 0x1403a3f25\ncall    cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x1c, 0x1403a3f2c\ntest    rax, rax                                                       ; +0x22, 0x1403a3f32\njz      loc_1403A3FDA                                                  ; +0x25, 0x1403a3f35\nmov     [rsp+38h+arg_0], rbx                                           ; +0x2b, 0x1403a3f3b\nmov     rbx, [rax+38h]                                                 ; +0x30, 0x1403a3f40\nmov     eax, [rbx]                                                     ; +0x34, 0x1403a3f44\ntest    eax, eax                                                       ; +0x36, 0x1403a3f46\njz      loc_1403A3FD5                                                  ; +0x38, 0x1403a3f48\nmov     rbx, [rbx+10h]                                                 ; +0x3e, 0x1403a3f4e\nmov     [rsp+38h+arg_8], rbp                                           ; +0x42, 0x1403a3f52\nlea     rbp, [rax-1]                                                   ; +0x47, 0x1403a3f57\nlea     rbp, [rbx+rbp*8]                                               ; +0x4b, 0x1403a3f5b\ncmp     rbx, rbp                                                       ; +0x4f, 0x1403a3f5f\nja      short loc_1403A3FD0                                            ; +0x52, 0x1403a3f62\nmov     [rsp+38h+arg_10], rsi                                          ; +0x54, 0x1403a3f64\nmov     [rsp+38h+arg_18], rdi                                          ; +0x59, 0x1403a3f69\nxchg    ax, ax                                                         ; +0x5e, 0x1403a3f6e\nmov     rax, [rbx]                                                     ; +0x60, 0x1403a3f70\ntest    rax, rax                                                       ; +0x63, 0x1403a3f73\njz      short loc_1403A3FC6                                            ; +0x66, 0x1403a3f76\nmovsxd  rsi, dword ptr [rax+38h]                                       ; +0x68, 0x1403a3f78\nmov     rcx, [r14+140h]                                                ; +0x6c, 0x1403a3f7c\nmov     rdx, rsi                                                       ; +0x73, 0x1403a3f83\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x76, 0x1403a3f86\nmov     rcx, rax                                                       ; +0x7c, 0x1403a3f8c\nmov     rdi, rax                                                       ; +0x7f, 0x1403a3f8f\nmov     rdx, [rax]                                                     ; +0x82, 0x1403a3f92\ncall    qword ptr [rdx+48h]                                            ; +0x85, 0x1403a3f95\nmov     rdx, [rdi]                                                     ; +0x88, 0x1403a3f98\nmov     rcx, rdi                                                       ; +0x8b, 0x1403a3f9b\ntest    al, al                                                         ; +0x8e, 0x1403a3f9e\njnz     short loc_1403A3FAA                                            ; +0x90, 0x1403a3fa0\nmovaps  xmm1, xmm6                                                     ; +0x92, 0x1403a3fa2\ncall    qword ptr [rdx+60h]                                            ; +0x95, 0x1403a3fa5\njmp     short loc_1403A3FBD                                            ; +0x98, 0x1403a3fa8\ncall    qword ptr [rdx+58h]                                            ; +0x9a, 0x1403a3faa\nmov     rcx, [r14+140h]                                                ; +0x9d, 0x1403a3fad\nmov     rdx, rsi                                                       ; +0xa4, 0x1403a3fb4\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0xa7, 0x1403a3fb7\nadd     rbx, 8                                                         ; +0xad, 0x1403a3fbd\ncmp     rbx, rbp                                                       ; +0xb1, 0x1403a3fc1\njbe     short loc_1403A3F70                                            ; +0xb4, 0x1403a3fc4\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xb6, 0x1403a3fc6\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xbb, 0x1403a3fcb\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xc0, 0x1403a3fd0\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc5, 0x1403a3fd5\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xca, 0x1403a3fda\nadd     rsp, 30h                                                       ; +0xcf, 0x1403a3fdf\npop     r14                                                            ; +0xd3, 0x1403a3fe3\nretn                                                                   ; +0xd5, 0x1403a3fe5", "xrefs": ["GJBaseGameLayer::update @ 0x140238415", "GJBaseGameLayer::update @ 0x14023842e", "MenuGameLayer::update @ 0x140332421", "<???> @ 0x140698b44", "<???> @ 0x140698ba0", "<???> @ 0x1406d69f8"], "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"}