{"type": "func", "start": 8834552, "end": 8834952, "name": "GJBaseGameLayer::triggerRotateCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerRotateCommand from 0x86cdf8 to 0x86cf88 (400 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x76fe40\n// > <???> @ 0x8b638\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::triggerRotateCommand(GJBaseGameLayer *a1, EnhancedTriggerObject *a2)\n{\n  float v4; // s0\n  GameObject *v5; // x22\n  GameObject *v6; // x0\n  GameObject *Object; // [xsp+40h] [xbp+30h]\n  GameObject *v8; // [xsp+48h] [xbp+38h]\n  GameObject *v9; // [xsp+50h] [xbp+40h]\n  GameObject *v10; // [xsp+58h] [xbp+48h]\n  float v11; // [xsp+60h] [xbp+50h]\n  GameObject *v12; // [xsp+60h] [xbp+50h]\n  GameObject *v13; // [xsp+70h] [xbp+60h] BYREF\n  GameObject *v14; // [xsp+78h] [xbp+68h] BYREF\n  GameObject *v15; // [xsp+80h] [xbp+70h] BYREF\n\n  v4 = a2->m_rotationDegrees + (float)((float)a2->m_times360 * 360.0);\n  if ( !a2->m_isDynamicMode || a2->m_duration == 0.0 )\n  {\n    if ( a2->m_useMoveTarget || a2->m_isDirectionFollowSnap360 )\n    {\n      v11 = a2->m_rotationDegrees + (float)((float)a2->m_times360 * 360.0);\n      GJBaseGameLayer::getRotateCommandTargets(a1, a2, &v14, &v15, &v13);\n      v5 = v14;\n      v4 = v11;\n      if ( v14 )\n      {\n        v12 = v13;\n        if ( v13 )\n        {\n          v10 = v15;\n          if ( v15 )\n          {\n            Object = GJBaseGameLayer::tryGetObject(a1, a2->m_minXID);\n            v8 = GJBaseGameLayer::tryGetObject(a1, a2->m_minYID);\n            v9 = GJBaseGameLayer::tryGetObject(a1, a2->m_maxXID);\n            v6 = GJBaseGameLayer::tryGetObject(a1, a2->m_maxYID);\n            getRotateCommandAngleDelta((__int64)a2, (__int64)v5, (__int64)v10, (__int64)v12, Object, v8, v9, v6);\n          }\n        }\n      }\n    }\n  }\n  else if ( a2->m_useMoveTarget || a2->m_isDirectionFollowSnap360 )\n  {\n    GJBaseGameLayer::triggerDynamicRotateCommand(a1, a2);\n    return;\n  }\n  GJEffectManager::createRotateCommand(\n    a1->m_effectManager,\n    v4,\n    a2->m_duration,\n    a2->m_targetGroupID,\n    a2->m_centerGroupID,\n    a2->m_easingType,\n    a2->m_easingRate,\n    a2->m_lockObjectRotation,\n    0,\n    0,\n    a2->m_uniqueID,\n    a2->m_controlID);\n}", "assembly": "; \n; GJBaseGameLayer::triggerRotateCommand from 0x86cdf8 to 0x86cf88 (400 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x76fe40\n; > <???> @ 0x8b638\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\nSUB             SP, SP, #0x90                                          ; +0x0, 0x86cdf8\nSTP             X29, X30, [SP,#0x90+var_80]                            ; +0x4, 0x86cdfc\nADD             X29, SP, #0x10                                         ; +0x8, 0x86ce00\nLDR             S2, [X1,#0x5F8]                                        ; +0xc, 0x86ce04\nSTP             X19, X20, [SP,#0x90+var_70]                            ; +0x10, 0x86ce08\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x86ce0c\nMOV             X19, X1                                                ; +0x18, 0x86ce10\nSTP             X21, X22, [SP,#0x90+var_60]                            ; +0x1c, 0x86ce14\nMOV             X21, X0                                                ; +0x20, 0x86ce18\nLDR             W0, [X1,#0x5FC]                                        ; +0x24, 0x86ce1c\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x86ce20\nLDRB            W1, [X1,#0x5F0]                                        ; +0x2c, 0x86ce24\nSCVTF           S1, W0                                                 ; +0x30, 0x86ce28\nLDR             X0, [X2]                                               ; +0x34, 0x86ce2c\nLDR             S0, =0x43B40000                                        ; +0x38, 0x86ce30\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x3c, 0x86ce34\nFMADD           S0, S1, S0, S2                                         ; +0x40, 0x86ce38\nCBZ             W1, loc_86CE64                                         ; +0x44, 0x86ce3c\nLDR             S1, [X19,#0x59C]                                       ; +0x48, 0x86ce40\nFCMP            S1, #0.0                                               ; +0x4c, 0x86ce44\nB.EQ            loc_86CE64                                             ; +0x50, 0x86ce48\nLDRB            W0, [X19,#0x5D4]                                       ; +0x54, 0x86ce4c\nCBZ             W0, loc_86CF78                                         ; +0x58, 0x86ce50\nMOV             X0, X21                                                ; +0x5c, 0x86ce54\nMOV             X1, X19                                                ; +0x60, 0x86ce58\nBL              _ZN15GJBaseGameLayer27triggerDynamicRotateCommandEP21EnhancedTriggerObject; GJBaseGameLayer::triggerDynamicRotateCommand(EnhancedTriggerObject *) ; +0x64, 0x86ce5c\nB               loc_86CF40                                             ; +0x68, 0x86ce60\nLDRB            W0, [X19,#0x5D4]                                       ; +0x6c, 0x86ce64\nCBZ             W0, loc_86CF6C                                         ; +0x70, 0x86ce68\nMOV             X0, X21; this                                          ; +0x74, 0x86ce6c\nMOV             X1, X19                                                ; +0x78, 0x86ce70\nADD             X2, X29, #0x80+var_18                                  ; +0x7c, 0x86ce74\nADD             X3, X29, #0x80+var_10                                  ; +0x80, 0x86ce78\nADD             X4, X29, #0x80+var_20                                  ; +0x84, 0x86ce7c\nSTR             Q0, [X29,#0x80+var_30]                                 ; +0x88, 0x86ce80\nBL              _ZN15GJBaseGameLayer23getRotateCommandTargetsEP21EnhancedTriggerObjectRP10GameObjectS4_S4_; GJBaseGameLayer::getRotateCommandTargets(EnhancedTriggerObject *,GameObject *&,GameObject *&,GameObject *&) ; +0x8c, 0x86ce84\nLDR             X22, [X29,#0x80+var_18]                                ; +0x90, 0x86ce88\nLDR             Q0, [X29,#0x80+var_30]                                 ; +0x94, 0x86ce8c\nCBZ             X22, loc_86CF0C                                        ; +0x98, 0x86ce90\nLDR             X3, [X29,#0x80+var_20]                                 ; +0x9c, 0x86ce94\nSTR             X3, [X29,#0x80+var_30]                                 ; +0xa0, 0x86ce98\nCBZ             X3, loc_86CF0C                                         ; +0xa4, 0x86ce9c\nLDR             X2, [X29,#0x80+var_10]                                 ; +0xa8, 0x86cea0\nSTR             X2, [X29,#0x80+var_38]                                 ; +0xac, 0x86cea4\nCBZ             X2, loc_86CF0C                                         ; +0xb0, 0x86cea8\nLDR             W1, [X19,#0x71C]; int                                  ; +0xb4, 0x86ceac\nMOV             X0, X21; this                                          ; +0xb8, 0x86ceb0\nBL              _ZN15GJBaseGameLayer12tryGetObjectEi; GJBaseGameLayer::tryGetObject(int) ; +0xbc, 0x86ceb4\nSTR             X0, [X29,#0x80+var_50]                                 ; +0xc0, 0x86ceb8\nLDR             W1, [X19,#0x720]; int                                  ; +0xc4, 0x86cebc\nMOV             X0, X21; this                                          ; +0xc8, 0x86cec0\nBL              _ZN15GJBaseGameLayer12tryGetObjectEi; GJBaseGameLayer::tryGetObject(int) ; +0xcc, 0x86cec4\nSTR             X0, [X29,#0x80+var_48]                                 ; +0xd0, 0x86cec8\nLDR             W1, [X19,#0x724]; int                                  ; +0xd4, 0x86cecc\nMOV             X0, X21; this                                          ; +0xd8, 0x86ced0\nBL              _ZN15GJBaseGameLayer12tryGetObjectEi; GJBaseGameLayer::tryGetObject(int) ; +0xdc, 0x86ced4\nSTR             X0, [X29,#0x80+var_40]                                 ; +0xe0, 0x86ced8\nLDR             W1, [X19,#0x728]; int                                  ; +0xe4, 0x86cedc\nMOV             X0, X21; this                                          ; +0xe8, 0x86cee0\nBL              _ZN15GJBaseGameLayer12tryGetObjectEi; GJBaseGameLayer::tryGetObject(int) ; +0xec, 0x86cee4\nMOV             X7, X0                                                 ; +0xf0, 0x86cee8\nLDR             X2, [X29,#0x80+var_38]                                 ; +0xf4, 0x86ceec\nMOV             X0, X19                                                ; +0xf8, 0x86cef0\nLDR             X3, [X29,#0x80+var_30]                                 ; +0xfc, 0x86cef4\nMOV             X1, X22                                                ; +0x100, 0x86cef8\nLDR             X4, [X29,#0x80+var_50]                                 ; +0x104, 0x86cefc\nLDR             X5, [X29,#0x80+var_48]                                 ; +0x108, 0x86cf00\nLDR             X6, [X29,#0x80+var_40]                                 ; +0x10c, 0x86cf04\nBL              _Z26getRotateCommandAngleDeltaP21EnhancedTriggerObjectP10GameObjectS2_S2_S2_S2_S2_S2_; getRotateCommandAngleDelta(EnhancedTriggerObject *,GameObject *,GameObject *,GameObject *,GameObject *,GameObject *,GameObject *,GameObject *) ; +0x110, 0x86cf08\nLDR             S1, [X19,#0x59C]; float                                ; +0x114, 0x86cf0c\nLDR             W5, [X19,#0x678]                                       ; +0x118, 0x86cf10\nLDR             S2, [X19,#0x5CC]; float                                ; +0x11c, 0x86cf14\nLDR             X0, [X21,#0x9A8]; this                                 ; +0x120, 0x86cf18\nLDR             W1, [X19,#0x5A8]; int                                  ; +0x124, 0x86cf1c\nMOV             W6, #0; bool                                           ; +0x128, 0x86cf20\nLDRB            W4, [X19,#0x600]; bool                                 ; +0x12c, 0x86cf24\nLDR             W2, [X19,#0x5AC]; int                                  ; +0x130, 0x86cf28\nLDR             W7, [X19,#0x384]; int                                  ; +0x134, 0x86cf2c\nLDR             W3, [X19,#0x5C8]; int                                  ; +0x138, 0x86cf30\nSTR             W5, [SP,#0x90+var_90]; int                             ; +0x13c, 0x86cf34\nMOV             W5, #0; bool                                           ; +0x140, 0x86cf38\nBL              _ZN15GJEffectManager19createRotateCommandEffiiifbbbii; GJEffectManager::createRotateCommand(float,float,int,int,int,float,bool,bool,bool,int,int) ; +0x144, 0x86cf3c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x148, 0x86cf40\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x14c, 0x86cf44\nLDR             X0, [X20]                                              ; +0x150, 0x86cf48\nCMP             X1, X0                                                 ; +0x154, 0x86cf4c\nB.NE            loc_86CF84                                             ; +0x158, 0x86cf50\nSUB             SP, X29, #0x10                                         ; +0x15c, 0x86cf54\nLDP             X19, X20, [SP,#0x90+var_70]                            ; +0x160, 0x86cf58\nLDP             X21, X22, [SP,#0x90+var_60]                            ; +0x164, 0x86cf5c\nLDP             X29, X30, [SP,#0x90+var_80]                            ; +0x168, 0x86cf60\nADD             SP, SP, #0x90                                          ; +0x16c, 0x86cf64\nRET                                                                    ; +0x170, 0x86cf68\nLDRB            W0, [X19,#0x5E5]                                       ; +0x174, 0x86cf6c\nCBNZ            W0, loc_86CE6C                                         ; +0x178, 0x86cf70\nB               loc_86CF0C                                             ; +0x17c, 0x86cf74\nLDRB            W0, [X19,#0x5E5]                                       ; +0x180, 0x86cf78\nCBNZ            W0, loc_86CE54                                         ; +0x184, 0x86cf7c\nB               loc_86CF0C                                             ; +0x188, 0x86cf80\nBL              .__stack_chk_fail                                      ; +0x18c, 0x86cf84", "xrefs": ["EffectGameObject::triggerObject @ 0x76fe40", "<???> @ 0x8b638"], "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"}