{"type": "func", "start": 5371478544, "end": 5371478684, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x1402a4210 to 0x1402a429c (140 bytes)\n// \n// 9 xrefs:\n// > EnhancedGameObject::customObjectSetup @ 0x1402a1d38\n// > EnhancedGameObject::customSetup @ 0x1402a2123\n// > EnhancedGameObject::customSetup @ 0x1402a2a04\n// > EnhancedGameObject::customSetup @ 0x1402a2bf5\n// > EnhancedGameObject::customSetup @ 0x1402a2cb9\n// > EnhancedGameObject::customSetup @ 0x1402a2e44\n// > EnhancedGameObject::customSetup @ 0x1402a3193\n// > SetupRotatePopup::onClose @ 0x1405d8188\n// > <???> @ 0x14091da38\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:29:16 +0000\n// \n\nvoid __fastcall EnhancedGameObject::createRotateAction(float *a1, float a2, int a3)\n{\n  float v4; // xmm6_4\n  int v5; // eax\n\n  v4 = a2;\n  if ( a2 != 0.0 )\n    a1[353] = a2;\n  if ( a1[352] == 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    v4 = a1[352];\n    a3 = 1;\n  }\n  a1[354] = (float)a3 * v4;\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x1402a4210 to 0x1402a429c (140 bytes)\n; \n; 9 xrefs:\n; > EnhancedGameObject::customObjectSetup @ 0x1402a1d38\n; > EnhancedGameObject::customSetup @ 0x1402a2123\n; > EnhancedGameObject::customSetup @ 0x1402a2a04\n; > EnhancedGameObject::customSetup @ 0x1402a2bf5\n; > EnhancedGameObject::customSetup @ 0x1402a2cb9\n; > EnhancedGameObject::customSetup @ 0x1402a2e44\n; > EnhancedGameObject::customSetup @ 0x1402a3193\n; > SetupRotatePopup::onClose @ 0x1405d8188\n; > <???> @ 0x14091da38\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:29:16 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402a4210\nsub     rsp, 30h                                                       ; +0x2, 0x1402a4212\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x1402a4216\nmov     rbx, rcx                                                       ; +0xb, 0x1402a421b\nmovaps  xmm6, xmm1                                                     ; +0xe, 0x1402a421e\nxorps   xmm1, xmm1                                                     ; +0x11, 0x1402a4221\nucomiss xmm6, xmm1                                                     ; +0x14, 0x1402a4224\njp      short loc_1402A422B                                            ; +0x17, 0x1402a4227\njz      short loc_1402A4233                                            ; +0x19, 0x1402a4229\nmovss   dword ptr [rcx+584h], xmm6                                     ; +0x1b, 0x1402a422b\nmovss   xmm0, dword ptr [rcx+580h]                                     ; +0x23, 0x1402a4233\nucomiss xmm0, xmm1                                                     ; +0x2b, 0x1402a423b\njp      short loc_1402A4274                                            ; +0x2e, 0x1402a423e\njnz     short loc_1402A4274                                            ; +0x30, 0x1402a4240\ntest    r8d, r8d                                                       ; +0x32, 0x1402a4242\njnz     short loc_1402A427D                                            ; +0x35, 0x1402a4245\ncall    cs:rand                                                        ; +0x37, 0x1402a4247\nmov     r8d, 0FFFFFFFFh                                                ; +0x3d, 0x1402a424d\nmovd    xmm0, eax                                                      ; +0x43, 0x1402a4253\nmov     eax, 1                                                         ; +0x47, 0x1402a4257\ncvtdq2ps xmm0, xmm0                                                    ; +0x4c, 0x1402a425c\ndivss   xmm0, cs:dword_140835BDC                                       ; +0x4f, 0x1402a425f\ncomiss  xmm0, cs:dword_140834F20                                       ; +0x57, 0x1402a4267\ncmova   r8d, eax                                                       ; +0x5e, 0x1402a426e\njmp     short loc_1402A427D                                            ; +0x62, 0x1402a4272\nmovaps  xmm6, xmm0                                                     ; +0x64, 0x1402a4274\nmov     r8d, 1                                                         ; +0x67, 0x1402a4277\nmovd    xmm0, r8d                                                      ; +0x6d, 0x1402a427d\ncvtdq2ps xmm0, xmm0                                                    ; +0x72, 0x1402a4282\nmulss   xmm0, xmm6                                                     ; +0x75, 0x1402a4285\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x79, 0x1402a4289\nmovss   dword ptr [rbx+588h], xmm0                                     ; +0x7e, 0x1402a428e\nadd     rsp, 30h                                                       ; +0x86, 0x1402a4296\npop     rbx                                                            ; +0x8a, 0x1402a429a\nretn                                                                   ; +0x8b, 0x1402a429b", "xrefs": ["EnhancedGameObject::customObjectSetup @ 0x1402a1d38", "EnhancedGameObject::customSetup @ 0x1402a2123", "EnhancedGameObject::customSetup @ 0x1402a2a04", "EnhancedGameObject::customSetup @ 0x1402a2bf5", "EnhancedGameObject::customSetup @ 0x1402a2cb9", "EnhancedGameObject::customSetup @ 0x1402a2e44", "EnhancedGameObject::customSetup @ 0x1402a3193", "SetupRotatePopup::onClose @ 0x1405d8188", "<???> @ 0x14091da38"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}