{"type": "func", "start": 5372275824, "end": 5372276118, "name": "GJEffectManager::createRotateCommand", "pseudocode": "// \n// GJEffectManager::createRotateCommand from 0x140366c70 to 0x140366d96 (294 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::triggerRotateCommand @ 0x140326fe8\n// > <???> @ 0x1409217a0\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::createRotateCommand(\n        __int64 a1,\n        float a2,\n        float a3,\n        int a4,\n        int a5,\n        int a6,\n        float a7,\n        unsigned __int8 a8,\n        __int64 a9,\n        __int64 a10,\n        int a11,\n        int a12)\n{\n  __int64 v14; // rcx\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  v14 = *(_QWORD *)(a1 + 1560);\n  *(_DWORD *)(v14 - 476) = a5;\n  *(_DWORD *)(v14 - 176) = a11;\n  *(double *)(v14 - 496) = a3;\n  *(_DWORD *)(v14 - 172) = a12;\n  *(_DWORD *)(v14 - 508) = a6;\n  result = a8;\n  *(_DWORD *)(v14 - 480) = a4;\n  *(_DWORD *)(v14 - 312) = 1;\n  *(_BYTE *)(v14 - 336) = a8;\n  *(_DWORD *)(v14 - 332) = 0;\n  *(double *)(v14 - 504) = a7;\n  *(double *)(v14 - 344) = a2;\n  if ( a2 == 0.0 )\n  {\n    *(_BYTE *)(v14 - 408) = 1;\n    *(_BYTE *)(v14 - 406) = 1;\n  }\n  else\n  {\n    *(double *)(v14 - 112) = a2;\n    *(_DWORD *)(v14 - 120) = 3;\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::createRotateCommand from 0x140366c70 to 0x140366d96 (294 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::triggerRotateCommand @ 0x140326fe8\n; > <???> @ 0x1409217a0\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, 0x140366c70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140366c75\npush    rdi                                                            ; +0xa, 0x140366c7a\nsub     rsp, 40h                                                       ; +0xb, 0x140366c7b\nmov     rdx, [rcx+618h]                                                ; +0xf, 0x140366c7f\nmov     esi, r9d                                                       ; +0x16, 0x140366c86\nmov     rdi, rcx                                                       ; +0x19, 0x140366c89\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x1c, 0x140366c8c\nmovaps  xmm6, xmm2                                                     ; +0x21, 0x140366c91\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x24, 0x140366c94\nmovaps  xmm7, xmm1                                                     ; +0x29, 0x140366c99\ncmp     rdx, [rcx+620h]                                                ; +0x2c, 0x140366c9c\njz      short loc_140366CBA                                            ; +0x33, 0x140366ca3\nmov     rcx, rdx                                                       ; +0x35, 0x140366ca5\ncall    GroupCommandObject2__GroupCommandObject2                       ; +0x38, 0x140366ca8\nadd     qword ptr [rdi+618h], 208h                                     ; +0x3d, 0x140366cad\njmp     short loc_140366CC6                                            ; +0x48, 0x140366cb8\nadd     rcx, 610h                                                      ; +0x4a, 0x140366cba\ncall    sub_140374400                                                  ; +0x51, 0x140366cc1\nmov     rcx, [rdi+618h]                                                ; +0x56, 0x140366cc6\nxorps   xmm0, xmm0                                                     ; +0x5d, 0x140366ccd\nmov     eax, [rsp+48h+arg_20]                                          ; +0x60, 0x140366cd0\nxorps   xmm1, xmm1                                                     ; +0x64, 0x140366cd4\ncvtss2sd xmm0, xmm6                                                    ; +0x67, 0x140366cd7\nmov     [rcx-1DCh], eax                                                ; +0x6b, 0x140366cdb\nmov     eax, [rsp+48h+arg_50]                                          ; +0x71, 0x140366ce1\nmov     [rcx-0B0h], eax                                                ; +0x78, 0x140366ce8\nmov     eax, [rsp+48h+arg_58]                                          ; +0x7e, 0x140366cee\nmovsd   qword ptr [rcx-1F0h], xmm0                                     ; +0x85, 0x140366cf5\nmovss   xmm0, [rsp+48h+arg_30]                                         ; +0x8d, 0x140366cfd\ncvtps2pd xmm0, xmm0                                                    ; +0x96, 0x140366d06\nmov     [rcx-0ACh], eax                                                ; +0x99, 0x140366d09\nmov     eax, [rsp+48h+arg_28]                                          ; +0x9f, 0x140366d0f\nmov     [rcx-1FCh], eax                                                ; +0xa3, 0x140366d13\nmovzx   eax, [rsp+48h+arg_38]                                          ; +0xa9, 0x140366d19\nmov     [rcx-1E0h], esi                                                ; +0xb1, 0x140366d21\ncvtss2sd xmm1, xmm7                                                    ; +0xb7, 0x140366d27\nmov     dword ptr [rcx-138h], 1                                        ; +0xbb, 0x140366d2b\nmov     [rcx-150h], al                                                 ; +0xc5, 0x140366d35\nmov     dword ptr [rcx-14Ch], 0                                        ; +0xcb, 0x140366d3b\nmovsd   qword ptr [rcx-1F8h], xmm0                                     ; +0xd5, 0x140366d45\nxorps   xmm0, xmm0                                                     ; +0xdd, 0x140366d4d\nucomisd xmm1, xmm0                                                     ; +0xe0, 0x140366d50\nmovsd   qword ptr [rcx-158h], xmm1                                     ; +0xe4, 0x140366d54\njp      short loc_140366D70                                            ; +0xec, 0x140366d5c\njnz     short loc_140366D70                                            ; +0xee, 0x140366d5e\nmov     byte ptr [rcx-198h], 1                                         ; +0xf0, 0x140366d60\nmov     byte ptr [rcx-196h], 1                                         ; +0xf7, 0x140366d67\njmp     short loc_140366D7C                                            ; +0xfe, 0x140366d6e\nmovsd   qword ptr [rcx-70h], xmm1                                      ; +0x100, 0x140366d70\nmov     dword ptr [rcx-78h], 3                                         ; +0x105, 0x140366d75\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x10c, 0x140366d7c\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x111, 0x140366d81\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x116, 0x140366d86\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x11b, 0x140366d8b\nadd     rsp, 40h                                                       ; +0x120, 0x140366d90\npop     rdi                                                            ; +0x124, 0x140366d94\nretn                                                                   ; +0x125, 0x140366d95", "xrefs": ["GJBaseGameLayer::triggerRotateCommand @ 0x140326fe8", "<???> @ 0x1409217a0"], "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"}