{"type": "func", "start": 4297896432, "end": 4297896714, "name": "GJEffectManager::registerCollisionTrigger", "pseudocode": "// \n// GJEffectManager::registerCollisionTrigger from 0x1002cb1f0 to 0x1002cb30a (282 bytes)\n// \n// 3 xrefs:\n// > EffectGameObject::triggerObject @ 0x10019aadf\n// > EffectGameObject::triggerObject @ 0x10019ab22\n// > EffectGameObject::triggerObject @ 0x10019ac21\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 12:28:10 +0000\n// \n\n__int64 __fastcall GJEffectManager::registerCollisionTrigger(\n        __int64 a1,\n        int a2,\n        signed int a3,\n        signed int a4,\n        unsigned __int8 a5,\n        char a6,\n        __int64 a7,\n        int a8,\n        int a9)\n{\n  int v10; // edi\n  int v11; // r10d\n  unsigned __int64 v12; // r14\n  int v13; // r12d\n  int v14; // r13d\n  __int64 result; // rax\n  __int64 v16; // r14\n  int v17; // [rsp+18h] [rbp-38h] BYREF\n  int v18; // [rsp+1Ch] [rbp-34h] BYREF\n  int v19; // [rsp+20h] [rbp-30h] BYREF\n  unsigned __int8 v20; // [rsp+26h] [rbp-2Ah] BYREF\n  char v21; // [rsp+27h] [rbp-29h] BYREF\n\n  v10 = a9;\n  v11 = a8;\n  v17 = a2;\n  v18 = a3;\n  v19 = a4;\n  v20 = a5;\n  v21 = a6;\n  v12 = *(_QWORD *)(a1 + 520);\n  if ( v12 >= *(_QWORD *)(a1 + 528) )\n  {\n    result = sub_1002DB060(\n               (int)a1 + 512,\n               (unsigned int)&v17,\n               (unsigned int)&v18,\n               (unsigned int)&v19,\n               (unsigned int)&v21,\n               (unsigned int)&v20,\n               a7,\n               (__int64)&a8,\n               (__int64)&a9);\n    v16 = result;\n  }\n  else\n  {\n    *(_BYTE *)v12 = 0;\n    *(_QWORD *)(v12 + 4) = 0;\n    *(_OWORD *)(v12 + 32) = 0;\n    *(_QWORD *)(v12 + 48) = 0;\n    *(_DWORD *)(v12 + 12) = a2;\n    *(_DWORD *)(v12 + 24) = v11;\n    *(_DWORD *)(v12 + 28) = v10;\n    *(_BYTE *)(v12 + 20) = a6;\n    *(_DWORD *)(v12 + 16) = a5;\n    if ( v12 + 32 != a7 )\n    {\n      v13 = a3;\n      v14 = a4;\n      sub_100094950(\n        (char **)(v12 + 32),\n        *(char **)a7,\n        *(_QWORD *)(a7 + 8),\n        (__int64)(*(_QWORD *)(a7 + 8) - *(_QWORD *)a7) >> 2);\n      a3 = v13;\n      a4 = v14;\n    }\n    result = (unsigned int)a4;\n    if ( a3 > a4 )\n      result = (unsigned int)a3;\n    if ( a3 < a4 )\n      a4 = a3;\n    *(_DWORD *)(v12 + 4) = result;\n    *(_DWORD *)(v12 + 8) = a4;\n    v16 = v12 + 56;\n    *(_QWORD *)(a1 + 520) = v16;\n  }\n  *(_QWORD *)(a1 + 520) = v16;\n  return result;\n}", "assembly": "; \n; GJEffectManager::registerCollisionTrigger from 0x1002cb1f0 to 0x1002cb30a (282 bytes)\n; \n; 3 xrefs:\n; > EffectGameObject::triggerObject @ 0x10019aadf\n; > EffectGameObject::triggerObject @ 0x10019ab22\n; > EffectGameObject::triggerObject @ 0x10019ac21\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 12:28:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002cb1f0\nmov     rbp, rsp                                                       ; +0x1, 0x1002cb1f1\npush    r15                                                            ; +0x4, 0x1002cb1f4\npush    r14                                                            ; +0x6, 0x1002cb1f6\npush    r13                                                            ; +0x8, 0x1002cb1f8\npush    r12                                                            ; +0xa, 0x1002cb1fa\npush    rbx                                                            ; +0xc, 0x1002cb1fc\nsub     rsp, 28h                                                       ; +0xd, 0x1002cb1fd\nmov     rbx, rdi                                                       ; +0x11, 0x1002cb201\nmov     edi, [rbp+arg_10]                                              ; +0x14, 0x1002cb204\nmov     r10d, [rbp+arg_8]                                              ; +0x17, 0x1002cb207\nmov     rax, [rbp+arg_0]                                               ; +0x1b, 0x1002cb20b\nmov     [rbp+var_38], esi                                              ; +0x1f, 0x1002cb20f\nmov     [rbp+var_34], edx                                              ; +0x22, 0x1002cb212\nmov     [rbp+var_30], ecx                                              ; +0x25, 0x1002cb215\nmov     [rbp+var_2A], r8b                                              ; +0x28, 0x1002cb218\nmov     [rbp+var_29], r9b                                              ; +0x2c, 0x1002cb21c\nmov     r14, [rbx+208h]                                                ; +0x30, 0x1002cb220\ncmp     r14, [rbx+210h]                                                ; +0x37, 0x1002cb227\njnb     loc_1002CB2BB                                                  ; +0x3e, 0x1002cb22e\nmovzx   r8d, r8b                                                       ; +0x44, 0x1002cb234\nmov     byte ptr [r14], 0                                              ; +0x48, 0x1002cb238\nmov     qword ptr [r14+4], 0                                           ; +0x4c, 0x1002cb23c\nlea     r15, [r14+20h]                                                 ; +0x54, 0x1002cb244\nxorps   xmm0, xmm0                                                     ; +0x58, 0x1002cb248\nmovups  xmmword ptr [r14+20h], xmm0                                    ; +0x5b, 0x1002cb24b\nmov     qword ptr [r14+30h], 0                                         ; +0x60, 0x1002cb250\nmov     [r14+0Ch], esi                                                 ; +0x68, 0x1002cb258\nmov     [r14+18h], r10d                                                ; +0x6c, 0x1002cb25c\nmov     [r14+1Ch], edi                                                 ; +0x70, 0x1002cb260\nmov     [r14+14h], r9b                                                 ; +0x74, 0x1002cb264\nmov     [r14+10h], r8d                                                 ; +0x78, 0x1002cb268\ncmp     r15, rax                                                       ; +0x7c, 0x1002cb26c\njz      short loc_1002CB29C                                            ; +0x7f, 0x1002cb26f\nmov     rsi, [rax]                                                     ; +0x81, 0x1002cb271\nmov     rax, [rax+8]                                                   ; +0x84, 0x1002cb274\nmov     r8, rax                                                        ; +0x88, 0x1002cb278\nsub     r8, rsi                                                        ; +0x8b, 0x1002cb27b\nsar     r8, 2                                                          ; +0x8e, 0x1002cb27e\nmov     rdi, r15                                                       ; +0x92, 0x1002cb282\nmov     r12d, edx                                                      ; +0x95, 0x1002cb285\nmov     rdx, rax                                                       ; +0x98, 0x1002cb288\nmov     r13d, ecx                                                      ; +0x9b, 0x1002cb28b\nmov     rcx, r8                                                        ; +0x9e, 0x1002cb28e\ncall    sub_100094950                                                  ; +0xa1, 0x1002cb291\nmov     edx, r12d                                                      ; +0xa6, 0x1002cb296\nmov     ecx, r13d                                                      ; +0xa9, 0x1002cb299\ncmp     edx, ecx                                                       ; +0xac, 0x1002cb29c\nmov     eax, ecx                                                       ; +0xae, 0x1002cb29e\ncmovg   eax, edx                                                       ; +0xb0, 0x1002cb2a0\ncmovl   ecx, edx                                                       ; +0xb3, 0x1002cb2a3\nmov     [r14+4], eax                                                   ; +0xb6, 0x1002cb2a6\nmov     [r14+8], ecx                                                   ; +0xba, 0x1002cb2aa\nadd     r14, 38h ; '8'                                                 ; +0xbe, 0x1002cb2ae\nmov     [rbx+208h], r14                                                ; +0xc2, 0x1002cb2b2\njmp     short loc_1002CB2F4                                            ; +0xc9, 0x1002cb2b9\nlea     rdi, [rbx+200h]                                                ; +0xcb, 0x1002cb2bb\nlea     rcx, [rbp+arg_10]                                              ; +0xd2, 0x1002cb2c2\nmov     [rsp+50h+var_40], rcx                                          ; +0xd6, 0x1002cb2c6\nlea     rcx, [rbp+arg_8]                                               ; +0xdb, 0x1002cb2cb\nmov     [rsp+50h+var_48], rcx                                          ; +0xdf, 0x1002cb2cf\nmov     [rsp+50h+var_50], rax                                          ; +0xe4, 0x1002cb2d4\nlea     rsi, [rbp+var_38]                                              ; +0xe8, 0x1002cb2d8\nlea     rdx, [rbp+var_34]                                              ; +0xec, 0x1002cb2dc\nlea     rcx, [rbp+var_30]                                              ; +0xf0, 0x1002cb2e0\nlea     r8, [rbp+var_29]                                               ; +0xf4, 0x1002cb2e4\nlea     r9, [rbp+var_2A]                                               ; +0xf8, 0x1002cb2e8\ncall    sub_1002DB060                                                  ; +0xfc, 0x1002cb2ec\nmov     r14, rax                                                       ; +0x101, 0x1002cb2f1\nmov     [rbx+208h], r14                                                ; +0x104, 0x1002cb2f4\nadd     rsp, 28h                                                       ; +0x10b, 0x1002cb2fb\npop     rbx                                                            ; +0x10f, 0x1002cb2ff\npop     r12                                                            ; +0x110, 0x1002cb300\npop     r13                                                            ; +0x112, 0x1002cb302\npop     r14                                                            ; +0x114, 0x1002cb304\npop     r15                                                            ; +0x116, 0x1002cb306\npop     rbp                                                            ; +0x118, 0x1002cb308\nretn                                                                   ; +0x119, 0x1002cb309", "xrefs": ["EffectGameObject::triggerObject @ 0x10019aadf", "EffectGameObject::triggerObject @ 0x10019ab22", "EffectGameObject::triggerObject @ 0x10019ac21"], "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"}