{"type": "func", "start": 5370442368, "end": 5370442508, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x1401a7280 to 0x1401a730c (140 bytes)\n// \n// 9 xrefs:\n// > EnhancedGameObject::customObjectSetup @ 0x1401a4d55\n// > EnhancedGameObject::customSetup @ 0x1401a5111\n// > EnhancedGameObject::customSetup @ 0x1401a59dc\n// > EnhancedGameObject::customSetup @ 0x1401a5bc8\n// > EnhancedGameObject::customSetup @ 0x1401a5c8c\n// > EnhancedGameObject::customSetup @ 0x1401a5e11\n// > EnhancedGameObject::customSetup @ 0x1401a6113\n// > SetupRotatePopup::onClose @ 0x140443048\n// > <???> @ 0x1406cc0d8\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; // xmm6_4\n  int v5; // eax\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      v5 = rand();\n      a3 = -1;\n      if ( (float)((float)v5 / 32767.0) > 0.5 )\n        a3 = 1;\n    }\n  }\n  else\n  {\n    m_rotationSpeed = a1->m_rotationSpeed;\n    a3 = 1;\n  }\n  a1->m_rotationDelta = (float)a3 * m_rotationSpeed;\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x1401a7280 to 0x1401a730c (140 bytes)\n; \n; 9 xrefs:\n; > EnhancedGameObject::customObjectSetup @ 0x1401a4d55\n; > EnhancedGameObject::customSetup @ 0x1401a5111\n; > EnhancedGameObject::customSetup @ 0x1401a59dc\n; > EnhancedGameObject::customSetup @ 0x1401a5bc8\n; > EnhancedGameObject::customSetup @ 0x1401a5c8c\n; > EnhancedGameObject::customSetup @ 0x1401a5e11\n; > EnhancedGameObject::customSetup @ 0x1401a6113\n; > SetupRotatePopup::onClose @ 0x140443048\n; > <???> @ 0x1406cc0d8\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    rbx                                                            ; +0x0, 0x1401a7280\nsub     rsp, 30h                                                       ; +0x2, 0x1401a7282\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x1401a7286\nmov     rbx, rcx                                                       ; +0xb, 0x1401a728b\nmovaps  xmm6, xmm1                                                     ; +0xe, 0x1401a728e\nxorps   xmm1, xmm1                                                     ; +0x11, 0x1401a7291\nucomiss xmm6, xmm1                                                     ; +0x14, 0x1401a7294\njp      short loc_1401A729B                                            ; +0x17, 0x1401a7297\njz      short loc_1401A72A3                                            ; +0x19, 0x1401a7299\nmovss   dword ptr [rcx+584h], xmm6                                     ; +0x1b, 0x1401a729b\nmovss   xmm0, dword ptr [rcx+580h]                                     ; +0x23, 0x1401a72a3\nucomiss xmm0, xmm1                                                     ; +0x2b, 0x1401a72ab\njp      short loc_1401A72E4                                            ; +0x2e, 0x1401a72ae\njnz     short loc_1401A72E4                                            ; +0x30, 0x1401a72b0\ntest    r8d, r8d                                                       ; +0x32, 0x1401a72b2\njnz     short loc_1401A72ED                                            ; +0x35, 0x1401a72b5\ncall    cs:rand                                                        ; +0x37, 0x1401a72b7\nmov     r8d, 0FFFFFFFFh                                                ; +0x3d, 0x1401a72bd\nmovd    xmm0, eax                                                      ; +0x43, 0x1401a72c3\nmov     eax, 1                                                         ; +0x47, 0x1401a72c7\ncvtdq2ps xmm0, xmm0                                                    ; +0x4c, 0x1401a72cc\ndivss   xmm0, cs:dword_140623644                                       ; +0x4f, 0x1401a72cf\ncomiss  xmm0, cs:dword_140622B08                                       ; +0x57, 0x1401a72d7\ncmova   r8d, eax                                                       ; +0x5e, 0x1401a72de\njmp     short loc_1401A72ED                                            ; +0x62, 0x1401a72e2\nmovaps  xmm6, xmm0                                                     ; +0x64, 0x1401a72e4\nmov     r8d, 1                                                         ; +0x67, 0x1401a72e7\nmovd    xmm0, r8d                                                      ; +0x6d, 0x1401a72ed\ncvtdq2ps xmm0, xmm0                                                    ; +0x72, 0x1401a72f2\nmulss   xmm0, xmm6                                                     ; +0x75, 0x1401a72f5\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x79, 0x1401a72f9\nmovss   dword ptr [rbx+588h], xmm0                                     ; +0x7e, 0x1401a72fe\nadd     rsp, 30h                                                       ; +0x86, 0x1401a7306\npop     rbx                                                            ; +0x8a, 0x1401a730a\nretn                                                                   ; +0x8b, 0x1401a730b", "xrefs": ["EnhancedGameObject::customObjectSetup @ 0x1401a4d55", "EnhancedGameObject::customSetup @ 0x1401a5111", "EnhancedGameObject::customSetup @ 0x1401a59dc", "EnhancedGameObject::customSetup @ 0x1401a5bc8", "EnhancedGameObject::customSetup @ 0x1401a5c8c", "EnhancedGameObject::customSetup @ 0x1401a5e11", "EnhancedGameObject::customSetup @ 0x1401a6113", "SetupRotatePopup::onClose @ 0x140443048", "<???> @ 0x1406cc0d8"], "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"}