{"type": "func", "start": 4295034008, "end": 4295034164, "name": "GJEffectManager::registerCollisionTrigger", "pseudocode": "// \n// GJEffectManager::registerCollisionTrigger from 0x100010498 to 0x100010534 (156 bytes)\n// \n// 3 xrefs:\n// > EffectGameObject::triggerObject @ 0x1003860c0\n// > EffectGameObject::triggerObject @ 0x1003863d4\n// > EffectGameObject::triggerObject @ 0x10038645c\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// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJEffectManager::registerCollisionTrigger(\n        GJEffectManager *a1,\n        int a2,\n        int a3,\n        int a4,\n        bool a5,\n        bool a6,\n        std::vector<int> *const a7,\n        int a8,\n        int a9)\n{\n  std::__vector_base<CollisionTriggerAction>::pointer end; // x20\n  CollisionTriggerAction *v11; // x0\n  int v12; // [xsp+Ch] [xbp-24h] BYREF\n  bool v13; // [xsp+12h] [xbp-1Eh] BYREF\n  bool v14; // [xsp+13h] [xbp-1Dh] BYREF\n  int v15; // [xsp+14h] [xbp-1Ch] BYREF\n  int v16; // [xsp+18h] [xbp-18h] BYREF\n  int v17; // [xsp+1Ch] [xbp-14h] BYREF\n\n  v17 = a2;\n  v15 = a4;\n  v16 = a3;\n  v14 = a5;\n  v13 = a6;\n  v12 = a8;\n  end = a1->m_unkVector230.__end_;\n  if ( end >= a1->m_unkVector230.__end_cap_.__value_ )\n  {\n    v11 = (CollisionTriggerAction *)sub_100018F6C(&a1->m_unkVector230, &v17, &v16, &v15, &v13, &v14, a7, &v12, &a9);\n  }\n  else\n  {\n    sub_100019104(end, *(_QWORD *)&a2, *(_QWORD *)&a3, *(_QWORD *)&a4, a6, a5, a7);\n    v11 = end + 1;\n    a1->m_unkVector230.__end_ = end + 1;\n  }\n  a1->m_unkVector230.__end_ = v11;\n}", "assembly": "; \n; GJEffectManager::registerCollisionTrigger from 0x100010498 to 0x100010534 (156 bytes)\n; \n; 3 xrefs:\n; > EffectGameObject::triggerObject @ 0x1003860c0\n; > EffectGameObject::triggerObject @ 0x1003863d4\n; > EffectGameObject::triggerObject @ 0x10038645c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x100010498\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10001049c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000104a0\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000104a4\nMOV             X19, X0                                                ; +0x10, 0x1000104a8\nLDR             W9, [X29,#arg_0]                                       ; +0x14, 0x1000104ac\nSTUR            W1, [X29,#var_14]                                      ; +0x18, 0x1000104b0\nSTP             W3, W2, [SP,#0x30+var_1C]                              ; +0x1c, 0x1000104b4\nSTRB            W4, [SP,#0x30+var_1D]                                  ; +0x20, 0x1000104b8\nSTRB            W5, [SP,#0x30+var_1E]                                  ; +0x24, 0x1000104bc\nSTR             W7, [SP,#0x30+var_24]                                  ; +0x28, 0x1000104c0\nLDR             X20, [X0,#0x208]                                       ; +0x2c, 0x1000104c4\nLDR             X10, [X0,#0x210]                                       ; +0x30, 0x1000104c8\nCMP             X20, X10                                               ; +0x34, 0x1000104cc\nB.CS            loc_1000104F8                                          ; +0x38, 0x1000104d0\nMOV             X8, X4                                                 ; +0x3c, 0x1000104d4\nSTR             W9, [SP,#0x30+var_30]                                  ; +0x40, 0x1000104d8\nMOV             X0, X20                                                ; +0x44, 0x1000104dc\nMOV             X4, X5                                                 ; +0x48, 0x1000104e0\nMOV             X5, X8                                                 ; +0x4c, 0x1000104e4\nBL              sub_100019104                                          ; +0x50, 0x1000104e8\nADD             X0, X20, #0x38 ; '8'                                   ; +0x54, 0x1000104ec\nSTR             X0, [X19,#0x208]                                       ; +0x58, 0x1000104f0\nB               loc_100010520                                          ; +0x5c, 0x1000104f4\nADD             X8, X29, #arg_0                                        ; +0x60, 0x1000104f8\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x64, 0x1000104fc\nADD             X0, X19, #0x200                                        ; +0x68, 0x100010500\nSUB             X1, X29, #-var_14                                      ; +0x6c, 0x100010504\nADD             X2, SP, #0x30+var_18                                   ; +0x70, 0x100010508\nADD             X3, SP, #0x30+var_1C                                   ; +0x74, 0x10001050c\nADD             X4, SP, #0x30+var_1E                                   ; +0x78, 0x100010510\nADD             X5, SP, #0x30+var_1D                                   ; +0x7c, 0x100010514\nADD             X7, SP, #0x30+var_24                                   ; +0x80, 0x100010518\nBL              sub_100018F6C                                          ; +0x84, 0x10001051c\nSTR             X0, [X19,#0x208]                                       ; +0x88, 0x100010520\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x100010524\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x100010528\nADD             SP, SP, #0x40 ; '@'                                    ; +0x94, 0x10001052c\nRET                                                                    ; +0x98, 0x100010530", "xrefs": ["EffectGameObject::triggerObject @ 0x1003860c0", "EffectGameObject::triggerObject @ 0x1003863d4", "EffectGameObject::triggerObject @ 0x10038645c"], "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"}