{"type": "func", "start": 5372276400, "end": 5372276685, "name": "GJEffectManager::createPlayerFollowCommand", "pseudocode": "// \n// GJEffectManager::createPlayerFollowCommand from 0x140366eb0 to 0x140366fcd (285 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x140648a15\n// > <???> @ 0x1409217b8\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::createPlayerFollowCommand(\n        __int64 a1,\n        float a2,\n        float a3,\n        int a4,\n        float a5,\n        float a6,\n        int a7,\n        int a8,\n        unsigned int a9)\n{\n  __int64 v12; // rdi\n  __int64 v13; // rbx\n  __int64 result; // rax\n  double v15; // xmm2_8\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  v12 = *(_QWORD *)(a1 + 1560);\n  v13 = v12 - 520;\n  GroupCommandObject2::reset(v12 - 520);\n  *(_DWORD *)(v13 + 40) = a7;\n  *(_DWORD *)(v13 + 344) = a8;\n  result = a9;\n  *(_DWORD *)(v13 + 348) = a9;\n  *(_DWORD *)(v13 + 208) = 3;\n  *(_DWORD *)(v13 + 328) = a4;\n  v15 = fmax(0.0, fmin(a2, 500.0));\n  *(double *)(v13 + 320) = a3;\n  *(double *)(v13 + 312) = v15;\n  *(double *)(v13 + 24) = a6;\n  *(double *)(v13 + 336) = a5;\n  if ( v15 <= 0.0 )\n  {\n    *(_BYTE *)(v12 - 408) = 1;\n    *(_BYTE *)(v12 - 406) = 1;\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::createPlayerFollowCommand from 0x140366eb0 to 0x140366fcd (285 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x140648a15\n; > <???> @ 0x1409217b8\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, 0x140366eb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140366eb5\npush    rdi                                                            ; +0xa, 0x140366eba\nsub     rsp, 40h                                                       ; +0xb, 0x140366ebb\nmov     rdx, [rcx+618h]                                                ; +0xf, 0x140366ebf\nmov     esi, r9d                                                       ; +0x16, 0x140366ec6\nmov     rdi, rcx                                                       ; +0x19, 0x140366ec9\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x1c, 0x140366ecc\nmovaps  xmm6, xmm2                                                     ; +0x21, 0x140366ed1\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x24, 0x140366ed4\nmovaps  xmm7, xmm1                                                     ; +0x29, 0x140366ed9\ncmp     rdx, [rcx+620h]                                                ; +0x2c, 0x140366edc\njz      short loc_140366EFA                                            ; +0x33, 0x140366ee3\nmov     rcx, rdx                                                       ; +0x35, 0x140366ee5\ncall    GroupCommandObject2__GroupCommandObject2                       ; +0x38, 0x140366ee8\nadd     qword ptr [rdi+618h], 208h                                     ; +0x3d, 0x140366eed\njmp     short loc_140366F06                                            ; +0x48, 0x140366ef8\nadd     rcx, 610h                                                      ; +0x4a, 0x140366efa\ncall    sub_140374400                                                  ; +0x51, 0x140366f01\nmov     rdi, [rdi+618h]                                                ; +0x56, 0x140366f06\nlea     rbx, [rdi-208h]                                                ; +0x5d, 0x140366f0d\nmov     rcx, rbx                                                       ; +0x64, 0x140366f14\ncall    GroupCommandObject2__reset                                     ; +0x67, 0x140366f17\nmov     eax, [rsp+48h+arg_30]                                          ; +0x6c, 0x140366f1c\nxorps   xmm0, xmm0                                                     ; +0x73, 0x140366f23\nmovss   xmm1, [rsp+48h+arg_20]                                         ; +0x76, 0x140366f26\nxorps   xmm2, xmm2                                                     ; +0x7c, 0x140366f2c\ncvtss2sd xmm0, xmm7                                                    ; +0x7f, 0x140366f2f\nmov     [rbx+28h], eax                                                 ; +0x83, 0x140366f33\nmov     eax, [rsp+48h+arg_38]                                          ; +0x86, 0x140366f36\nmov     [rbx+158h], eax                                                ; +0x8d, 0x140366f3d\nmov     eax, [rsp+48h+arg_40]                                          ; +0x93, 0x140366f43\nxorps   xmm3, xmm3                                                     ; +0x9a, 0x140366f4a\nmov     [rbx+15Ch], eax                                                ; +0x9d, 0x140366f4d\nminsd   xmm0, cs:qword_140835448                                       ; +0xa3, 0x140366f53\ncvtps2pd xmm1, xmm1                                                    ; +0xab, 0x140366f5b\nmov     dword ptr [rbx+0D0h], 3                                        ; +0xae, 0x140366f5e\nmov     [rbx+148h], esi                                                ; +0xb8, 0x140366f68\nmaxsd   xmm2, xmm0                                                     ; +0xbe, 0x140366f6e\nxorps   xmm0, xmm0                                                     ; +0xc2, 0x140366f72\ncvtss2sd xmm0, xmm6                                                    ; +0xc5, 0x140366f75\ncomisd  xmm3, xmm2                                                     ; +0xc9, 0x140366f79\nmovsd   qword ptr [rbx+140h], xmm0                                     ; +0xcd, 0x140366f7d\nmovss   xmm0, [rsp+48h+arg_28]                                         ; +0xd5, 0x140366f85\ncvtps2pd xmm0, xmm0                                                    ; +0xdb, 0x140366f8b\nmovsd   qword ptr [rbx+138h], xmm2                                     ; +0xde, 0x140366f8e\nmovsd   qword ptr [rbx+18h], xmm0                                      ; +0xe6, 0x140366f96\nmovsd   qword ptr [rbx+150h], xmm1                                     ; +0xeb, 0x140366f9b\njb      short loc_140366FB3                                            ; +0xf3, 0x140366fa3\nmov     byte ptr [rdi-198h], 1                                         ; +0xf5, 0x140366fa5\nmov     byte ptr [rdi-196h], 1                                         ; +0xfc, 0x140366fac\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x103, 0x140366fb3\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x108, 0x140366fb8\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x10d, 0x140366fbd\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x112, 0x140366fc2\nadd     rsp, 40h                                                       ; +0x117, 0x140366fc7\npop     rdi                                                            ; +0x11b, 0x140366fcb\nretn                                                                   ; +0x11c, 0x140366fcc", "xrefs": ["EffectGameObject::triggerObject @ 0x140648a15", "<???> @ 0x1409217b8"], "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"}