{"type": "func", "start": 5372274448, "end": 5372274713, "name": "GJEffectManager::registerCollisionTrigger", "pseudocode": "// \n// GJEffectManager::registerCollisionTrigger from 0x140366710 to 0x140366819 (265 bytes)\n// \n// 4 xrefs:\n// > EffectGameObject::triggerObject @ 0x140648ade\n// > EffectGameObject::triggerObject @ 0x140648bb0\n// > EffectGameObject::triggerObject @ 0x140648c71\n// > <???> @ 0x140921764\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:55 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJEffectManager::registerCollisionTrigger(\n        __int64 a1,\n        int a2,\n        unsigned int a3,\n        unsigned int a4,\n        unsigned __int8 a5,\n        char a6,\n        char **a7,\n        int a8,\n        int a9)\n{\n  unsigned int v10; // esi\n  __int64 v11; // rdi\n  __int64 v12; // rbx\n  __int64 result; // rax\n  int v14; // [rsp+88h] [rbp+10h] BYREF\n  unsigned int v15; // [rsp+90h] [rbp+18h] BYREF\n  unsigned int v16; // [rsp+98h] [rbp+20h] BYREF\n\n  v16 = a4;\n  v15 = a3;\n  v14 = a2;\n  v10 = a3;\n  v11 = a1 + 584;\n  v12 = *(_QWORD *)(a1 + 592);\n  if ( v12 == *(_QWORD *)(a1 + 600) )\n    return sub_1403741E0(\n             (int)a1 + 584,\n             v12,\n             (unsigned int)&v14,\n             (unsigned int)&v15,\n             (__int64)&v16,\n             (__int64)&a6,\n             (__int64)&a5,\n             (__int64)a7,\n             (__int64)&a8,\n             (__int64)&a9);\n  *(_BYTE *)v12 = 0;\n  *(_QWORD *)(v12 + 4) = 0;\n  *(_QWORD *)(v12 + 32) = 0;\n  *(_QWORD *)(v12 + 40) = 0;\n  *(_QWORD *)(v12 + 48) = 0;\n  *(_DWORD *)(v12 + 12) = a2;\n  *(_DWORD *)(v12 + 24) = a8;\n  *(_DWORD *)(v12 + 28) = a9;\n  *(_BYTE *)(v12 + 20) = a6;\n  *(_DWORD *)(v12 + 16) = a5;\n  sub_140099FC0((void **)(v12 + 32), a7);\n  result = a4;\n  if ( (int)v10 < (int)a4 )\n  {\n    result = v10;\n    v10 = a4;\n  }\n  *(_DWORD *)(v12 + 4) = v10;\n  *(_DWORD *)(v12 + 8) = result;\n  *(_QWORD *)(v11 + 8) += 56LL;\n  return result;\n}", "assembly": "; \n; GJEffectManager::registerCollisionTrigger from 0x140366710 to 0x140366819 (265 bytes)\n; \n; 4 xrefs:\n; > EffectGameObject::triggerObject @ 0x140648ade\n; > EffectGameObject::triggerObject @ 0x140648bb0\n; > EffectGameObject::triggerObject @ 0x140648c71\n; > <???> @ 0x140921764\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:55 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x140366710\nmov     [r11+20h], r9d                                                 ; +0x3, 0x140366713\nmov     [r11+18h], r8d                                                 ; +0x7, 0x140366717\nmov     [rsp+arg_8], edx                                               ; +0xb, 0x14036671b\npush    rbx                                                            ; +0xf, 0x14036671f\npush    rbp                                                            ; +0x10, 0x140366720\npush    rsi                                                            ; +0x11, 0x140366721\npush    rdi                                                            ; +0x12, 0x140366722\nsub     rsp, 58h                                                       ; +0x13, 0x140366723\nmov     ebp, r9d                                                       ; +0x17, 0x140366727\nmov     esi, r8d                                                       ; +0x1a, 0x14036672a\nlea     rdi, [rcx+248h]                                                ; +0x1d, 0x14036672d\nmov     rbx, [rdi+8]                                                   ; +0x24, 0x140366734\ncmp     rbx, [rdi+10h]                                                 ; +0x28, 0x140366738\njz      short loc_1403667A7                                            ; +0x2c, 0x14036673c\nmov     [r11+8], rbx                                                   ; +0x2e, 0x14036673e\nmov     byte ptr [rbx], 0                                              ; +0x32, 0x140366742\nxor     eax, eax                                                       ; +0x35, 0x140366745\nmov     [rbx+4], rax                                                   ; +0x37, 0x140366747\nlea     rcx, [rbx+20h]                                                 ; +0x3b, 0x14036674b\nmov     [rcx], rax                                                     ; +0x3f, 0x14036674f\nmov     [rcx+8], rax                                                   ; +0x42, 0x140366752\nmov     [rcx+10h], rax                                                 ; +0x46, 0x140366756\nmov     [rbx+0Ch], edx                                                 ; +0x4a, 0x14036675a\nmov     eax, [r11+40h]                                                 ; +0x4d, 0x14036675d\nmov     [rbx+18h], eax                                                 ; +0x51, 0x140366761\nmov     eax, [r11+48h]                                                 ; +0x54, 0x140366764\nmov     [rbx+1Ch], eax                                                 ; +0x58, 0x140366768\nmovzx   eax, byte ptr [r11+30h]                                        ; +0x5b, 0x14036676b\nmov     [rbx+14h], al                                                  ; +0x60, 0x140366770\nmovzx   eax, byte ptr [r11+28h]                                        ; +0x63, 0x140366773\nmov     [rbx+10h], eax                                                 ; +0x68, 0x140366778\nmov     rdx, [rsp+78h+arg_30]                                          ; +0x6b, 0x14036677b\ncall    sub_140099FC0                                                  ; +0x73, 0x140366783\nnop                                                                    ; +0x78, 0x140366788\nmov     eax, ebp                                                       ; +0x79, 0x140366789\ncmp     esi, ebp                                                       ; +0x7b, 0x14036678b\ncmovl   eax, esi                                                       ; +0x7d, 0x14036678d\ncmovl   esi, ebp                                                       ; +0x80, 0x140366790\nmov     [rbx+4], esi                                                   ; +0x83, 0x140366793\nmov     [rbx+8], eax                                                   ; +0x86, 0x140366796\nadd     qword ptr [rdi+8], 38h ; '8'                                   ; +0x89, 0x140366799\nadd     rsp, 58h                                                       ; +0x8e, 0x14036679e\npop     rdi                                                            ; +0x92, 0x1403667a2\npop     rsi                                                            ; +0x93, 0x1403667a3\npop     rbp                                                            ; +0x94, 0x1403667a4\npop     rbx                                                            ; +0x95, 0x1403667a5\nretn                                                                   ; +0x96, 0x1403667a6\nlea     rax, [rsp+78h+arg_40]                                          ; +0x97, 0x1403667a7\nmov     [rsp+78h+var_30], rax                                          ; +0x9f, 0x1403667af\nlea     rax, [rsp+78h+arg_38]                                          ; +0xa4, 0x1403667b4\nmov     [rsp+78h+var_38], rax                                          ; +0xac, 0x1403667bc\nmov     rax, [rsp+78h+arg_30]                                          ; +0xb1, 0x1403667c1\nmov     [rsp+78h+var_40], rax                                          ; +0xb9, 0x1403667c9\nlea     rax, [rsp+78h+arg_20]                                          ; +0xbe, 0x1403667ce\nmov     [rsp+78h+var_48], rax                                          ; +0xc6, 0x1403667d6\nlea     rax, [rsp+78h+arg_28]                                          ; +0xcb, 0x1403667db\nmov     [rsp+78h+var_50], rax                                          ; +0xd3, 0x1403667e3\nlea     rax, [rsp+78h+arg_18]                                          ; +0xd8, 0x1403667e8\nmov     [rsp+78h+var_58], rax                                          ; +0xe0, 0x1403667f0\nlea     r9, [rsp+78h+arg_10]                                           ; +0xe5, 0x1403667f5\nlea     r8, [rsp+78h+arg_8]                                            ; +0xed, 0x1403667fd\nmov     rdx, rbx                                                       ; +0xf5, 0x140366805\nmov     rcx, rdi                                                       ; +0xf8, 0x140366808\ncall    sub_1403741E0                                                  ; +0xfb, 0x14036680b\nadd     rsp, 58h                                                       ; +0x100, 0x140366810\npop     rdi                                                            ; +0x104, 0x140366814\npop     rsi                                                            ; +0x105, 0x140366815\npop     rbp                                                            ; +0x106, 0x140366816\npop     rbx                                                            ; +0x107, 0x140366817\nretn                                                                   ; +0x108, 0x140366818", "xrefs": ["EffectGameObject::triggerObject @ 0x140648ade", "EffectGameObject::triggerObject @ 0x140648bb0", "EffectGameObject::triggerObject @ 0x140648c71", "<???> @ 0x140921764"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}