{"type": "func", "start": 3541468, "end": 3541584, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x3609dc to 0x360a50 (116 bytes)\n// \n// 6 xrefs:\n// > EnhancedGameObject::refreshRotateAction @ 0x360a58\n// > EnhancedGameObject::customObjectSetup @ 0x360aec\n// > EnhancedGameObject::customSetup @ 0x3613f2\n// > EnhancedGameObject::customSetup @ 0x361800\n// > EnhancedGameObject::customSetup @ 0x3618b2\n// > EnhancedGameObject::customSetup @ 0x361946\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; // s16\n\n  m_rotationSpeed = a2;\n  if ( a2 != 0.0 )\n    a1->m_rotationAngle = a2;\n  if ( a1->m_rotationSpeed == 0.0 )\n  {\n    if ( !a3 )\n    {\n      if ( vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.5 )\n        a3 = -1;\n      else\n        a3 = 1;\n    }\n  }\n  else\n  {\n    m_rotationSpeed = a1->m_rotationSpeed;\n    a3 = 1;\n  }\n  a1->m_rotationDelta = m_rotationSpeed * (float)a3;\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x3609dc to 0x360a50 (116 bytes)\n; \n; 6 xrefs:\n; > EnhancedGameObject::refreshRotateAction @ 0x360a58\n; > EnhancedGameObject::customObjectSetup @ 0x360aec\n; > EnhancedGameObject::customSetup @ 0x3613f2\n; > EnhancedGameObject::customSetup @ 0x361800\n; > EnhancedGameObject::customSetup @ 0x3618b2\n; > EnhancedGameObject::customSetup @ 0x361946\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\nPUSH            {R4,LR}                                                ; +0x0, 0x3609dc\nMOV             R4, R0                                                 ; +0x2, 0x3609de\nVPUSH           {D8}                                                   ; +0x4, 0x3609e0\nVMOV            S16, R1                                                ; +0x8, 0x3609e4\nVCMP.F32        S16, #0.0                                              ; +0xc, 0x3609e8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x10, 0x3609ec\nITT NE                                                                 ; +0x14, 0x3609f0\nADDNE.W         R3, R0, #0x4B8                                         ; +0x16, 0x3609f2\nVSTRNE          S16, [R3]                                              ; +0x1a, 0x3609f6\nADDW            R3, R0, #0x4B4                                         ; +0x1e, 0x3609fa\nVLDR            S15, [R3]                                              ; +0x22, 0x3609fe\nVCMP.F32        S15, #0.0                                              ; +0x26, 0x360a02\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x360a06\nBNE             loc_360A30                                             ; +0x2e, 0x360a0a\nCBNZ            R2, loc_360A36                                         ; +0x30, 0x360a0c\nBLX             rand                                                   ; +0x32, 0x360a0e\nVMOV.F32        S15, #0.5                                              ; +0x36, 0x360a12\nVMOV            S14, R0                                                ; +0x3a, 0x360a16\nVCVT.F32.S32    S14, S14, #0x1F                                        ; +0x3e, 0x360a1a\nVCMPE.F32       S14, S15                                               ; +0x42, 0x360a1e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x46, 0x360a22\nITE GT                                                                 ; +0x4a, 0x360a26\nMOVGT           R2, #1                                                 ; +0x4c, 0x360a28\nMOVLE.W         R2, #0xFFFFFFFF                                        ; +0x4e, 0x360a2a\nB               loc_360A36                                             ; +0x52, 0x360a2e\nVMOV.F32        S16, S15                                               ; +0x54, 0x360a30\nMOVS            R2, #1                                                 ; +0x58, 0x360a34\nVMOV            S15, R2                                                ; +0x5a, 0x360a36\nADDW            R4, R4, #0x4BC                                         ; +0x5e, 0x360a3a\nVCVT.F32.S32    S15, S15                                               ; +0x62, 0x360a3e\nVMUL.F32        S16, S16, S15                                          ; +0x66, 0x360a42\nVSTR            S16, [R4]                                              ; +0x6a, 0x360a46\nVPOP            {D8}                                                   ; +0x6e, 0x360a4a\nPOP             {R4,PC}                                                ; +0x72, 0x360a4e", "xrefs": ["EnhancedGameObject::refreshRotateAction @ 0x360a58", "EnhancedGameObject::customObjectSetup @ 0x360aec", "EnhancedGameObject::customSetup @ 0x3613f2", "EnhancedGameObject::customSetup @ 0x361800", "EnhancedGameObject::customSetup @ 0x3618b2", "EnhancedGameObject::customSetup @ 0x361946"], "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"}