{"type": "func", "start": 4297897232, "end": 4297897474, "name": "GJEffectManager::createRotateCommand", "pseudocode": "// \n// GJEffectManager::createRotateCommand from 0x1002cb510 to 0x1002cb602 (242 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::triggerRotateCommand @ 0x1000c543c\n// > GJBaseGameLayer::triggerRotateCommand @ 0x100115fee\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::createRotateCommand(\n        __int64 a1,\n        int a2,\n        int a3,\n        unsigned int a4,\n        unsigned __int8 a5,\n        char a6,\n        float a7,\n        float a8,\n        float a9,\n        unsigned __int8 a10,\n        int a11,\n        int a12)\n{\n  unsigned __int64 v13; // r14\n  __int64 v14; // r14\n  __int64 v15; // rcx\n\n  v13 = *(_QWORD *)(a1 + 1240);\n  if ( v13 >= *(_QWORD *)(a1 + 1248) )\n  {\n    v14 = sub_1002DB3D0(a1 + 1232);\n  }\n  else\n  {\n    sub_1004E7A00(*(_QWORD *)(a1 + 1240));\n    v14 = v13 + 520;\n    *(_QWORD *)(a1 + 1240) = v14;\n  }\n  v15 = 1;\n  if ( !a6 )\n    v15 = 2 * (unsigned int)a10;\n  *(_QWORD *)(a1 + 1240) = v14;\n  *(_DWORD *)(v14 - 480) = a2;\n  *(_DWORD *)(v14 - 476) = a3;\n  *(_DWORD *)(v14 - 176) = a11;\n  *(_DWORD *)(v14 - 172) = a12;\n  return GroupCommandObject2::runRotateCommand(v14 - 520, a4, a5, v15, a7, a8, a9);\n}", "assembly": "; \n; GJEffectManager::createRotateCommand from 0x1002cb510 to 0x1002cb602 (242 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::triggerRotateCommand @ 0x1000c543c\n; > GJBaseGameLayer::triggerRotateCommand @ 0x100115fee\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, 0x1002cb510\nmov     rbp, rsp                                                       ; +0x1, 0x1002cb511\npush    r15                                                            ; +0x4, 0x1002cb514\npush    r14                                                            ; +0x6, 0x1002cb516\npush    r13                                                            ; +0x8, 0x1002cb518\npush    r12                                                            ; +0xa, 0x1002cb51a\npush    rbx                                                            ; +0xc, 0x1002cb51c\nsub     rsp, 28h                                                       ; +0xd, 0x1002cb51d\nmov     r13d, r9d                                                      ; +0x11, 0x1002cb521\nmov     [rbp+var_44], r8d                                              ; +0x14, 0x1002cb524\nmovss   [rbp+var_40], xmm2                                             ; +0x18, 0x1002cb528\nmov     [rbp+var_48], ecx                                              ; +0x1d, 0x1002cb52d\nmov     [rbp+var_34], edx                                              ; +0x20, 0x1002cb530\nmov     [rbp+var_30], esi                                              ; +0x23, 0x1002cb533\nmovss   [rbp+var_3C], xmm1                                             ; +0x26, 0x1002cb536\nmovss   [rbp+var_38], xmm0                                             ; +0x2b, 0x1002cb53b\nmov     rbx, rdi                                                       ; +0x30, 0x1002cb540\nmov     eax, [rbp+arg_10]                                              ; +0x33, 0x1002cb543\nmov     [rbp+var_2C], eax                                              ; +0x36, 0x1002cb546\nmov     r12d, [rbp+arg_8]                                              ; +0x39, 0x1002cb549\nmovzx   r15d, [rbp+arg_0]                                              ; +0x3d, 0x1002cb54d\nmov     r14, [rdi+4D8h]                                                ; +0x42, 0x1002cb552\ncmp     r14, [rdi+4E0h]                                                ; +0x49, 0x1002cb559\njnb     short loc_1002CB57A                                            ; +0x50, 0x1002cb560\nmov     rdi, r14                                                       ; +0x52, 0x1002cb562\ncall    sub_1004E7A00                                                  ; +0x55, 0x1002cb565\nadd     r14, 208h                                                      ; +0x5a, 0x1002cb56a\nmov     [rbx+4D8h], r14                                                ; +0x61, 0x1002cb571\njmp     short loc_1002CB589                                            ; +0x68, 0x1002cb578\nlea     rdi, [rbx+4D0h]                                                ; +0x6a, 0x1002cb57a\ncall    sub_1002DB3D0                                                  ; +0x71, 0x1002cb581\nmov     r14, rax                                                       ; +0x76, 0x1002cb586\nmovzx   eax, r15b                                                      ; +0x79, 0x1002cb589\nadd     eax, eax                                                       ; +0x7d, 0x1002cb58d\ntest    r13b, r13b                                                     ; +0x7f, 0x1002cb58f\nmov     ecx, 1                                                         ; +0x82, 0x1002cb592\ncmovz   ecx, eax                                                       ; +0x87, 0x1002cb597\nmov     [rbx+4D8h], r14                                                ; +0x8a, 0x1002cb59a\nlea     rdi, [r14-208h]                                                ; +0x91, 0x1002cb5a1\nmov     eax, [rbp+var_30]                                              ; +0x98, 0x1002cb5a8\nmov     [r14-1E0h], eax                                                ; +0x9b, 0x1002cb5ab\nmov     eax, [rbp+var_34]                                              ; +0xa2, 0x1002cb5b2\nmov     [r14-1DCh], eax                                                ; +0xa5, 0x1002cb5b5\nmov     [r14-0B0h], r12d                                               ; +0xac, 0x1002cb5bc\nmov     eax, [rbp+var_2C]                                              ; +0xb3, 0x1002cb5c3\nmov     [r14-0ACh], eax                                                ; +0xb6, 0x1002cb5c6\nmovss   xmm0, [rbp+var_38]                                             ; +0xbd, 0x1002cb5cd\ncvtss2sd xmm0, xmm0                                                    ; +0xc2, 0x1002cb5d2\nmovss   xmm1, [rbp+var_3C]                                             ; +0xc6, 0x1002cb5d6\ncvtss2sd xmm1, xmm1                                                    ; +0xcb, 0x1002cb5db\nmovss   xmm2, [rbp+var_40]                                             ; +0xcf, 0x1002cb5df\ncvtss2sd xmm2, xmm2                                                    ; +0xd4, 0x1002cb5e4\nmovzx   edx, byte ptr [rbp+var_44]                                     ; +0xd8, 0x1002cb5e8\nmov     esi, [rbp+var_48]                                              ; +0xdc, 0x1002cb5ec\nadd     rsp, 28h                                                       ; +0xdf, 0x1002cb5ef\npop     rbx                                                            ; +0xe3, 0x1002cb5f3\npop     r12                                                            ; +0xe4, 0x1002cb5f4\npop     r13                                                            ; +0xe6, 0x1002cb5f6\npop     r14                                                            ; +0xe8, 0x1002cb5f8\npop     r15                                                            ; +0xea, 0x1002cb5fa\npop     rbp                                                            ; +0xec, 0x1002cb5fc\njmp     GroupCommandObject2__runRotateCommand                          ; +0xed, 0x1002cb5fd", "xrefs": ["LevelEditorLayer::triggerRotateCommand @ 0x1000c543c", "GJBaseGameLayer::triggerRotateCommand @ 0x100115fee"], "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"}