{"type": "func", "start": 5371183840, "end": 5371184161, "name": "GJEffectManager::postCollisionCheck", "pseudocode": "// \n// GJEffectManager::postCollisionCheck from 0x14025c2e0 to 0x14025c421 (321 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x140235c18\n// > GJBaseGameLayer::update @ 0x14023883d\n// > <???> @ 0x140684b4c\n// > <???> @ 0x140684b5c\n// > <???> @ 0x1406cfdc8\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 GJEffectManager::postCollisionCheck(GJEffectManager *a1)\n{\n  std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>::_Nodeptr Myhead; // rax\n  _QWORD *v3; // rbx\n  _QWORD **v4; // rcx\n  std::_Simple_types<std::_List_unchecked_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>>>::value_type *v5; // r8\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax\n  std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>::_Nodeptr v7; // rax\n\n  Myhead = a1->m_unkMap288._List._Mypair._Myval2._Myhead;\n  v3 = *(_QWORD **)Myhead;\n  if ( *(std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>::_Nodeptr *)Myhead != Myhead )\n  {\n    do\n    {\n      if ( *((_BYTE *)v3 + 20) )\n      {\n        v3 = (_QWORD *)*v3;\n      }\n      else\n      {\n        GJEffectManager::handleObjectCollision(\n          a1,\n          0,\n          (*((_DWORD *)v3 + 4) - 10000000) / 10000,\n          *((_DWORD *)v3 + 4) - 10000 * ((*((_DWORD *)v3 + 4) - 10000000) / 10000 + 1000));\n        v4 = (_QWORD **)v3;\n        v5 = &a1->m_unkMap288._Vec._Mypair._Myval2._Myfirst[2\n                                                          * (a1->m_unkMap288._Mask\n                                                           & (0x100000001B3LL\n                                                            * (*((unsigned __int8 *)v3 + 19)\n                                                             ^ (0x100000001B3LL\n                                                              * (*((unsigned __int8 *)v3 + 18)\n                                                               ^ (0x100000001B3LL\n                                                                * (*((unsigned __int8 *)v3 + 17)\n                                                                 ^ (0x100000001B3LL\n                                                                  * (*((unsigned __int8 *)v3 + 16)\n                                                                   ^ 0xCBF29CE484222325uLL)))))))))];\n        Ptr = v5->_Ptr;\n        if ( (_QWORD *)v5[1]._Ptr == v3 )\n        {\n          if ( Ptr == (std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>, std::_Iterator_base0>::_Nodeptr)v3 )\n          {\n            v7 = a1->m_unkMap288._List._Mypair._Myval2._Myhead;\n            v5->_Ptr = v7;\n          }\n          else\n          {\n            v7 = (std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>::_Nodeptr)v3[1];\n          }\n          v5[1]._Ptr = v7;\n        }\n        else if ( Ptr == (std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>, std::_Iterator_base0>::_Nodeptr)v3 )\n        {\n          v5->_Ptr = *(std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const int, bool>>>, std::_Iterator_base0>::_Nodeptr *)v3;\n        }\n        v3 = (_QWORD *)*v3;\n        --a1->m_unkMap288._List._Mypair._Myval2._Mysize;\n        *v4[1] = v3;\n        v3[1] = v4[1];\n        j_j_free(v4);\n      }\n    }\n    while ( v3 != (_QWORD *)a1->m_unkMap288._List._Mypair._Myval2._Myhead );\n  }\n}", "assembly": "; \n; GJEffectManager::postCollisionCheck from 0x14025c2e0 to 0x14025c421 (321 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x140235c18\n; > GJBaseGameLayer::update @ 0x14023883d\n; > <???> @ 0x140684b4c\n; > <???> @ 0x140684b5c\n; > <???> @ 0x1406cfdc8\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], rbx                                              ; +0x0, 0x14025c2e0\npush    rdi                                                            ; +0x5, 0x14025c2e5\nsub     rsp, 20h                                                       ; +0x6, 0x14025c2e6\nmov     rax, [rcx+2A8h]                                                ; +0xa, 0x14025c2ea\nmov     rdi, rcx                                                       ; +0x11, 0x14025c2f1\nmov     rbx, [rax]                                                     ; +0x14, 0x14025c2f4\ncmp     rbx, rax                                                       ; +0x17, 0x14025c2f7\njz      loc_14025C416                                                  ; +0x1a, 0x14025c2fa\nmov     [rsp+28h+arg_0], rbp                                           ; +0x20, 0x14025c300\nmov     rbp, 0CBF29CE484222325h                                        ; +0x25, 0x14025c305\nmov     [rsp+28h+arg_8], rsi                                           ; +0x2f, 0x14025c30f\nmov     rsi, 100000001B3h                                              ; +0x34, 0x14025c314\nxchg    ax, ax                                                         ; +0x3e, 0x14025c31e\ncmp     byte ptr [rbx+14h], 0                                          ; +0x40, 0x14025c320\njnz     loc_14025C3FC                                                  ; +0x44, 0x14025c324\nmov     r9d, [rbx+10h]                                                 ; +0x4a, 0x14025c32a\nmov     eax, 68DB8BADh                                                 ; +0x4e, 0x14025c32e\nlea     ecx, [r9-989680h]                                              ; +0x53, 0x14025c333\nimul    ecx                                                            ; +0x5a, 0x14025c33a\nsar     edx, 0Ch                                                       ; +0x5c, 0x14025c33c\nmov     eax, edx                                                       ; +0x5f, 0x14025c33f\nshr     eax, 1Fh                                                       ; +0x61, 0x14025c341\nadd     edx, eax                                                       ; +0x64, 0x14025c344\nmov     r8d, edx                                                       ; +0x66, 0x14025c346\nlea     eax, [rdx+3E8h]                                                ; +0x69, 0x14025c349\nxor     edx, edx                                                       ; +0x6f, 0x14025c34f\nimul    ecx, eax, 2710h                                                ; +0x71, 0x14025c351\nsub     r9d, ecx                                                       ; +0x77, 0x14025c357\nmov     rcx, rdi                                                       ; +0x7a, 0x14025c35a\ncall    GJEffectManager__handleObjectCollision                         ; +0x7d, 0x14025c35d\nmovzx   eax, byte ptr [rbx+11h]                                        ; +0x82, 0x14025c362\nmov     rcx, rbx; Block                                                ; +0x86, 0x14025c366\nmovzx   r8d, byte ptr [rbx+10h]                                        ; +0x89, 0x14025c369\nxor     r8, rbp                                                        ; +0x8e, 0x14025c36e\nimul    r8, rsi                                                        ; +0x91, 0x14025c371\nxor     r8, rax                                                        ; +0x95, 0x14025c375\nmovzx   eax, byte ptr [rbx+12h]                                        ; +0x98, 0x14025c378\nimul    r8, rsi                                                        ; +0x9c, 0x14025c37c\nxor     r8, rax                                                        ; +0xa0, 0x14025c380\nmovzx   eax, byte ptr [rbx+13h]                                        ; +0xa3, 0x14025c383\nimul    r8, rsi                                                        ; +0xa7, 0x14025c387\nxor     r8, rax                                                        ; +0xab, 0x14025c38b\nimul    r8, rsi                                                        ; +0xae, 0x14025c38e\nand     r8, [rdi+2D0h]                                                 ; +0xb2, 0x14025c392\nshl     r8, 4                                                          ; +0xb9, 0x14025c399\nadd     r8, [rdi+2B8h]                                                 ; +0xbd, 0x14025c39d\nmov     rax, [r8]                                                      ; +0xc4, 0x14025c3a4\ncmp     [r8+8], rbx                                                    ; +0xc7, 0x14025c3a7\njnz     short loc_14025C3CC                                            ; +0xcb, 0x14025c3ab\ncmp     rax, rbx                                                       ; +0xcd, 0x14025c3ad\njnz     short loc_14025C3C2                                            ; +0xd0, 0x14025c3b0\nmov     rax, [rdi+2A8h]                                                ; +0xd2, 0x14025c3b2\nmov     [r8], rax                                                      ; +0xd9, 0x14025c3b9\nmov     [r8+8], rax                                                    ; +0xdc, 0x14025c3bc\njmp     short loc_14025C3D7                                            ; +0xe0, 0x14025c3c0\nmov     rax, [rbx+8]                                                   ; +0xe2, 0x14025c3c2\nmov     [r8+8], rax                                                    ; +0xe6, 0x14025c3c6\njmp     short loc_14025C3D7                                            ; +0xea, 0x14025c3ca\ncmp     rax, rbx                                                       ; +0xec, 0x14025c3cc\njnz     short loc_14025C3D7                                            ; +0xef, 0x14025c3cf\nmov     rax, [rbx]                                                     ; +0xf1, 0x14025c3d1\nmov     [r8], rax                                                      ; +0xf4, 0x14025c3d4\nmov     rbx, [rbx]                                                     ; +0xf7, 0x14025c3d7\nmov     edx, 18h                                                       ; +0xfa, 0x14025c3da\ndec     qword ptr [rdi+2B0h]                                           ; +0xff, 0x14025c3df\nmov     rax, [rcx+8]                                                   ; +0x106, 0x14025c3e6\nmov     [rax], rbx                                                     ; +0x10a, 0x14025c3ea\nmov     rax, [rcx+8]                                                   ; +0x10d, 0x14025c3ed\nmov     [rbx+8], rax                                                   ; +0x111, 0x14025c3f1\ncall    j_j_free                                                       ; +0x115, 0x14025c3f5\njmp     short loc_14025C3FF                                            ; +0x11a, 0x14025c3fa\nmov     rbx, [rbx]                                                     ; +0x11c, 0x14025c3fc\ncmp     rbx, [rdi+2A8h]                                                ; +0x11f, 0x14025c3ff\njnz     loc_14025C320                                                  ; +0x126, 0x14025c406\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x12c, 0x14025c40c\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x131, 0x14025c411\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x136, 0x14025c416\nadd     rsp, 20h                                                       ; +0x13b, 0x14025c41b\npop     rdi                                                            ; +0x13f, 0x14025c41f\nretn                                                                   ; +0x140, 0x14025c420", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x140235c18", "GJBaseGameLayer::update @ 0x14023883d", "<???> @ 0x140684b4c", "<???> @ 0x140684b5c", "<???> @ 0x1406cfdc8"], "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"}