{"type": "func", "start": 5372276128, "end": 5372276395, "name": "GJEffectManager::createFollowCommand", "pseudocode": "// \n// GJEffectManager::createFollowCommand from 0x140366da0 to 0x140366eab (267 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x140648360\n// > <???> @ 0x1409217ac\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__int64 __fastcall GJEffectManager::createFollowCommand(\n        __int64 a1,\n        float a2,\n        float a3,\n        float a4,\n        int a5,\n        int a6,\n        int a7,\n        unsigned int a8)\n{\n  __int64 v9; // rdi\n  __int64 v10; // rbx\n  __int64 result; // rax\n\n  if ( *(_QWORD *)(a1 + 1560) == *(_QWORD *)(a1 + 1568) )\n  {\n    sub_140374400(a1 + 1552);\n  }\n  else\n  {\n    GroupCommandObject2::GroupCommandObject2(*(_QWORD **)(a1 + 1560));\n    *(_QWORD *)(a1 + 1560) += 520LL;\n  }\n  v9 = *(_QWORD *)(a1 + 1560);\n  v10 = v9 - 520;\n  GroupCommandObject2::reset(v9 - 520);\n  *(_DWORD *)(v10 + 40) = a5;\n  *(_DWORD *)(v10 + 44) = a6;\n  *(_DWORD *)(v10 + 344) = a7;\n  result = a8;\n  *(_DWORD *)(v10 + 348) = a8;\n  *(_DWORD *)(v10 + 208) = 2;\n  *(double *)(v10 + 192) = a2;\n  *(double *)(v10 + 200) = a3;\n  *(double *)(v10 + 24) = a4;\n  if ( a2 == 0.0 && a3 == 0.0 )\n  {\n    *(_BYTE *)(v9 - 408) = 1;\n    *(_BYTE *)(v9 - 406) = 1;\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::createFollowCommand from 0x140366da0 to 0x140366eab (267 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x140648360\n; > <???> @ 0x1409217ac\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     [rsp+arg_0], rbx                                               ; +0x0, 0x140366da0\npush    rdi                                                            ; +0x5, 0x140366da5\nsub     rsp, 50h                                                       ; +0x6, 0x140366da6\nmov     rdx, [rcx+618h]                                                ; +0xa, 0x140366daa\nmov     rdi, rcx                                                       ; +0x11, 0x140366db1\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x14, 0x140366db4\nmovaps  xmm6, xmm2                                                     ; +0x19, 0x140366db9\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1c, 0x140366dbc\nmovaps  xmm7, xmm1                                                     ; +0x21, 0x140366dc1\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x24, 0x140366dc4\nmovaps  xmm8, xmm3                                                     ; +0x2a, 0x140366dca\ncmp     rdx, [rcx+620h]                                                ; +0x2e, 0x140366dce\njz      short loc_140366DEC                                            ; +0x35, 0x140366dd5\nmov     rcx, rdx                                                       ; +0x37, 0x140366dd7\ncall    GroupCommandObject2__GroupCommandObject2                       ; +0x3a, 0x140366dda\nadd     qword ptr [rdi+618h], 208h                                     ; +0x3f, 0x140366ddf\njmp     short loc_140366DF8                                            ; +0x4a, 0x140366dea\nadd     rcx, 610h                                                      ; +0x4c, 0x140366dec\ncall    sub_140374400                                                  ; +0x53, 0x140366df3\nmov     rdi, [rdi+618h]                                                ; +0x58, 0x140366df8\nlea     rbx, [rdi-208h]                                                ; +0x5f, 0x140366dff\nmov     rcx, rbx                                                       ; +0x66, 0x140366e06\ncall    GroupCommandObject2__reset                                     ; +0x69, 0x140366e09\nmov     eax, [rsp+58h+arg_20]                                          ; +0x6e, 0x140366e0e\nxorps   xmm0, xmm0                                                     ; +0x75, 0x140366e15\ncvtss2sd xmm0, xmm7                                                    ; +0x78, 0x140366e18\nmov     [rbx+28h], eax                                                 ; +0x7c, 0x140366e1c\nmov     eax, [rsp+58h+arg_28]                                          ; +0x7f, 0x140366e1f\nmov     [rbx+2Ch], eax                                                 ; +0x86, 0x140366e26\nmov     eax, [rsp+58h+arg_30]                                          ; +0x89, 0x140366e29\nxorps   xmm1, xmm1                                                     ; +0x90, 0x140366e30\nmov     [rbx+158h], eax                                                ; +0x93, 0x140366e33\nmov     eax, [rsp+58h+arg_38]                                          ; +0x99, 0x140366e39\ncvtss2sd xmm1, xmm6                                                    ; +0xa0, 0x140366e40\nmov     [rbx+15Ch], eax                                                ; +0xa4, 0x140366e44\nmov     dword ptr [rbx+0D0h], 2                                        ; +0xaa, 0x140366e4a\nmovsd   qword ptr [rbx+0C0h], xmm0                                     ; +0xb4, 0x140366e54\nxorps   xmm0, xmm0                                                     ; +0xbc, 0x140366e5c\ncvtss2sd xmm0, xmm8                                                    ; +0xbf, 0x140366e5f\nmovsd   qword ptr [rbx+0C8h], xmm1                                     ; +0xc4, 0x140366e64\nxorps   xmm1, xmm1                                                     ; +0xcc, 0x140366e6c\nucomiss xmm7, xmm1                                                     ; +0xcf, 0x140366e6f\nmovsd   qword ptr [rbx+18h], xmm0                                      ; +0xd2, 0x140366e72\njp      short loc_140366E90                                            ; +0xd7, 0x140366e77\njnz     short loc_140366E90                                            ; +0xd9, 0x140366e79\nucomiss xmm6, xmm1                                                     ; +0xdb, 0x140366e7b\njp      short loc_140366E90                                            ; +0xde, 0x140366e7e\njnz     short loc_140366E90                                            ; +0xe0, 0x140366e80\nmov     byte ptr [rdi-198h], 1                                         ; +0xe2, 0x140366e82\nmov     byte ptr [rdi-196h], 1                                         ; +0xe9, 0x140366e89\nmov     rbx, [rsp+58h+arg_0]                                           ; +0xf0, 0x140366e90\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xf5, 0x140366e95\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xfa, 0x140366e9a\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xff, 0x140366e9f\nadd     rsp, 50h                                                       ; +0x105, 0x140366ea5\npop     rdi                                                            ; +0x109, 0x140366ea9\nretn                                                                   ; +0x10a, 0x140366eaa", "xrefs": ["EffectGameObject::triggerObject @ 0x140648360", "<???> @ 0x1409217ac"], "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"}