{"type": "func", "start": 6629448, "end": 6629608, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x652848 to 0x6528e8 (160 bytes)\n// \n// 13 xrefs:\n// > EnhancedGameObject::refreshRotateAction @ 0x6528f4\n// > EnhancedGameObject::customObjectSetup @ 0x6529ac\n// > EnhancedGameObject::customSetup @ 0x652d80\n// > EnhancedGameObject::customSetup @ 0x652dfc\n// > EnhancedGameObject::customSetup @ 0x652fa4\n// > EnhancedGameObject::customSetup @ 0x653108\n// > EnhancedGameObject::customSetup @ 0x6531b0\n// > EnhancedGameObject::customSetup @ 0x65325c\n// > EnhancedGameObject::customSetup @ 0x653454\n// > EnhancedGameObject::customSetup @ 0x6537c4\n// > EnhancedGameObject::customSetup @ 0x653844\n// > EnhancedGameObject::customSetup @ 0x653a4c\n// > <???> @ 0xb5fc8\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 EnhancedGameObject::createRotateAction(EnhancedGameObject *a1, float a2, int a3)\n{\n  float m_rotationSpeed; // s2\n  int v5; // w0\n\n  if ( a2 != 0.0 )\n    a1->m_rotationAngle = a2;\n  m_rotationSpeed = a1->m_rotationSpeed;\n  if ( m_rotationSpeed != 0.0 )\n    goto LABEL_6;\n  if ( a3 )\n  {\n    a1->m_rotationDelta = (float)a3 * a2;\n  }\n  else\n  {\n    v5 = rand();\n    m_rotationSpeed = a2;\n    if ( (float)((float)v5 * 4.6566e-10) > 0.5 )\n    {\nLABEL_6:\n      a1->m_rotationDelta = 1.0 * m_rotationSpeed;\n      return;\n    }\n    a1->m_rotationDelta = -1.0 * a2;\n  }\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x652848 to 0x6528e8 (160 bytes)\n; \n; 13 xrefs:\n; > EnhancedGameObject::refreshRotateAction @ 0x6528f4\n; > EnhancedGameObject::customObjectSetup @ 0x6529ac\n; > EnhancedGameObject::customSetup @ 0x652d80\n; > EnhancedGameObject::customSetup @ 0x652dfc\n; > EnhancedGameObject::customSetup @ 0x652fa4\n; > EnhancedGameObject::customSetup @ 0x653108\n; > EnhancedGameObject::customSetup @ 0x6531b0\n; > EnhancedGameObject::customSetup @ 0x65325c\n; > EnhancedGameObject::customSetup @ 0x653454\n; > EnhancedGameObject::customSetup @ 0x6537c4\n; > EnhancedGameObject::customSetup @ 0x653844\n; > EnhancedGameObject::customSetup @ 0x653a4c\n; > <???> @ 0xb5fc8\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x652848\nFCMP            S0, #0.0                                               ; +0x4, 0x65284c\nMOV             X29, SP                                                ; +0x8, 0x652850\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x652854\nMOV             X19, X0                                                ; +0x10, 0x652858\nB.EQ            loc_652864                                             ; +0x14, 0x65285c\nSTR             S0, [X0,#0x564]                                        ; +0x18, 0x652860\nLDR             S2, [X19,#0x560]                                       ; +0x1c, 0x652864\nFCMP            S2, #0.0                                               ; +0x20, 0x652868\nB.NE            loc_65289C                                             ; +0x24, 0x65286c\nCBNZ            W1, loc_6528CC                                         ; +0x28, 0x652870\nSTR             Q0, [X29,#0x30+var_10]                                 ; +0x2c, 0x652874\nBL              .rand                                                  ; +0x30, 0x652878\nSCVTF           S1, W0                                                 ; +0x34, 0x65287c\nLDR             S2, =0x30000000                                        ; +0x38, 0x652880\nLDR             Q0, [X29,#0x30+var_10]                                 ; +0x3c, 0x652884\nFMUL            S1, S1, S2                                             ; +0x40, 0x652888\nFMOV            S2, #0.5                                               ; +0x44, 0x65288c\nFCMPE           S1, S2                                                 ; +0x48, 0x652890\nFMOV            S2, S0                                                 ; +0x4c, 0x652894\nB.LE            loc_6528B4                                             ; +0x50, 0x652898\nFMOV            S1, #1.0                                               ; +0x54, 0x65289c\nFMUL            S0, S1, S2                                             ; +0x58, 0x6528a0\nSTR             S0, [X19,#0x568]                                       ; +0x5c, 0x6528a4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x60, 0x6528a8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0x6528ac\nRET                                                                    ; +0x68, 0x6528b0\nFMOV            S1, #-1.0                                              ; +0x6c, 0x6528b4\nFMUL            S0, S1, S2                                             ; +0x70, 0x6528b8\nSTR             S0, [X19,#0x568]                                       ; +0x74, 0x6528bc\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x78, 0x6528c0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0x6528c4\nRET                                                                    ; +0x80, 0x6528c8\nSCVTF           S1, W1                                                 ; +0x84, 0x6528cc\nFMOV            S2, S0                                                 ; +0x88, 0x6528d0\nFMUL            S0, S1, S2                                             ; +0x8c, 0x6528d4\nSTR             S0, [X19,#0x568]                                       ; +0x90, 0x6528d8\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x94, 0x6528dc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x98, 0x6528e0\nRET                                                                    ; +0x9c, 0x6528e4", "xrefs": ["EnhancedGameObject::refreshRotateAction @ 0x6528f4", "EnhancedGameObject::customObjectSetup @ 0x6529ac", "EnhancedGameObject::customSetup @ 0x652d80", "EnhancedGameObject::customSetup @ 0x652dfc", "EnhancedGameObject::customSetup @ 0x652fa4", "EnhancedGameObject::customSetup @ 0x653108", "EnhancedGameObject::customSetup @ 0x6531b0", "EnhancedGameObject::customSetup @ 0x65325c", "EnhancedGameObject::customSetup @ 0x653454", "EnhancedGameObject::customSetup @ 0x6537c4", "EnhancedGameObject::customSetup @ 0x653844", "EnhancedGameObject::customSetup @ 0x653a4c", "<???> @ 0xb5fc8"], "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"}