{"type": "func", "start": 4297471192, "end": 4297471304, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x1002634d8 to 0x100263548 (112 bytes)\n// \n// 7 xrefs:\n// > EnhancedGameObject::customObjectSetup @ 0x100263314\n// > EnhancedGameObject::customSetup @ 0x1002636a0\n// > EnhancedGameObject::customSetup @ 0x100263fdc\n// > EnhancedGameObject::customSetup @ 0x1002640ac\n// > EnhancedGameObject::customSetup @ 0x10026412c\n// > EnhancedGameObject::customSetup @ 0x1002642a0\n// > EnhancedGameObject::refreshRotateAction @ 0x100264d90\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::createRotateAction(EnhancedGameObject *a1, float a2, int a3)\n{\n  float m_rotationSpeed; // s9\n  float v7; // s0\n\n  if ( a2 != 0.0 )\n    a1->m_rotationAngle = a2;\n  m_rotationSpeed = a1->m_rotationSpeed;\n  if ( m_rotationSpeed != 0.0 )\n    a3 = 1;\n  if ( !a3 )\n  {\n    if ( vcvts_n_f32_s32(rand(), 0x1Fu) > 0.5 )\n      a3 = 1;\n    else\n      a3 = -1;\n  }\n  if ( m_rotationSpeed == 0.0 )\n    v7 = a2;\n  else\n    v7 = m_rotationSpeed;\n  a1->m_rotationDelta = v7 * (float)a3;\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x1002634d8 to 0x100263548 (112 bytes)\n; \n; 7 xrefs:\n; > EnhancedGameObject::customObjectSetup @ 0x100263314\n; > EnhancedGameObject::customSetup @ 0x1002636a0\n; > EnhancedGameObject::customSetup @ 0x100263fdc\n; > EnhancedGameObject::customSetup @ 0x1002640ac\n; > EnhancedGameObject::customSetup @ 0x10026412c\n; > EnhancedGameObject::customSetup @ 0x1002642a0\n; > EnhancedGameObject::refreshRotateAction @ 0x100264d90\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\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x0, 0x1002634d8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002634dc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002634e0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002634e4\nFMOV            S8, S0                                                 ; +0x10, 0x1002634e8\nMOV             X19, X0                                                ; +0x14, 0x1002634ec\nFCMP            S0, #0.0                                               ; +0x18, 0x1002634f0\nB.EQ            loc_1002634FC                                          ; +0x1c, 0x1002634f4\nSTR             S8, [X19,#0x574]                                       ; +0x20, 0x1002634f8\nLDR             S9, [X19,#0x570]                                       ; +0x24, 0x1002634fc\nFCMP            S9, #0.0                                               ; +0x28, 0x100263500\nCSINC           W8, W1, WZR, EQ                                        ; +0x2c, 0x100263504\nCBNZ            W8, loc_100263524                                      ; +0x30, 0x100263508\nBL              _rand                                                  ; +0x34, 0x10026350c\nSCVTF           S0, W0, #0x1F                                          ; +0x38, 0x100263510\nFMOV            S1, #0.5                                               ; +0x3c, 0x100263514\nFCMP            S0, S1                                                 ; +0x40, 0x100263518\nMOV             W8, #0xFFFFFFFF                                        ; +0x44, 0x10026351c\nCSINC           W8, W8, WZR, LE                                        ; +0x48, 0x100263520\nFCMP            S9, #0.0                                               ; +0x4c, 0x100263524\nFCSEL           S0, S9, S8, NE                                         ; +0x50, 0x100263528\nSCVTF           S1, W8                                                 ; +0x54, 0x10026352c\nFMUL            S0, S0, S1                                             ; +0x58, 0x100263530\nSTR             S0, [X19,#0x578]                                       ; +0x5c, 0x100263534\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x100263538\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x10026353c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0x68, 0x100263540\nRET                                                                    ; +0x6c, 0x100263544", "xrefs": ["EnhancedGameObject::customObjectSetup @ 0x100263314", "EnhancedGameObject::customSetup @ 0x1002636a0", "EnhancedGameObject::customSetup @ 0x100263fdc", "EnhancedGameObject::customSetup @ 0x1002640ac", "EnhancedGameObject::customSetup @ 0x10026412c", "EnhancedGameObject::customSetup @ 0x1002642a0", "EnhancedGameObject::refreshRotateAction @ 0x100264d90"], "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"}