{"type": "func", "start": 4847918, "end": 4848034, "name": "GJEffectManager::runDeathTrigger", "pseudocode": "// \n// GJEffectManager::runDeathTrigger from 0x49f92e to 0x49f9a2 (116 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3ee112\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::runDeathTrigger(GJEffectManager *a1, int a2, bool a3, std::vector<int> *const a4, int a5, int a6)\n{\n  ToggleTriggerAction *m_finish; // r2\n  ToggleTriggerAction *m_reserveEnd; // r0\n  char v9; // r7\n  int v10; // r0\n  bool v11; // [sp+Bh] [bp-9h] BYREF\n  int v12; // [sp+Ch] [bp-8h] BYREF\n\n  v11 = a3;\n  m_finish = a1->m_unkVector248.m_finish;\n  m_reserveEnd = a1->m_unkVector248.m_reserveEnd;\n  v12 = a2;\n  if ( m_finish == m_reserveEnd )\n  {\n    std::vector<ToggleTriggerAction>::_M_emplace_back_aux<int &,bool &,std::vector const&<int,std::allocator<int>>,int &,int &>(\n      &a1->m_unkVector248.m_start,\n      &v12,\n      (char *)&v11,\n      (void **)&a4->m_start,\n      &a5,\n      &a6);\n  }\n  else\n  {\n    v9 = v11;\n    v10 = a6;\n    if ( m_finish )\n    {\n      m_finish->m_triggerUniqueID = a5;\n      m_finish->m_targetGroupID = a2;\n      m_finish->m_controlID = v10;\n      m_finish->m_disabled = 0;\n      m_finish->m_remapKeys.m_start = nullptr;\n      m_finish->m_remapKeys.m_finish = nullptr;\n      m_finish->m_remapKeys.m_reserveEnd = nullptr;\n      m_finish->m_activateGroup = v9;\n      std::vector<int>::operator=((void **)&m_finish->m_remapKeys.m_start, (void **)&a4->m_start);\n    }\n    ++a1->m_unkVector248.m_finish;\n  }\n}", "assembly": "; \n; GJEffectManager::runDeathTrigger from 0x49f92e to 0x49f9a2 (116 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3ee112\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            {R4-R7,LR}                                             ; +0x0, 0x49f92e\nSUB             SP, SP, #0x14                                          ; +0x2, 0x49f930\nMOV             R5, R0                                                 ; +0x4, 0x49f932\nMOV             R6, R3                                                 ; +0x6, 0x49f934\nSTRB.W          R2, [SP,#0x14+var_9]                                   ; +0x8, 0x49f936\nLDR.W           R2, [R0,#0x190]                                        ; +0xc, 0x49f93a\nLDR.W           R0, [R0,#0x194]                                        ; +0x10, 0x49f93e\nSTR             R1, [SP,#0x14+var_8]                                   ; +0x14, 0x49f942\nCMP             R2, R0                                                 ; +0x16, 0x49f944\nBEQ             loc_49F988                                             ; +0x18, 0x49f946\nLDRB.W          R7, [SP,#0x14+var_9]                                   ; +0x1a, 0x49f948\nLDR             R4, [SP,#0x14+arg_0]                                   ; +0x1e, 0x49f94c\nLDR             R0, [SP,#0x14+arg_4]                                   ; +0x20, 0x49f94e\nCBZ             R2, loc_49F97C                                         ; +0x22, 0x49f950\nSTR             R4, [R2,#0xC]                                          ; +0x24, 0x49f952\nADD.W           R4, R2, #0x14                                          ; +0x26, 0x49f954\nMOVS            R3, #0                                                 ; +0x2a, 0x49f958\nSTR             R1, [R2,#4]                                            ; +0x2c, 0x49f95a\nSTR             R0, [R2,#0x10]                                         ; +0x2e, 0x49f95c\nMOV             R1, R6                                                 ; +0x30, 0x49f95e\nSTRB            R3, [R2]                                               ; +0x32, 0x49f960\nMOV             R0, R4                                                 ; +0x34, 0x49f962\nSTR             R3, [R2,#0x14]                                         ; +0x36, 0x49f964\nSTR             R3, [R2,#0x18]                                         ; +0x38, 0x49f966\nSTR             R3, [R2,#0x1C]                                         ; +0x3a, 0x49f968\nSTRB            R7, [R2,#8]                                            ; +0x3c, 0x49f96a\nBL              _ZNSt6vectorIiSaIiEEaSERKS1_; std::vector<int>::operator=(std::vector<int> const&) ; +0x3e, 0x49f96c\nB               loc_49F97C                                             ; +0x42, 0x49f970\nMOV             R0, R4                                                 ; +0x44, 0x49f972\nBL              _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base() ; +0x46, 0x49f974\nBL              __cxa_end_cleanup                                      ; +0x4a, 0x49f978\nLDR.W           R3, [R5,#0x190]                                        ; +0x4e, 0x49f97c\nADDS            R3, #0x20 ; ' '                                        ; +0x52, 0x49f980\nSTR.W           R3, [R5,#0x190]                                        ; +0x54, 0x49f982\nB               loc_49F99E                                             ; +0x58, 0x49f986\nADD             R2, SP, #0x14+arg_0                                    ; +0x5a, 0x49f988\nADD.W           R0, R5, #0x18C                                         ; +0x5c, 0x49f98a\nSTR             R2, [SP,#0x14+var_14]                                  ; +0x60, 0x49f98e\nADD             R1, SP, #0x14+var_8                                    ; +0x62, 0x49f990\nADD             R2, SP, #0x14+arg_4                                    ; +0x64, 0x49f992\nSTR             R2, [SP,#0x14+var_10]                                  ; +0x66, 0x49f994\nADD.W           R2, SP, #0x14+var_9                                    ; +0x68, 0x49f996\nBL              _ZNSt6vectorI19ToggleTriggerActionSaIS0_EE19_M_emplace_back_auxIJRiRbRKS_IiSaIiEES4_S4_EEEvDpOT_; std::vector<ToggleTriggerAction>::_M_emplace_back_aux<int &,bool &,std::vector const&<int,std::allocator<int>>,int &,int &>(int &,bool &,std::vector const&<int,std::allocator<int>>,int &,int &) ; +0x6c, 0x49f99a\nADD             SP, SP, #0x14                                          ; +0x70, 0x49f99e\nPOP             {R4-R7,PC}                                             ; +0x72, 0x49f9a0", "xrefs": ["EffectGameObject::triggerObject @ 0x3ee112"], "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"}