{"type": "func", "start": 4300133696, "end": 4300133874, "name": "GroupCommandObject2::updateEffectAction", "pseudocode": "// \n// GroupCommandObject2::updateEffectAction from 0x1004ed540 to 0x1004ed5f2 (178 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GroupCommandObject2::updateEffectAction(GroupCommandObject2 *a1, float a2, int a3)\n{\n  double v3; // xmm0_8\n  double v4; // xmm0_8\n  double v5; // xmm1_8\n  double v6; // xmm0_8\n  double v7; // xmm1_8\n\n  switch ( a3 )\n  {\n    case 1:\n      if ( !a1->m_lockedInX )\n      {\n        v4 = a2;\n        v5 = v4 - a1->m_currentXOffset;\n        a1->m_deltaX = a1->m_deltaX + v5;\n        a1->m_deltaX_3 = v5 + a1->m_deltaX_3;\n        a1->m_currentXOffset = v4;\n      }\n      break;\n    case 2:\n      if ( !a1->m_lockedInY )\n      {\n        v6 = a2;\n        v7 = v6 - a1->m_currentYOffset;\n        a1->m_deltaY = a1->m_deltaY + v7;\n        a1->m_deltaY_3 = v7 + a1->m_deltaY_3;\n        a1->m_currentYOffset = v6;\n      }\n      break;\n    case 3:\n    case 4:\n      v3 = a2;\n      a1->m_currentRotateOrTransformDelta = v3\n                                          - a1->m_currentRotateOrTransformValue\n                                          + a1->m_currentRotateOrTransformDelta;\n      a1->m_currentRotateOrTransformValue = v3;\n      break;\n    default:\n      return;\n  }\n}", "assembly": "; \n; GroupCommandObject2::updateEffectAction from 0x1004ed540 to 0x1004ed5f2 (178 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1004ed540\nmov     rbp, rsp                                                       ; +0x1, 0x1004ed541\ndec     esi; switch 4 cases                                            ; +0x4, 0x1004ed544\ncmp     esi, 3                                                         ; +0x6, 0x1004ed546\nja      short def_1004ED559; jumptable 00000001004ED559 default case   ; +0x9, 0x1004ed549\nlea     rax, jpt_1004ED559                                             ; +0xb, 0x1004ed54b\nmovsxd  rcx, (jpt_1004ED559 - 1004ED5F4h)[rax+rsi*4]                   ; +0x12, 0x1004ed552\nadd     rcx, rax                                                       ; +0x16, 0x1004ed556\njmp     rcx; switch jump                                               ; +0x19, 0x1004ed559\ncvtss2sd xmm0, xmm0; jumptable 00000001004ED559 cases 3,4              ; +0x1b, 0x1004ed55b\nmovaps  xmm1, xmm0                                                     ; +0x1f, 0x1004ed55f\nsubsd   xmm1, qword ptr [rdi+90h]                                      ; +0x22, 0x1004ed562\naddsd   xmm1, qword ptr [rdi+98h]                                      ; +0x2a, 0x1004ed56a\nmovsd   qword ptr [rdi+98h], xmm1                                      ; +0x32, 0x1004ed572\nmovsd   qword ptr [rdi+90h], xmm0                                      ; +0x3a, 0x1004ed57a\npop     rbp; jumptable 00000001004ED559 default case                   ; +0x42, 0x1004ed582\nretn                                                                   ; +0x43, 0x1004ed583\ncmp     byte ptr [rdi+77h], 0; jumptable 00000001004ED559 case 1       ; +0x44, 0x1004ed584\njnz     short def_1004ED559; jumptable 00000001004ED559 default case   ; +0x48, 0x1004ed588\ncvtss2sd xmm0, xmm0                                                    ; +0x4a, 0x1004ed58a\nmovaps  xmm1, xmm0                                                     ; +0x4e, 0x1004ed58e\nsubsd   xmm1, qword ptr [rdi+30h]                                      ; +0x51, 0x1004ed591\nmovsd   xmm2, qword ptr [rdi+40h]                                      ; +0x56, 0x1004ed596\naddsd   xmm2, xmm1                                                     ; +0x5b, 0x1004ed59b\nmovsd   qword ptr [rdi+40h], xmm2                                      ; +0x5f, 0x1004ed59f\naddsd   xmm1, qword ptr [rdi+160h]                                     ; +0x64, 0x1004ed5a4\nmovsd   qword ptr [rdi+160h], xmm1                                     ; +0x6c, 0x1004ed5ac\nmovsd   qword ptr [rdi+30h], xmm0                                      ; +0x74, 0x1004ed5b4\npop     rbp                                                            ; +0x79, 0x1004ed5b9\nretn                                                                   ; +0x7a, 0x1004ed5ba\ncmp     byte ptr [rdi+78h], 0; jumptable 00000001004ED559 case 2       ; +0x7b, 0x1004ed5bb\njnz     short def_1004ED559; jumptable 00000001004ED559 default case   ; +0x7f, 0x1004ed5bf\ncvtss2sd xmm0, xmm0                                                    ; +0x81, 0x1004ed5c1\nmovaps  xmm1, xmm0                                                     ; +0x85, 0x1004ed5c5\nsubsd   xmm1, qword ptr [rdi+38h]                                      ; +0x88, 0x1004ed5c8\nmovsd   xmm2, qword ptr [rdi+48h]                                      ; +0x8d, 0x1004ed5cd\naddsd   xmm2, xmm1                                                     ; +0x92, 0x1004ed5d2\nmovsd   qword ptr [rdi+48h], xmm2                                      ; +0x96, 0x1004ed5d6\naddsd   xmm1, qword ptr [rdi+168h]                                     ; +0x9b, 0x1004ed5db\nmovsd   qword ptr [rdi+168h], xmm1                                     ; +0xa3, 0x1004ed5e3\nmovsd   qword ptr [rdi+38h], xmm0                                      ; +0xab, 0x1004ed5eb\npop     rbp                                                            ; +0xb0, 0x1004ed5f0\nretn                                                                   ; +0xb1, 0x1004ed5f1", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}