{"type": "func", "start": 5370934464, "end": 5370935115, "name": "GJBaseGameLayer::triggerTransformCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerTransformCommand from 0x14021f4c0 to 0x14021f74b (651 bytes)\n// \n// 2 xrefs:\n// > TransformTriggerGameObject::triggerObject @ 0x1404bc199\n// > <???> @ 0x1406cd47c\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 GJBaseGameLayer::triggerTransformCommand(GJBaseGameLayer *a1, TransformTriggerGameObject *a2)\n{\n  double m_objectScaleX; // xmm7_8\n  double m_objectScaleY; // xmm6_8\n  GameObject *MainObject; // rax\n  double v7; // xmm2_8\n  double v8; // xmm0_8\n  GJEffectManager *m_effectManager; // rdi\n  GroupCommandObject2 *Mylast; // rdx\n  int m_controlID; // esi\n  int m_uniqueID; // ebp\n  bool m_relativeRotation; // r14\n  float m_easingRate; // xmm8_4\n  EasingType m_easingType; // r15d\n  int m_centerGroupID; // r12d\n  int m_targetGroupID; // r13d\n  float m_duration; // xmm9_4\n  double m_property451; // xmm10_8\n  double m_property450; // xmm11_8\n  std::_Vector_val<std::_Simple_types<GroupCommandObject2>>::pointer v21; // rax\n  bool m_onlyMove; // [rsp+B0h] [rbp+8h]\n\n  m_objectScaleX = a2->m_objectScaleX;\n  m_objectScaleY = a2->m_objectScaleY;\n  if ( m_objectScaleX == 0.0 )\n    m_objectScaleX = 1.0;\n  if ( m_objectScaleY == 0.0 )\n    m_objectScaleY = 1.0;\n  if ( a2->m_divideX )\n    m_objectScaleX = 1.0 / m_objectScaleX;\n  if ( a2->m_divideY )\n    m_objectScaleY = 1.0 / m_objectScaleY;\n  if ( a2->m_relativeScale )\n  {\n    MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2->m_centerGroupID);\n    if ( MainObject )\n    {\n      v7 = (float)(MainObject->m_scaleX / MainObject->m_startScaleX);\n      v8 = (float)(MainObject->m_scaleY / MainObject->m_startScaleY);\n      if ( v7 != 0.0 )\n        m_objectScaleX = (m_objectScaleX - 1.0) / v7 + 1.0;\n      if ( v8 != 0.0 )\n        m_objectScaleY = (m_objectScaleY - 1.0) / v8 + 1.0;\n    }\n  }\n  m_effectManager = a1->m_effectManager;\n  Mylast = m_effectManager->m_unkVector560._Mypair._Myval2._Mylast;\n  m_controlID = a2->m_controlID;\n  m_uniqueID = a2->m_uniqueID;\n  m_relativeRotation = a2->m_relativeRotation;\n  m_easingRate = a2->m_easingRate;\n  m_easingType = a2->m_easingType;\n  m_centerGroupID = a2->m_centerGroupID;\n  m_targetGroupID = a2->m_targetGroupID;\n  m_duration = a2->m_duration;\n  m_onlyMove = a2->m_onlyMove;\n  m_property451 = a2->m_property451;\n  m_property450 = a2->m_property450;\n  if ( Mylast == m_effectManager->m_unkVector560._Mypair._Myval2._Myend )\n  {\n    sub_14026B310(&m_effectManager->m_unkVector560);\n  }\n  else\n  {\n    GroupCommandObject2::GroupCommandObject2(Mylast);\n    ++m_effectManager->m_unkVector560._Mypair._Myval2._Mylast;\n  }\n  v21 = m_effectManager->m_unkVector560._Mypair._Myval2._Mylast;\n  v21[-1].m_onlyMove = m_onlyMove;\n  v21[-1].m_triggerUniqueID = m_uniqueID;\n  v21[-1].m_controlID = m_controlID;\n  v21[-1].m_actionValue1 = 1.0;\n  v21[-1].m_targetGroupID = m_targetGroupID;\n  v21[-1].m_centerGroupID = m_centerGroupID;\n  v21[-1].m_transformRelatedFalse = 0;\n  v21[-1].m_relativeRotation = m_relativeRotation;\n  v21[-1].m_targetScaleX = m_objectScaleX;\n  v21[-1].m_targetScaleY = m_objectScaleY;\n  v21[-1].m_transformTriggerProperty450 = m_property450;\n  v21[-1].m_transformTriggerProperty451 = m_property451;\n  v21[-1].m_duration = m_duration;\n  v21[-1].m_easingRate = m_easingRate;\n  v21[-1].m_commandType = 4;\n  v21[-1].m_easingType = m_easingType;\n  v21[-1].m_actionType1 = 4;\n}", "assembly": "; \n; GJBaseGameLayer::triggerTransformCommand from 0x14021f4c0 to 0x14021f74b (651 bytes)\n; \n; 2 xrefs:\n; > TransformTriggerGameObject::triggerObject @ 0x1404bc199\n; > <???> @ 0x1406cd47c\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\nmov     rax, rsp                                                       ; +0x0, 0x14021f4c0\nmov     [rax+10h], rbx                                                 ; +0x3, 0x14021f4c3\nmov     [rax+18h], rbp                                                 ; +0x7, 0x14021f4c7\nmov     [rax+20h], rsi                                                 ; +0xb, 0x14021f4cb\npush    rdi                                                            ; +0xf, 0x14021f4cf\npush    r12                                                            ; +0x10, 0x14021f4d0\npush    r13                                                            ; +0x12, 0x14021f4d2\npush    r14                                                            ; +0x14, 0x14021f4d4\npush    r15                                                            ; +0x16, 0x14021f4d6\nsub     rsp, 80h                                                       ; +0x18, 0x14021f4d8\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1f, 0x14021f4df\nmov     rbx, rdx                                                       ; +0x23, 0x14021f4e3\nmovss   xmm6, dword ptr [rdx+744h]                                     ; +0x26, 0x14021f4e6\nmov     rdi, rcx                                                       ; +0x2e, 0x14021f4ee\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x31, 0x14021f4f1\nmovss   xmm7, dword ptr [rdx+740h]                                     ; +0x35, 0x14021f4f5\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x3d, 0x14021f4fd\nmovsd   xmm8, cs:qword_140622E18                                       ; +0x42, 0x14021f502\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x4b, 0x14021f50b\nxorps   xmm9, xmm9                                                     ; +0x50, 0x14021f510\ncvtps2pd xmm7, xmm7                                                    ; +0x54, 0x14021f514\nmovaps  xmmword ptr [rax-78h], xmm10                                   ; +0x57, 0x14021f517\nucomisd xmm7, xmm9                                                     ; +0x5c, 0x14021f51c\nmovaps  [rsp+0A8h+var_88], xmm11                                       ; +0x61, 0x14021f521\ncvtps2pd xmm6, xmm6                                                    ; +0x67, 0x14021f527\njp      short loc_14021F532                                            ; +0x6a, 0x14021f52a\njnz     short loc_14021F532                                            ; +0x6c, 0x14021f52c\nmovaps  xmm7, xmm8                                                     ; +0x6e, 0x14021f52e\nucomisd xmm6, xmm9                                                     ; +0x72, 0x14021f532\njp      short loc_14021F53F                                            ; +0x77, 0x14021f537\njnz     short loc_14021F53F                                            ; +0x79, 0x14021f539\nmovaps  xmm6, xmm8                                                     ; +0x7b, 0x14021f53b\ncmp     byte ptr [rdx+751h], 0                                         ; +0x7f, 0x14021f53f\njz      short loc_14021F553                                            ; +0x86, 0x14021f546\nmovaps  xmm0, xmm8                                                     ; +0x88, 0x14021f548\ndivsd   xmm0, xmm7                                                     ; +0x8c, 0x14021f54c\nmovaps  xmm7, xmm0                                                     ; +0x90, 0x14021f550\ncmp     byte ptr [rdx+752h], 0                                         ; +0x93, 0x14021f553\njz      short loc_14021F567                                            ; +0x9a, 0x14021f55a\nmovaps  xmm0, xmm8                                                     ; +0x9c, 0x14021f55c\ndivsd   xmm0, xmm6                                                     ; +0xa0, 0x14021f560\nmovaps  xmm6, xmm0                                                     ; +0xa4, 0x14021f564\ncmp     byte ptr [rdx+754h], 0                                         ; +0xa7, 0x14021f567\njz      short loc_14021F5D4                                            ; +0xae, 0x14021f56e\nmov     edx, [rdx+5CCh]                                                ; +0xb0, 0x14021f570\ncall    GJBaseGameLayer__tryGetMainObject                              ; +0xb6, 0x14021f576\ntest    rax, rax                                                       ; +0xbb, 0x14021f57b\njz      short loc_14021F5D4                                            ; +0xbe, 0x14021f57e\nmovss   xmm0, dword ptr [rax+488h]                                     ; +0xc0, 0x14021f580\ndivss   xmm0, dword ptr [rax+3DCh]                                     ; +0xc8, 0x14021f588\nmovss   xmm1, dword ptr [rax+48Ch]                                     ; +0xd0, 0x14021f590\ndivss   xmm1, dword ptr [rax+3E0h]                                     ; +0xd8, 0x14021f598\ncvtps2pd xmm2, xmm0                                                    ; +0xe0, 0x14021f5a0\ncvtps2pd xmm0, xmm1                                                    ; +0xe3, 0x14021f5a3\nucomisd xmm2, xmm9                                                     ; +0xe6, 0x14021f5a6\njp      short loc_14021F5AF                                            ; +0xeb, 0x14021f5ab\njz      short loc_14021F5BD                                            ; +0xed, 0x14021f5ad\nsubsd   xmm7, xmm8                                                     ; +0xef, 0x14021f5af\ndivsd   xmm7, xmm2                                                     ; +0xf4, 0x14021f5b4\naddsd   xmm7, xmm8                                                     ; +0xf8, 0x14021f5b8\nucomisd xmm0, xmm9                                                     ; +0xfd, 0x14021f5bd\njp      short loc_14021F5C6                                            ; +0x102, 0x14021f5c2\njz      short loc_14021F5D4                                            ; +0x104, 0x14021f5c4\nsubsd   xmm6, xmm8                                                     ; +0x106, 0x14021f5c6\ndivsd   xmm6, xmm0                                                     ; +0x10b, 0x14021f5cb\naddsd   xmm6, xmm8                                                     ; +0x10f, 0x14021f5cf\nmov     rdi, [rdi+950h]                                                ; +0x114, 0x14021f5d4\nmovzx   eax, byte ptr [rbx+750h]                                       ; +0x11b, 0x14021f5db\nmovss   xmm10, dword ptr [rbx+74Ch]                                    ; +0x122, 0x14021f5e2\nmovss   xmm11, dword ptr [rbx+748h]                                    ; +0x12b, 0x14021f5eb\nmov     rdx, [rdi+610h]                                                ; +0x134, 0x14021f5f4\nmov     esi, [rbx+698h]                                                ; +0x13b, 0x14021f5fb\nmov     ebp, [rbx+39Ch]                                                ; +0x141, 0x14021f601\nmovzx   r14d, byte ptr [rbx+753h]                                      ; +0x147, 0x14021f607\nmovss   xmm8, dword ptr [rbx+5ECh]                                     ; +0x14f, 0x14021f60f\nmov     r15d, [rbx+5E8h]                                               ; +0x158, 0x14021f618\nmov     r12d, [rbx+5CCh]                                               ; +0x15f, 0x14021f61f\nmov     r13d, [rbx+5C8h]                                               ; +0x166, 0x14021f626\nmovss   xmm9, dword ptr [rbx+5BCh]                                     ; +0x16d, 0x14021f62d\nmov     [rsp+0A8h+arg_0], al                                           ; +0x176, 0x14021f636\ncvtps2pd xmm10, xmm10                                                  ; +0x17d, 0x14021f63d\ncvtps2pd xmm11, xmm11                                                  ; +0x181, 0x14021f641\ncmp     rdx, [rdi+618h]                                                ; +0x185, 0x14021f645\njz      short loc_14021F663                                            ; +0x18c, 0x14021f64c\nmov     rcx, rdx                                                       ; +0x18e, 0x14021f64e\ncall    GroupCommandObject2__GroupCommandObject2                       ; +0x191, 0x14021f651\nadd     qword ptr [rdi+610h], 208h                                     ; +0x196, 0x14021f656\njmp     short loc_14021F66F                                            ; +0x1a1, 0x14021f661\nlea     rcx, [rdi+608h]                                                ; +0x1a3, 0x14021f663\ncall    sub_14026B310                                                  ; +0x1aa, 0x14021f66a\nmov     rax, [rdi+610h]                                                ; +0x1af, 0x14021f66f\nlea     r11, [rsp+0A8h+var_28]                                         ; +0x1b6, 0x14021f676\nmovzx   ecx, [rsp+0A8h+arg_0]                                          ; +0x1be, 0x14021f67e\nmov     rbx, [r11+38h]                                                 ; +0x1c6, 0x14021f686\ncvtps2pd xmm0, xmm9                                                    ; +0x1ca, 0x14021f68a\nmov     [rax-0E8h], cl                                                 ; +0x1ce, 0x14021f68e\nmov     rcx, 3FF0000000000000h                                         ; +0x1d4, 0x14021f694\nmov     [rax-0B0h], ebp                                                ; +0x1de, 0x14021f69e\nmov     rbp, [r11+40h]                                                 ; +0x1e4, 0x14021f6a4\nmov     [rax-0ACh], esi                                                ; +0x1e8, 0x14021f6a8\nmov     rsi, [r11+48h]                                                 ; +0x1ee, 0x14021f6ae\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x1f2, 0x14021f6b2\ncvtps2pd xmm1, xmm8                                                    ; +0x1f7, 0x14021f6b7\nmov     [rax-70h], rcx                                                 ; +0x1fb, 0x14021f6bb\nmov     [rax-1E0h], r13d                                               ; +0x1ff, 0x14021f6bf\nmov     [rax-1DCh], r12d                                               ; +0x206, 0x14021f6c6\nmov     byte ptr [rax-0E7h], 0                                         ; +0x20d, 0x14021f6cd\nmov     [rax-0E6h], r14b                                               ; +0x214, 0x14021f6d4\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x21b, 0x14021f6db\nmovsd   qword ptr [rax-118h], xmm7                                     ; +0x220, 0x14021f6e0\nmovaps  xmm7, [rsp+0A8h+var_48]                                        ; +0x228, 0x14021f6e8\nmovsd   qword ptr [rax-110h], xmm6                                     ; +0x22d, 0x14021f6ed\nmovaps  xmm6, [rsp+0A8h+var_38]                                        ; +0x235, 0x14021f6f5\nmovsd   qword ptr [rax-108h], xmm11                                    ; +0x23a, 0x14021f6fa\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x243, 0x14021f703\nmovsd   qword ptr [rax-100h], xmm10                                    ; +0x248, 0x14021f708\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x251, 0x14021f711\nmovsd   qword ptr [rax-1F0h], xmm0                                     ; +0x256, 0x14021f716\nmovsd   qword ptr [rax-1F8h], xmm1                                     ; +0x25e, 0x14021f71e\nmov     dword ptr [rax-138h], 4                                        ; +0x266, 0x14021f726\nmov     [rax-1FCh], r15d                                               ; +0x270, 0x14021f730\nmov     dword ptr [rax-78h], 4                                         ; +0x277, 0x14021f737\nmov     rsp, r11                                                       ; +0x27e, 0x14021f73e\npop     r15                                                            ; +0x281, 0x14021f741\npop     r14                                                            ; +0x283, 0x14021f743\npop     r13                                                            ; +0x285, 0x14021f745\npop     r12                                                            ; +0x287, 0x14021f747\npop     rdi                                                            ; +0x289, 0x14021f749\nretn                                                                   ; +0x28a, 0x14021f74a", "xrefs": ["TransformTriggerGameObject::triggerObject @ 0x1404bc199", "<???> @ 0x1406cd47c"], "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"}