{"type": "func", "start": 4298021824, "end": 4298022006, "name": "GJEffectManager::runDeathTrigger", "pseudocode": "// \n// GJEffectManager::runDeathTrigger from 0x1002e9bc0 to 0x1002e9c76 (182 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x1001ba53a\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 __fastcall GJEffectManager::runDeathTrigger(\n        GJEffectManager *a1,\n        int a2,\n        bool a3,\n        std::vector<int> *const a4,\n        int a5,\n        int a6)\n{\n  std::__vector_base<ToggleTriggerAction>::pointer end; // r14\n  ToggleTriggerAction *v7; // r14\n  int v8; // [rsp+0h] [rbp-30h] BYREF\n  int v9; // [rsp+4h] [rbp-2Ch] BYREF\n  int v10; // [rsp+8h] [rbp-28h] BYREF\n  bool v11[33]; // [rsp+Fh] [rbp-21h] BYREF\n\n  v8 = a2;\n  v11[0] = a3;\n  v9 = a5;\n  v10 = a6;\n  end = a1->m_unkVector248.__end_;\n  if ( end >= a1->m_unkVector248.__end_cap_.__value_ )\n  {\n    v7 = (ToggleTriggerAction *)((__int64 (__fastcall *)(std::vector<ToggleTriggerAction> *, int *, bool *, std::vector<int> *const, int *, int *))sub_1002F5020)(\n                                  &a1->m_unkVector248,\n                                  &v8,\n                                  v11,\n                                  a4,\n                                  &v9,\n                                  &v10);\n  }\n  else\n  {\n    end->m_disabled = 0;\n    *(_OWORD *)&end->m_remapKeys.__begin_ = 0;\n    end->m_remapKeys.__end_cap_.__value_ = nullptr;\n    end->m_targetGroupID = a2;\n    end->m_activateGroup = a3;\n    end->m_triggerUniqueID = a5;\n    end->m_controlID = a6;\n    if ( &end->m_remapKeys != a4 )\n      sub_1000C51C0((char **)&end->m_remapKeys, (char *)a4->__begin_, (__int64)a4->__end_, a4->__end_ - a4->__begin_);\n    v7 = end + 1;\n    a1->m_unkVector248.__end_ = v7;\n  }\n  a1->m_unkVector248.__end_ = v7;\n}", "assembly": "; \n; GJEffectManager::runDeathTrigger from 0x1002e9bc0 to 0x1002e9c76 (182 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x1001ba53a\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    rbp                                                            ; +0x0, 0x1002e9bc0\nmov     rbp, rsp                                                       ; +0x1, 0x1002e9bc1\npush    r15                                                            ; +0x4, 0x1002e9bc4\npush    r14                                                            ; +0x6, 0x1002e9bc6\npush    r12                                                            ; +0x8, 0x1002e9bc8\npush    rbx                                                            ; +0xa, 0x1002e9bca\nsub     rsp, 10h                                                       ; +0xb, 0x1002e9bcb\nmov     rbx, rdi                                                       ; +0xf, 0x1002e9bcf\nmov     [rbp+var_30], esi                                              ; +0x12, 0x1002e9bd2\nmov     [rbp+var_21], dl                                               ; +0x15, 0x1002e9bd5\nmov     [rbp+var_2C], r8d                                              ; +0x18, 0x1002e9bd8\nmov     [rbp+var_28], r9d                                              ; +0x1c, 0x1002e9bdc\nmov     r14, [rdi+220h]                                                ; +0x20, 0x1002e9be0\ncmp     r14, [rdi+228h]                                                ; +0x27, 0x1002e9be7\njnb     short loc_1002E9C43                                            ; +0x2e, 0x1002e9bee\nmov     byte ptr [r14], 0                                              ; +0x30, 0x1002e9bf0\nlea     r15, [r14+18h]                                                 ; +0x34, 0x1002e9bf4\nxorps   xmm0, xmm0                                                     ; +0x38, 0x1002e9bf8\nmovups  xmmword ptr [r14+18h], xmm0                                    ; +0x3b, 0x1002e9bfb\nmov     qword ptr [r14+28h], 0                                         ; +0x40, 0x1002e9c00\nmov     [r14+4], esi                                                   ; +0x48, 0x1002e9c08\nmov     [r14+8], dl                                                    ; +0x4c, 0x1002e9c0c\nmov     [r14+0Ch], r8d                                                 ; +0x50, 0x1002e9c10\nmov     [r14+10h], r9d                                                 ; +0x54, 0x1002e9c14\ncmp     r15, rcx                                                       ; +0x58, 0x1002e9c18\njz      short loc_1002E9C36                                            ; +0x5b, 0x1002e9c1b\nmov     rsi, [rcx]                                                     ; +0x5d, 0x1002e9c1d\nmov     rdx, [rcx+8]                                                   ; +0x60, 0x1002e9c20\nmov     rcx, rdx                                                       ; +0x64, 0x1002e9c24\nsub     rcx, rsi                                                       ; +0x67, 0x1002e9c27\nsar     rcx, 2                                                         ; +0x6a, 0x1002e9c2a\nmov     rdi, r15                                                       ; +0x6e, 0x1002e9c2e\ncall    sub_1000C51C0                                                  ; +0x71, 0x1002e9c31\nadd     r14, 30h ; '0'                                                 ; +0x76, 0x1002e9c36\nmov     [rbx+220h], r14                                                ; +0x7a, 0x1002e9c3a\njmp     short loc_1002E9C62                                            ; +0x81, 0x1002e9c41\nlea     rdi, [rbx+218h]                                                ; +0x83, 0x1002e9c43\nlea     rsi, [rbp+var_30]                                              ; +0x8a, 0x1002e9c4a\nlea     rdx, [rbp+var_21]                                              ; +0x8e, 0x1002e9c4e\nlea     r8, [rbp+var_2C]                                               ; +0x92, 0x1002e9c52\nlea     r9, [rbp+var_28]                                               ; +0x96, 0x1002e9c56\ncall    sub_1002F5020                                                  ; +0x9a, 0x1002e9c5a\nmov     r14, rax                                                       ; +0x9f, 0x1002e9c5f\nmov     [rbx+220h], r14                                                ; +0xa2, 0x1002e9c62\nadd     rsp, 10h                                                       ; +0xa9, 0x1002e9c69\npop     rbx                                                            ; +0xad, 0x1002e9c6d\npop     r12                                                            ; +0xae, 0x1002e9c6e\npop     r14                                                            ; +0xb0, 0x1002e9c70\npop     r15                                                            ; +0xb2, 0x1002e9c72\npop     rbp                                                            ; +0xb4, 0x1002e9c74\nretn                                                                   ; +0xb5, 0x1002e9c75", "xrefs": ["EffectGameObject::triggerObject @ 0x1001ba53a"], "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"}