{"type": "func", "start": 5370993632, "end": 5370993990, "name": "GJBaseGameLayer::claimMoveAction", "pseudocode": "// \n// GJBaseGameLayer::claimMoveAction from 0x14022dbe0 to 0x14022dd46 (358 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::processRotationActions @ 0x14022bb9d\n// > GJBaseGameLayer::processTransformActions @ 0x14022cc0d\n// > <???> @ 0x1406cdcbc\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCPoint GJBaseGameLayer::claimMoveAction(GJBaseGameLayer *a1, int a2, bool a3)\n{\n  char v3; // r9\n  float v4; // xmm0_4\n  GJEffectManager *m_effectManager; // r10\n  cocos2d::CCPoint v6; // rbx\n  unsigned __int8 v7; // r8^1\n  float i; // xmm1_4\n  unsigned __int8 v9; // r8d^2\n  unsigned __int8 v10; // r8d^3\n  std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr Myhead; // rdx\n  std::_Vector_val<std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>>>>::pointer Myfirst; // rcx\n  std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr v13; // rax\n  std::_List_simple_types<std::pair<const int, CCMoveCNode *>>::_Node *v14; // rcx\n  __int64 v15; // rcx\n  double v16; // xmm1_8\n  __int64 *v17; // rdx\n  __int64 *v18; // rcx\n  __int64 v19; // rax\n\n  m_effectManager = a1->m_effectManager;\n  v6 = *(cocos2d::CCPoint *)&a2;\n  i = 0.0;\n  Myhead = m_effectManager->m_unkMap618._List._Mypair._Myval2._Myhead;\n  Myfirst = m_effectManager->m_unkMap618._Vec._Mypair._Myval2._Myfirst;\n  v13 = *((std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr *)Myfirst\n        + 2\n        * ((0x100000001B3LL\n          * (v10 ^ (0x100000001B3LL * (v9 ^ (0x100000001B3LL * (v7 ^ (0x100000001B3LL * (a3 ^ 0xCBF29CE484222325uLL))))))))\n         & m_effectManager->m_unkMap618._Mask)\n        + 1);\n  if ( v13 != Myhead )\n  {\n    v14 = *((std::_List_simple_types<std::pair<const int, CCMoveCNode *>>::_Node **)Myfirst\n          + 2\n          * ((0x100000001B3LL\n            * (v10\n             ^ (0x100000001B3LL * (v9 ^ (0x100000001B3LL * (v7 ^ (0x100000001B3LL * (a3 ^ 0xCBF29CE484222325uLL))))))))\n           & m_effectManager->m_unkMap618._Mask));\n    if ( a3 == *((_DWORD *)v13 + 4) )\n      goto LABEL_7;\n    while ( v13 != v14 )\n    {\n      v13 = *((std::_List_val<std::_List_simple_types<std::pair<const int, CCMoveCNode *>>>::_Nodeptr *)v13 + 1);\n      if ( a3 == *((_DWORD *)v13 + 4) )\n        goto LABEL_7;\n    }\n  }\n  v13 = nullptr;\nLABEL_7:\n  if ( !v13 )\n    v13 = m_effectManager->m_unkMap618._List._Mypair._Myval2._Myhead;\n  if ( v13 != Myhead )\n  {\n    v15 = *((_QWORD *)v13 + 3);\n    if ( v15 )\n    {\n      if ( !*(_BYTE *)(v15 + 208) && !*(_BYTE *)(v15 + 209) )\n      {\n        *(_BYTE *)(v15 + 208) = 1;\n        if ( v3 )\n        {\n          i = *(double *)(v15 + 144);\n        }\n        else\n        {\n          v16 = *(double *)(v15 + 56);\n          v17 = *(__int64 **)(v15 + 224);\n          v18 = *(__int64 **)(v15 + 216);\n          for ( i = v16; v18 != v17; *(_QWORD *)(v19 + 360) = 0 )\n          {\n            v19 = *v18++;\n            *(_QWORD *)(v19 + 352) = 0;\n          }\n        }\n      }\n    }\n  }\n  cocos2d::CCPoint::CCPoint(v4, i);\n  return v6;\n}", "assembly": "; \n; GJBaseGameLayer::claimMoveAction from 0x14022dbe0 to 0x14022dd46 (358 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::processRotationActions @ 0x14022bb9d\n; > GJBaseGameLayer::processTransformActions @ 0x14022cc0d\n; > <???> @ 0x1406cdcbc\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\nmov     [rsp+arg_10], r8d                                              ; +0x0, 0x14022dbe0\npush    rbx                                                            ; +0x5, 0x14022dbe5\nsub     rsp, 20h                                                       ; +0x6, 0x14022dbe6\nmov     r10, [rcx+950h]                                                ; +0xa, 0x14022dbea\nmov     rax, 0CBF29CE484222325h                                        ; +0x11, 0x14022dbf1\nmov     rbx, rdx                                                       ; +0x1b, 0x14022dbfb\nmovzx   ecx, r8b                                                       ; +0x1e, 0x14022dbfe\nxor     rcx, rax                                                       ; +0x22, 0x14022dc02\nmov     rdx, 100000001B3h                                              ; +0x25, 0x14022dc05\nmovzx   eax, byte ptr [rsp+28h+arg_10+1]                               ; +0x2f, 0x14022dc0f\nmovzx   r11d, r9b                                                      ; +0x34, 0x14022dc14\nmov     r9, [r10+700h]                                                 ; +0x38, 0x14022dc18\nxorps   xmm1, xmm1                                                     ; +0x3f, 0x14022dc1f\nimul    rcx, rdx                                                       ; +0x42, 0x14022dc22\nxorps   xmm2, xmm2                                                     ; +0x46, 0x14022dc26\nxor     rcx, rax                                                       ; +0x49, 0x14022dc29\nmovzx   eax, byte ptr [rsp+28h+arg_10+2]                               ; +0x4c, 0x14022dc2c\nimul    rcx, rdx                                                       ; +0x51, 0x14022dc31\nxor     rcx, rax                                                       ; +0x55, 0x14022dc35\nmovzx   eax, byte ptr [rsp+28h+arg_10+3]                               ; +0x58, 0x14022dc38\nimul    rcx, rdx                                                       ; +0x5d, 0x14022dc3d\nxor     rcx, rax                                                       ; +0x61, 0x14022dc41\nimul    rcx, rdx                                                       ; +0x64, 0x14022dc44\nmov     rdx, [r10+6D8h]                                                ; +0x68, 0x14022dc48\nand     r9, rcx                                                        ; +0x6f, 0x14022dc4f\nmov     rcx, [r10+6E8h]                                                ; +0x72, 0x14022dc52\nadd     r9, r9                                                         ; +0x79, 0x14022dc59\nxor     r10d, r10d                                                     ; +0x7c, 0x14022dc5c\nmov     rax, [rcx+r9*8+8]                                              ; +0x7f, 0x14022dc5f\ncmp     rax, rdx                                                       ; +0x84, 0x14022dc64\njz      short loc_14022DC84                                            ; +0x87, 0x14022dc67\nmov     rcx, [rcx+r9*8]                                                ; +0x89, 0x14022dc69\ncmp     r8d, [rax+10h]                                                 ; +0x8d, 0x14022dc6d\njz      short loc_14022DC87                                            ; +0x91, 0x14022dc71\ncmp     rax, rcx                                                       ; +0x93, 0x14022dc73\njz      short loc_14022DC84                                            ; +0x96, 0x14022dc76\nmov     rax, [rax+8]                                                   ; +0x98, 0x14022dc78\ncmp     r8d, [rax+10h]                                                 ; +0x9c, 0x14022dc7c\njnz     short loc_14022DC73                                            ; +0xa0, 0x14022dc80\njmp     short loc_14022DC87                                            ; +0xa2, 0x14022dc82\nmov     rax, r10                                                       ; +0xa4, 0x14022dc84\ntest    rax, rax                                                       ; +0xa7, 0x14022dc87\ncmovz   rax, rdx                                                       ; +0xaa, 0x14022dc8a\ncmp     rax, rdx                                                       ; +0xae, 0x14022dc8e\njz      loc_14022DD34                                                  ; +0xb1, 0x14022dc91\nmov     rcx, [rax+18h]                                                 ; +0xb7, 0x14022dc97\ntest    rcx, rcx                                                       ; +0xbb, 0x14022dc9b\njz      loc_14022DD34                                                  ; +0xbe, 0x14022dc9e\ncmp     [rcx+0D0h], r10b                                               ; +0xc4, 0x14022dca4\njnz     loc_14022DD34                                                  ; +0xcb, 0x14022dcab\ncmp     [rcx+0D1h], r10b                                               ; +0xd1, 0x14022dcb1\njnz     short loc_14022DD34                                            ; +0xd8, 0x14022dcb8\nmov     byte ptr [rcx+0D0h], 1                                         ; +0xda, 0x14022dcba\ntest    r11b, r11b                                                     ; +0xe1, 0x14022dcc1\njnz     short loc_14022DD1C                                            ; +0xe4, 0x14022dcc4\nmovsd   xmm2, qword ptr [rcx+40h]                                      ; +0xe6, 0x14022dcc6\nmovsd   xmm1, qword ptr [rcx+38h]                                      ; +0xeb, 0x14022dccb\nmov     rdx, [rcx+0E0h]                                                ; +0xf0, 0x14022dcd0\nmov     rcx, [rcx+0D8h]                                                ; +0xf7, 0x14022dcd7\ncvtpd2ps xmm2, xmm2                                                    ; +0xfe, 0x14022dcde\ncvtpd2ps xmm1, xmm1                                                    ; +0x102, 0x14022dce2\ncmp     rcx, rdx                                                       ; +0x106, 0x14022dce6\njz      short loc_14022DD34                                            ; +0x109, 0x14022dce9\nnop     dword ptr [rax+rax+00h]                                        ; +0x10b, 0x14022dceb\nmov     rax, [rcx]                                                     ; +0x110, 0x14022dcf0\nadd     rcx, 8                                                         ; +0x113, 0x14022dcf3\nmov     [rax+160h], r10                                                ; +0x117, 0x14022dcf7\nmov     [rax+168h], r10                                                ; +0x11e, 0x14022dcfe\ncmp     rcx, rdx                                                       ; +0x125, 0x14022dd05\njnz     short loc_14022DCF0                                            ; +0x128, 0x14022dd08\nmov     rcx, rbx                                                       ; +0x12a, 0x14022dd0a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12d, 0x14022dd0d\nmov     rax, rbx                                                       ; +0x133, 0x14022dd13\nadd     rsp, 20h                                                       ; +0x136, 0x14022dd16\npop     rbx                                                            ; +0x13a, 0x14022dd1a\nretn                                                                   ; +0x13b, 0x14022dd1b\nmovsd   xmm1, qword ptr [rcx+90h]                                      ; +0x13c, 0x14022dd1c\nmovsd   xmm2, qword ptr [rcx+98h]                                      ; +0x144, 0x14022dd24\ncvtpd2ps xmm1, xmm1                                                    ; +0x14c, 0x14022dd2c\ncvtpd2ps xmm2, xmm2                                                    ; +0x150, 0x14022dd30\nmov     rcx, rbx                                                       ; +0x154, 0x14022dd34\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x157, 0x14022dd37\nmov     rax, rbx                                                       ; +0x15d, 0x14022dd3d\nadd     rsp, 20h                                                       ; +0x160, 0x14022dd40\npop     rbx                                                            ; +0x164, 0x14022dd44\nretn                                                                   ; +0x165, 0x14022dd45", "xrefs": ["GJBaseGameLayer::processRotationActions @ 0x14022bb9d", "GJBaseGameLayer::processTransformActions @ 0x14022cc0d", "<???> @ 0x1406cdcbc"], "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"}