{"type": "func", "start": 4301047760, "end": 4301047914, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x1005cc7d0 to 0x1005cc86a (154 bytes)\n// \n// 2 xrefs:\n// > EnhancedGameObject::customSetup @ 0x1005ccd68\n// > EnhancedGameObject::customSetup @ 0x1005ccfd3\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall EnhancedGameObject::createRotateAction(EnhancedGameObject *a1, float a2, int a3)\n{\n  __m128 v3; // xmm3\n  __m128 v4; // xmm2\n\n  if ( a2 != 0.0 )\n    a1->m_rotationAngle = a2;\n  v3.i32[0] = LODWORD(a1->m_rotationSpeed);\n  if ( v3.f32[0] != 0.0 )\n    a3 = 1;\n  if ( !a3 )\n    a3 = 2 * ((float)((float)rand() * 4.6566129e-10) > 0.5) - 1;\n  v4 = _mm_cmpneq_ss((__m128)0LL, v3);\n  a1->m_rotationDelta = (float)a3 * COERCE_FLOAT(_mm_andnot_ps(v4, *(__m128 *)&a2).u32[0] | v3.i32[0] & v4.i32[0]);\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x1005cc7d0 to 0x1005cc86a (154 bytes)\n; \n; 2 xrefs:\n; > EnhancedGameObject::customSetup @ 0x1005ccd68\n; > EnhancedGameObject::customSetup @ 0x1005ccfd3\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    rbp                                                            ; +0x0, 0x1005cc7d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005cc7d1\npush    rbx                                                            ; +0x4, 0x1005cc7d4\nsub     rsp, 28h                                                       ; +0x5, 0x1005cc7d5\nmov     rbx, rdi                                                       ; +0x9, 0x1005cc7d9\nxorps   xmm1, xmm1                                                     ; +0xc, 0x1005cc7dc\nucomiss xmm0, xmm1                                                     ; +0xf, 0x1005cc7df\njnz     short loc_1005CC7E6                                            ; +0x12, 0x1005cc7e2\njnp     short loc_1005CC7EE                                            ; +0x14, 0x1005cc7e4\nmovss   dword ptr [rbx+574h], xmm0                                     ; +0x16, 0x1005cc7e6\nmovss   xmm3, dword ptr [rbx+570h]                                     ; +0x1e, 0x1005cc7ee\nucomiss xmm1, xmm3                                                     ; +0x26, 0x1005cc7f6\nmov     eax, 1                                                         ; +0x29, 0x1005cc7f9\ncmovnz  esi, eax                                                       ; +0x2e, 0x1005cc7fe\ncmovp   esi, eax                                                       ; +0x31, 0x1005cc801\ntest    esi, esi                                                       ; +0x34, 0x1005cc804\njnz     short loc_1005CC83F                                            ; +0x36, 0x1005cc806\nmovaps  [rbp+var_30], xmm0                                             ; +0x38, 0x1005cc808\nmovaps  [rbp+var_20], xmm3                                             ; +0x3c, 0x1005cc80c\ncall    _rand                                                          ; +0x40, 0x1005cc810\nmovaps  xmm3, [rbp+var_20]                                             ; +0x45, 0x1005cc815\nmovaps  xmm0, [rbp+var_30]                                             ; +0x49, 0x1005cc819\nxorps   xmm1, xmm1                                                     ; +0x4d, 0x1005cc81d\ncvtsi2ss xmm1, eax                                                     ; +0x50, 0x1005cc820\nmulss   xmm1, cs:dword_100815710                                       ; +0x54, 0x1005cc824\nxor     eax, eax                                                       ; +0x5c, 0x1005cc82c\nucomiss xmm1, cs:dword_100814FA8                                       ; +0x5e, 0x1005cc82e\nsetnbe  al                                                             ; +0x65, 0x1005cc835\nlea     esi, ds:0FFFFFFFFFFFFFFFFh[rax*2]                              ; +0x68, 0x1005cc838\nxorps   xmm2, xmm2                                                     ; +0x6f, 0x1005cc83f\ncmpneqss xmm2, xmm3                                                    ; +0x72, 0x1005cc842\nandps   xmm3, xmm2                                                     ; +0x77, 0x1005cc847\nxorps   xmm1, xmm1                                                     ; +0x7a, 0x1005cc84a\ncvtsi2ss xmm1, esi                                                     ; +0x7d, 0x1005cc84d\nandnps  xmm2, xmm0                                                     ; +0x81, 0x1005cc851\norps    xmm2, xmm3                                                     ; +0x84, 0x1005cc854\nmulss   xmm1, xmm2                                                     ; +0x87, 0x1005cc857\nmovss   dword ptr [rbx+578h], xmm1                                     ; +0x8b, 0x1005cc85b\nadd     rsp, 28h                                                       ; +0x93, 0x1005cc863\npop     rbx                                                            ; +0x97, 0x1005cc867\npop     rbp                                                            ; +0x98, 0x1005cc868\nretn                                                                   ; +0x99, 0x1005cc869", "xrefs": ["EnhancedGameObject::customSetup @ 0x1005ccd68", "EnhancedGameObject::customSetup @ 0x1005ccfd3"], "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"}