{"type": "func", "start": 4297477524, "end": 4297477760, "name": "EnhancedGameObject::updateRotateAction", "pseudocode": "// \n// EnhancedGameObject::updateRotateAction from 0x100264d94 to 0x100264e80 (236 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::updateVisibility @ 0x10011c9ec\n// > LevelEditorLayer::updateVisibility @ 0x10035ea6c\n// > LevelEditorLayer::updatePreviewAnim @ 0x10036412c\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 EnhancedGameObject::updateRotateAction(EnhancedGameObject *a1, float a2)\n{\n  int v3; // w21\n  float v4; // s0\n  float v5; // s8\n  EnhancedGameObject *m_colorSprite; // x0\n  __int64 v7; // x0\n  unsigned int *v8; // x9\n  __int64 v9; // x8\n  _QWORD *v10; // x22\n  unsigned __int64 v11; // x23\n  __int64 v12; // x20\n  int v13; // w0\n\n  if ( !a1->m_disableRotation )\n  {\n    v3 = 0;\n    v4 = a1->m_rotationAnimationSpeed + a2;\n    a1->m_rotationAnimationSpeed = v4;\n    v5 = v4 * a1->m_rotationDelta;\n    while ( 1 )\n    {\n      m_colorSprite = a1;\n      if ( !v3 )\n        goto LABEL_8;\n      if ( v3 != 1 )\n        break;\n      if ( !a1->m_colorSpriteLocked )\n      {\n        m_colorSprite = (EnhancedGameObject *)a1->m_colorSprite;\nLABEL_8:\n        if ( m_colorSprite )\n        {\n          v7 = ((__int64 (__fastcall *)(EnhancedGameObject *))m_colorSprite->getChildren)(m_colorSprite);\n          if ( v7 )\n          {\n            v8 = *(unsigned int **)(v7 + 56);\n            v9 = *v8;\n            if ( (_DWORD)v9 )\n            {\n              v10 = *((_QWORD **)v8 + 2);\n              v11 = (unsigned __int64)&v10[v9 - 1];\n              do\n              {\n                v12 = *v10;\n                if ( !*v10 )\n                  break;\n                v13 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v12 + 64LL))(*v10);\n                (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 344LL))(v12, v5 + (float)v13);\n                ++v10;\n              }\n              while ( (unsigned __int64)v10 <= v11 );\n            }\n          }\n        }\n      }\n      if ( ++v3 == 3 )\n        return;\n    }\n    m_colorSprite = (EnhancedGameObject *)a1->m_glowSprite;\n    goto LABEL_8;\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateRotateAction from 0x100264d94 to 0x100264e80 (236 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::updateVisibility @ 0x10011c9ec\n; > LevelEditorLayer::updateVisibility @ 0x10035ea6c\n; > LevelEditorLayer::updatePreviewAnim @ 0x10036412c\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\nLDRB            W8, [X0,#0x56C]                                        ; +0x0, 0x100264d94\nTBNZ            W8, #0, locret_100264E7C                               ; +0x4, 0x100264d98\nSTP             D9, D8, [SP,#-0x10+var_40]!                            ; +0x8, 0x100264d9c\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0xc, 0x100264da0\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x10, 0x100264da4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x14, 0x100264da8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x18, 0x100264dac\nADD             X29, SP, #0x40                                         ; +0x1c, 0x100264db0\nMOV             X19, X0                                                ; +0x20, 0x100264db4\nMOV             W21, #0                                                ; +0x24, 0x100264db8\nLDR             S1, [X0,#0x57C]                                        ; +0x28, 0x100264dbc\nFADD            S0, S1, S0                                             ; +0x2c, 0x100264dc0\nSTR             S0, [X0,#0x57C]                                        ; +0x30, 0x100264dc4\nLDR             S1, [X0,#0x578]                                        ; +0x34, 0x100264dc8\nFMUL            S8, S0, S1                                             ; +0x38, 0x100264dcc\nMOV             X0, X19                                                ; +0x3c, 0x100264dd0\nCBZ             W21, loc_100264DF4                                     ; +0x40, 0x100264dd4\nCMP             W21, #1                                                ; +0x44, 0x100264dd8\nB.NE            loc_100264DF0                                          ; +0x48, 0x100264ddc\nLDRB            W8, [X19,#0x362]                                       ; +0x4c, 0x100264de0\nTBNZ            W8, #0, loc_100264E5C                                  ; +0x50, 0x100264de4\nLDR             X0, [X19,#0x378]                                       ; +0x54, 0x100264de8\nB               loc_100264DF4                                          ; +0x58, 0x100264dec\nLDR             X0, [X19,#0x2F0]                                       ; +0x5c, 0x100264df0\nCBZ             X0, loc_100264E5C                                      ; +0x60, 0x100264df4\nLDR             X8, [X0]                                               ; +0x64, 0x100264df8\nLDR             X8, [X8,#0x1D8]                                        ; +0x68, 0x100264dfc\nBLR             X8                                                     ; +0x6c, 0x100264e00\nCBZ             X0, loc_100264E5C                                      ; +0x70, 0x100264e04\nLDR             X9, [X0,#0x38]                                         ; +0x74, 0x100264e08\nLDR             W8, [X9]                                               ; +0x78, 0x100264e0c\nCBZ             W8, loc_100264E5C                                      ; +0x7c, 0x100264e10\nLDR             X22, [X9,#0x10]                                        ; +0x80, 0x100264e14\nADD             X8, X22, X8,LSL#3                                      ; +0x84, 0x100264e18\nSUB             X23, X8, #8                                            ; +0x88, 0x100264e1c\nLDR             X20, [X22]                                             ; +0x8c, 0x100264e20\nCBZ             X20, loc_100264E5C                                     ; +0x90, 0x100264e24\nLDR             X8, [X20]                                              ; +0x94, 0x100264e28\nLDR             X8, [X8,#0x40]                                         ; +0x98, 0x100264e2c\nMOV             X0, X20                                                ; +0x9c, 0x100264e30\nBLR             X8                                                     ; +0xa0, 0x100264e34\nSCVTF           S0, W0                                                 ; +0xa4, 0x100264e38\nFADD            S0, S8, S0                                             ; +0xa8, 0x100264e3c\nLDR             X8, [X20]                                              ; +0xac, 0x100264e40\nLDR             X8, [X8,#0x158]                                        ; +0xb0, 0x100264e44\nMOV             X0, X20                                                ; +0xb4, 0x100264e48\nBLR             X8                                                     ; +0xb8, 0x100264e4c\nADD             X22, X22, #8                                           ; +0xbc, 0x100264e50\nCMP             X22, X23                                               ; +0xc0, 0x100264e54\nB.LS            loc_100264E20                                          ; +0xc4, 0x100264e58\nADD             W21, W21, #1                                           ; +0xc8, 0x100264e5c\nCMP             W21, #3                                                ; +0xcc, 0x100264e60\nB.NE            loc_100264DD0                                          ; +0xd0, 0x100264e64\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xd4, 0x100264e68\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xd8, 0x100264e6c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xdc, 0x100264e70\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xe0, 0x100264e74\nLDP             D9, D8, [SP+0x40+var_40],#0x50                         ; +0xe4, 0x100264e78\nRET                                                                    ; +0xe8, 0x100264e7c", "xrefs": ["PlayLayer::updateVisibility @ 0x10011c9ec", "LevelEditorLayer::updateVisibility @ 0x10035ea6c", "LevelEditorLayer::updatePreviewAnim @ 0x10036412c"], "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"}