{"type": "func", "start": 5371184448, "end": 5371184893, "name": "GJEffectManager::handleObjectCollision", "pseudocode": "// \n// GJEffectManager::handleObjectCollision from 0x14025c540 to 0x14025c6fd (445 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::objectsCollided @ 0x140219275\n// > GJEffectManager::postCollisionCheck @ 0x14025c35d\n// > <???> @ 0x1406cfdf8\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// Hidden C++ exception states: #wind=1\nvoid GJEffectManager::handleObjectCollision(GJEffectManager *a1, bool a2, int a3, int a4)\n{\n  int v6; // r12d\n  int v8; // ebp\n  std::_Vector_val<std::_Simple_types<CollisionTriggerAction>>::pointer Myfirst; // rdi\n  __int64 v10; // rsi\n  int m_targetGroupID; // ecx\n  int v12; // eax\n  std::_Simple_types<unsigned int>::value_type *v13; // r8\n  char v14; // dl\n  std::_Simple_types<unsigned int>::value_type v15; // eax\n  std::unordered_set<int> *p_m_unkMap460; // rcx\n  _BYTE v17[16]; // [rsp+30h] [rbp-58h] BYREF\n  _QWORD v18[4]; // [rsp+40h] [rbp-48h] BYREF\n  int v19; // [rsp+90h] [rbp+8h] BYREF\n\n  v6 = a2;\n  v8 = 0;\n  Myfirst = a1->m_unkVector230._Mypair._Myval2._Myfirst;\n  if ( a1->m_unkVector230._Mypair._Myval2._Mylast - Myfirst )\n  {\n    v10 = 0;\n    do\n    {\n      if ( !Myfirst[v10].m_disabled\n        && Myfirst[v10].m_triggerOnExit != v6\n        && Myfirst[v10].m_blockAID == a3\n        && Myfirst[v10].m_blockBID == a4 )\n      {\n        if ( a1->m_triggerEffectDelegate )\n        {\n          sub_14024B270(v18, (__int64)&Myfirst[v10].m_remapKeys);\n          a1->m_triggerEffectDelegate->toggleGroupTriggered(\n            a1->m_triggerEffectDelegate,\n            Myfirst[v10].m_targetGroupID,\n            Myfirst[v10].m_activateGroup,\n            (const std::vector<int> *)v18,\n            Myfirst[v10].m_triggerUniqueID,\n            Myfirst[v10].m_controlID);\n          sub_14005E430((__int64)v18);\n        }\n        else\n        {\n          m_targetGroupID = Myfirst[v10].m_targetGroupID;\n          v12 = m_targetGroupID;\n          if ( m_targetGroupID < 0 )\n            v12 = 0;\n          if ( v12 <= 9999 )\n          {\n            if ( m_targetGroupID < 0 )\n              m_targetGroupID = 0;\n          }\n          else\n          {\n            m_targetGroupID = 9999;\n          }\n          v19 = m_targetGroupID;\n          v13 = &a1->m_unkVector438._Myvec._Mypair._Myval2._Myfirst[(unsigned __int64)m_targetGroupID >> 5];\n          v14 = m_targetGroupID & 0x1F;\n          v15 = *v13;\n          p_m_unkMap460 = &a1->m_unkMap460;\n          if ( Myfirst[v10].m_activateGroup )\n          {\n            *v13 = v15 | (1 << v14);\n            sub_14005D780(p_m_unkMap460, (unsigned __int8 *)&v19);\n          }\n          else\n          {\n            *v13 = v15 & ~(1 << v14);\n            sub_140060D70((__int64)p_m_unkMap460, (__int64)v17, (unsigned __int8 *)&v19);\n          }\n        }\n      }\n      ++v8;\n      ++v10;\n      Myfirst = a1->m_unkVector230._Mypair._Myval2._Myfirst;\n    }\n    while ( v8 < (unsigned __int64)(a1->m_unkVector230._Mypair._Myval2._Mylast - Myfirst) );\n  }\n}", "assembly": "; \n; GJEffectManager::handleObjectCollision from 0x14025c540 to 0x14025c6fd (445 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::objectsCollided @ 0x140219275\n; > GJEffectManager::postCollisionCheck @ 0x14025c35d\n; > <???> @ 0x1406cfdf8\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, 0x14025c540\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14025c545\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14025c54a\npush    rdi                                                            ; +0xf, 0x14025c54f\npush    r12                                                            ; +0x10, 0x14025c550\npush    r13                                                            ; +0x12, 0x14025c552\npush    r14                                                            ; +0x14, 0x14025c554\npush    r15                                                            ; +0x16, 0x14025c556\nsub     rsp, 60h                                                       ; +0x18, 0x14025c558\nmov     r14d, r9d                                                      ; +0x1c, 0x14025c55c\nmov     r15d, r8d                                                      ; +0x1f, 0x14025c55f\nmovzx   r12d, dl                                                       ; +0x22, 0x14025c562\nmov     rbx, rcx                                                       ; +0x26, 0x14025c566\nxor     r13d, r13d                                                     ; +0x29, 0x14025c569\nmov     ebp, r13d                                                      ; +0x2c, 0x14025c56c\nmov     rdi, [rcx+248h]                                                ; +0x2f, 0x14025c56f\nmov     r10, [rcx+250h]                                                ; +0x36, 0x14025c576\nsub     r10, rdi                                                       ; +0x3d, 0x14025c57d\nmov     rax, 4924924924924925h                                         ; +0x40, 0x14025c580\nimul    r10                                                            ; +0x4a, 0x14025c58a\nsar     rdx, 4                                                         ; +0x4d, 0x14025c58d\nmov     rax, rdx                                                       ; +0x51, 0x14025c591\nshr     rax, 3Fh                                                       ; +0x54, 0x14025c594\nadd     rdx, rax                                                       ; +0x58, 0x14025c598\njz      loc_14025C6DF                                                  ; +0x5b, 0x14025c59b\nmov     esi, r13d                                                      ; +0x61, 0x14025c5a1\ncmp     byte ptr [rsi+rdi], 0                                          ; +0x64, 0x14025c5a4\njnz     loc_14025C6A1                                                  ; +0x68, 0x14025c5a8\ncmp     [rsi+rdi+10h], r12d                                            ; +0x6e, 0x14025c5ae\njz      loc_14025C6A1                                                  ; +0x73, 0x14025c5b3\ncmp     [rsi+rdi+4], r15d                                              ; +0x79, 0x14025c5b9\njnz     loc_14025C6A1                                                  ; +0x7e, 0x14025c5be\ncmp     [rsi+rdi+8], r14d                                              ; +0x84, 0x14025c5c4\njnz     loc_14025C6A1                                                  ; +0x89, 0x14025c5c9\ncmp     qword ptr [rbx+140h], 0                                        ; +0x8f, 0x14025c5cf\njz      short loc_14025C624                                            ; +0x97, 0x14025c5d7\nlea     rdx, [rdi+20h]                                                 ; +0x99, 0x14025c5d9\nadd     rdx, rsi                                                       ; +0x9d, 0x14025c5dd\nlea     rcx, [rsp+88h+var_48]                                          ; +0xa0, 0x14025c5e0\ncall    sub_14024B270                                                  ; +0xa5, 0x14025c5e5\nnop                                                                    ; +0xaa, 0x14025c5ea\nmov     rcx, [rbx+140h]                                                ; +0xab, 0x14025c5eb\nmov     r10, [rcx]                                                     ; +0xb2, 0x14025c5f2\nmov     eax, [rsi+rdi+1Ch]                                             ; +0xb5, 0x14025c5f5\nmov     [rsp+88h+var_60], eax                                          ; +0xb9, 0x14025c5f9\nmov     eax, [rsi+rdi+18h]                                             ; +0xbd, 0x14025c5fd\nmov     [rsp+88h+var_68], eax                                          ; +0xc1, 0x14025c601\nlea     r9, [rsp+88h+var_48]                                           ; +0xc5, 0x14025c605\nmovzx   r8d, byte ptr [rsi+rdi+14h]                                    ; +0xca, 0x14025c60a\nmov     edx, [rsi+rdi+0Ch]                                             ; +0xd0, 0x14025c610\ncall    qword ptr [r10]                                                ; +0xd4, 0x14025c614\nnop                                                                    ; +0xd7, 0x14025c617\nlea     rcx, [rsp+88h+var_48]                                          ; +0xd8, 0x14025c618\ncall    sub_14005E430                                                  ; +0xdd, 0x14025c61d\njmp     short loc_14025C6A1                                            ; +0xe2, 0x14025c622\nmov     ecx, [rsi+rdi+0Ch]                                             ; +0xe4, 0x14025c624\nmov     eax, ecx                                                       ; +0xe8, 0x14025c628\ntest    ecx, ecx                                                       ; +0xea, 0x14025c62a\ncmovs   eax, r13d                                                      ; +0xec, 0x14025c62c\ncmp     eax, 270Fh                                                     ; +0xf0, 0x14025c630\njle     short loc_14025C63E                                            ; +0xf5, 0x14025c635\nmov     ecx, 270Fh                                                     ; +0xf7, 0x14025c637\njmp     short loc_14025C644                                            ; +0xfc, 0x14025c63c\ntest    ecx, ecx                                                       ; +0xfe, 0x14025c63e\ncmovs   ecx, r13d                                                      ; +0x100, 0x14025c640\nmov     [rsp+88h+arg_0], ecx                                           ; +0x104, 0x14025c644\nmovsxd  rdx, ecx                                                       ; +0x10b, 0x14025c64b\nmov     rcx, rdx                                                       ; +0x10e, 0x14025c64e\nshr     rcx, 5                                                         ; +0x111, 0x14025c651\nmov     rax, [rbx+4F8h]                                                ; +0x115, 0x14025c655\nlea     r8, [rax+rcx*4]                                                ; +0x11c, 0x14025c65c\nand     edx, 1Fh                                                       ; +0x120, 0x14025c660\nmov     eax, [r8]                                                      ; +0x123, 0x14025c663\nlea     rcx, [rbx+518h]                                                ; +0x126, 0x14025c666\ncmp     byte ptr [rsi+rdi+14h], 0                                      ; +0x12d, 0x14025c66d\njz      short loc_14025C689                                            ; +0x132, 0x14025c672\nbts     eax, edx                                                       ; +0x134, 0x14025c674\nmov     [r8], eax                                                      ; +0x137, 0x14025c677\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x13a, 0x14025c67a\ncall    sub_14005D780                                                  ; +0x142, 0x14025c682\njmp     short loc_14025C6A1                                            ; +0x147, 0x14025c687\nbtr     eax, edx                                                       ; +0x149, 0x14025c689\nmov     [r8], eax                                                      ; +0x14c, 0x14025c68c\nlea     r8, [rsp+88h+arg_0]                                            ; +0x14f, 0x14025c68f\nlea     rdx, [rsp+88h+var_58]                                          ; +0x157, 0x14025c697\ncall    sub_140060D70                                                  ; +0x15c, 0x14025c69c\ninc     ebp                                                            ; +0x161, 0x14025c6a1\nadd     rsi, 38h ; '8'                                                 ; +0x163, 0x14025c6a3\nmov     rdi, [rbx+248h]                                                ; +0x167, 0x14025c6a7\nmov     rcx, [rbx+250h]                                                ; +0x16e, 0x14025c6ae\nsub     rcx, rdi                                                       ; +0x175, 0x14025c6b5\nmov     rax, 4924924924924925h                                         ; +0x178, 0x14025c6b8\nimul    rcx                                                            ; +0x182, 0x14025c6c2\nsar     rdx, 4                                                         ; +0x185, 0x14025c6c5\nmov     rax, rdx                                                       ; +0x189, 0x14025c6c9\nshr     rax, 3Fh                                                       ; +0x18c, 0x14025c6cc\nadd     rdx, rax                                                       ; +0x190, 0x14025c6d0\nmovsxd  rax, ebp                                                       ; +0x193, 0x14025c6d3\ncmp     rax, rdx                                                       ; +0x196, 0x14025c6d6\njb      loc_14025C5A4                                                  ; +0x199, 0x14025c6d9\nlea     r11, [rsp+88h+var_28]                                          ; +0x19f, 0x14025c6df\nmov     rbx, [r11+38h]                                                 ; +0x1a4, 0x14025c6e4\nmov     rbp, [r11+40h]                                                 ; +0x1a8, 0x14025c6e8\nmov     rsi, [r11+48h]                                                 ; +0x1ac, 0x14025c6ec\nmov     rsp, r11                                                       ; +0x1b0, 0x14025c6f0\npop     r15                                                            ; +0x1b3, 0x14025c6f3\npop     r14                                                            ; +0x1b5, 0x14025c6f5\npop     r13                                                            ; +0x1b7, 0x14025c6f7\npop     r12                                                            ; +0x1b9, 0x14025c6f9\npop     rdi                                                            ; +0x1bb, 0x14025c6fb\nretn                                                                   ; +0x1bc, 0x14025c6fc", "xrefs": ["GJBaseGameLayer::objectsCollided @ 0x140219275", "GJEffectManager::postCollisionCheck @ 0x14025c35d", "<???> @ 0x1406cfdf8"], "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"}