{"type": "func", "start": 5370828384, "end": 5370828698, "name": "GJGameState::getGameObjectPhysics", "pseudocode": "// \n// GJGameState::getGameObjectPhysics from 0x140205660 to 0x14020579a (314 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x14022f557\n// > <???> @ 0x1406ccc90\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\nGameObjectPhysics *GJGameState::getGameObjectPhysics(GJGameState *a1, GameObject *a2)\n{\n  std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>::_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, GameObjectPhysics>>>>>>::pointer Myfirst; // r8\n  unsigned __int64 v6; // rcx\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>, std::_Iterator_base0>::_Nodeptr v8; // rcx\n  GameObjectPhysics *result; // rax\n  __int64 v10; // [rsp+20h] [rbp-48h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-38h] BYREF\n  cocos2d::CCPoint v12; // [rsp+38h] [rbp-30h] BYREF\n  cocos2d::CCPoint v13[3]; // [rsp+40h] [rbp-28h] BYREF\n  int v14; // [rsp+58h] [rbp-10h]\n  unsigned int m_uniqueID; // [rsp+70h] [rbp+8h] BYREF\n\n  m_uniqueID = a2->m_uniqueID;\n  Myhead = a1->m_gameObjectPhysics._List._Mypair._Myval2._Myhead;\n  Myfirst = a1->m_gameObjectPhysics._Vec._Mypair._Myval2._Myfirst;\n  v6 = 2\n     * ((0x100000001B3LL\n       * (((unsigned __int64)m_uniqueID >> 24)\n        ^ (0x100000001B3LL\n         * (BYTE2(m_uniqueID)\n          ^ (0x100000001B3LL\n           * ((0x100000001B3LL * ((unsigned __int8)m_uniqueID ^ 0xCBF29CE484222325uLL)) ^ BYTE1(m_uniqueID)))))))\n      & a1->m_gameObjectPhysics._Mask);\n  Ptr = Myfirst[v6 + 1]._Ptr;\n  if ( Ptr != Myhead )\n  {\n    v8 = Myfirst[v6]._Ptr;\n    if ( m_uniqueID == *((_DWORD *)Ptr + 4) )\n      goto LABEL_7;\n    while ( Ptr != v8 )\n    {\n      Ptr = *((std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, GameObjectPhysics>>>, std::_Iterator_base0>::_Nodeptr *)Ptr\n            + 1);\n      if ( m_uniqueID == *((_DWORD *)Ptr + 4) )\n        goto LABEL_7;\n    }\n  }\n  Ptr = nullptr;\nLABEL_7:\n  if ( !Ptr )\n    Ptr = Myhead;\n  if ( Ptr == Myhead )\n  {\n    v11 = 0;\n    cocos2d::CCPoint::CCPoint(&v12);\n    cocos2d::CCPoint::CCPoint(v13);\n    v13[1] = 0;\n    v13[2] = 0;\n    v14 = 0;\n    sub_14024D240(&a1->m_gameObjectPhysics, &v10, &m_uniqueID, &v11);\n    result = (GameObjectPhysics *)(v10 + 24);\n    *(_QWORD *)(v10 + 24) = a2;\n  }\n  else\n  {\n    result = (GameObjectPhysics *)((char *)Ptr + 24);\n  }\n  result->m_unkInt1 = a1->m_commandIndex;\n  return result;\n}", "assembly": "; \n; GJGameState::getGameObjectPhysics from 0x140205660 to 0x14020579a (314 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x14022f557\n; > <???> @ 0x1406ccc90\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_8], rbx                                               ; +0x0, 0x140205660\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140205665\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14020566a\npush    rdi                                                            ; +0xf, 0x14020566f\nsub     rsp, 60h                                                       ; +0x10, 0x140205670\nmov     r9d, [rdx+39Ch]                                                ; +0x14, 0x140205674\nmov     rbx, rcx                                                       ; +0x1b, 0x14020567b\nmov     eax, r9d                                                       ; +0x1e, 0x14020567e\nmov     [rsp+68h+arg_0], r9d                                           ; +0x21, 0x140205681\nshr     eax, 8                                                         ; +0x26, 0x140205686\nmov     rcx, 0CBF29CE484222325h                                        ; +0x29, 0x140205689\nmovzx   r8d, al                                                        ; +0x33, 0x140205693\nmov     rdi, rdx                                                       ; +0x37, 0x140205697\nmov     rdx, 100000001B3h                                              ; +0x3a, 0x14020569a\nmovzx   eax, r9b                                                       ; +0x44, 0x1402056a4\nxor     rax, rcx                                                       ; +0x48, 0x1402056a8\nxor     ebp, ebp                                                       ; +0x4b, 0x1402056ab\nimul    rax, rdx                                                       ; +0x4d, 0x1402056ad\nxor     r8, rax                                                        ; +0x51, 0x1402056b1\nmov     eax, r9d                                                       ; +0x54, 0x1402056b4\nimul    r8, rdx                                                        ; +0x57, 0x1402056b7\nshr     eax, 10h                                                       ; +0x5b, 0x1402056bb\nmovzx   ecx, al                                                        ; +0x5e, 0x1402056be\nmov     eax, r9d                                                       ; +0x61, 0x1402056c1\nxor     r8, rcx                                                        ; +0x64, 0x1402056c4\nshr     rax, 18h                                                       ; +0x67, 0x1402056c7\nmov     rcx, [rbx+300h]                                                ; +0x6b, 0x1402056cb\nimul    r8, rdx                                                        ; +0x72, 0x1402056d2\nxor     r8, rax                                                        ; +0x76, 0x1402056d6\nimul    r8, rdx                                                        ; +0x79, 0x1402056d9\nmov     rdx, [rbx+2D8h]                                                ; +0x7d, 0x1402056dd\nand     rcx, r8                                                        ; +0x84, 0x1402056e4\nmov     r8, [rbx+2E8h]                                                 ; +0x87, 0x1402056e7\nadd     rcx, rcx                                                       ; +0x8e, 0x1402056ee\nmov     rax, [r8+rcx*8+8]                                              ; +0x91, 0x1402056f1\ncmp     rax, rdx                                                       ; +0x96, 0x1402056f6\njz      short loc_140205716                                            ; +0x99, 0x1402056f9\nmov     rcx, [r8+rcx*8]                                                ; +0x9b, 0x1402056fb\ncmp     r9d, [rax+10h]                                                 ; +0x9f, 0x1402056ff\njz      short loc_140205719                                            ; +0xa3, 0x140205703\ncmp     rax, rcx                                                       ; +0xa5, 0x140205705\njz      short loc_140205716                                            ; +0xa8, 0x140205708\nmov     rax, [rax+8]                                                   ; +0xaa, 0x14020570a\ncmp     r9d, [rax+10h]                                                 ; +0xae, 0x14020570e\njnz     short loc_140205705                                            ; +0xb2, 0x140205712\njmp     short loc_140205719                                            ; +0xb4, 0x140205714\nmov     rax, rbp                                                       ; +0xb6, 0x140205716\ntest    rax, rax                                                       ; +0xb9, 0x140205719\ncmovz   rax, rdx                                                       ; +0xbc, 0x14020571c\ncmp     rax, rdx                                                       ; +0xc0, 0x140205720\njz      short loc_14020572B                                            ; +0xc3, 0x140205723\nadd     rax, 18h                                                       ; +0xc5, 0x140205725\njmp     short loc_14020577B                                            ; +0xc9, 0x140205729\nlea     rcx, [rsp+68h+var_30]                                          ; +0xcb, 0x14020572b\nmov     [rsp+68h+var_38], rbp                                          ; +0xd0, 0x140205730\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xd5, 0x140205735\nlea     rcx, [rsp+68h+var_28]                                          ; +0xdb, 0x14020573b\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xe0, 0x140205740\nlea     r9, [rsp+68h+var_38]                                           ; +0xe6, 0x140205746\nmov     [rsp+68h+var_20], rbp                                          ; +0xeb, 0x14020574b\nlea     r8, [rsp+68h+arg_0]                                            ; +0xf0, 0x140205750\nmov     [rsp+68h+var_18], rbp                                          ; +0xf5, 0x140205755\nlea     rdx, [rsp+68h+var_48]                                          ; +0xfa, 0x14020575a\nmov     [rsp+68h+var_10], ebp                                          ; +0xff, 0x14020575f\nlea     rcx, [rbx+2D0h]                                                ; +0x103, 0x140205763\ncall    sub_14024D240                                                  ; +0x10a, 0x14020576a\nmov     rax, [rsp+68h+var_48]                                          ; +0x10f, 0x14020576f\nadd     rax, 18h                                                       ; +0x114, 0x140205774\nmov     [rax], rdi                                                     ; +0x118, 0x140205778\nmov     ecx, [rbx+238h]                                                ; +0x11b, 0x14020577b\nlea     r11, [rsp+68h+var_8]                                           ; +0x121, 0x140205781\nmov     rbx, [r11+18h]                                                 ; +0x126, 0x140205786\nmov     rbp, [r11+20h]                                                 ; +0x12a, 0x14020578a\nmov     rsi, [r11+28h]                                                 ; +0x12e, 0x14020578e\nmov     [rax+20h], ecx                                                 ; +0x132, 0x140205792\nmov     rsp, r11                                                       ; +0x135, 0x140205795\npop     rdi                                                            ; +0x138, 0x140205798\nretn                                                                   ; +0x139, 0x140205799", "xrefs": ["GJBaseGameLayer::processAdvancedFollowAction @ 0x14022f557", "<???> @ 0x1406ccc90"], "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"}