{"type": "func", "start": 4530682, "end": 4530798, "name": "EnhancedGameObject::createRotateAction", "pseudocode": "// \n// EnhancedGameObject::createRotateAction from 0x4521fa to 0x45226e (116 bytes)\n// \n// 6 xrefs:\n// > EnhancedGameObject::refreshRotateAction @ 0x452276\n// > EnhancedGameObject::customObjectSetup @ 0x45234a\n// > EnhancedGameObject::customSetup @ 0x45a39a\n// > EnhancedGameObject::customSetup @ 0x45a7a8\n// > EnhancedGameObject::customSetup @ 0x45a85a\n// > EnhancedGameObject::customSetup @ 0x45a8ee\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:37 +0000\n// \n\nunsigned int __fastcall EnhancedGameObject::createRotateAction(unsigned int this, float a2, int a3)\n{\n  unsigned int v3; // r4\n  float v4; // s16\n\n  v3 = this;\n  v4 = a2;\n  if ( a2 != 0.0 )\n    *(float *)(this + 1216) = a2;\n  if ( *(float *)(this + 1212) == 0.0 )\n  {\n    if ( !a3 )\n    {\n      this = rand();\n      if ( vcvts_n_f32_s32(this, 0x1Fu) <= 0.5 )\n        a3 = -1;\n      else\n        a3 = 1;\n    }\n  }\n  else\n  {\n    v4 = *(float *)(this + 1212);\n    a3 = 1;\n  }\n  *(float *)(v3 + 1220) = v4 * (float)a3;\n  return this;\n}", "assembly": "; \n; EnhancedGameObject::createRotateAction from 0x4521fa to 0x45226e (116 bytes)\n; \n; 6 xrefs:\n; > EnhancedGameObject::refreshRotateAction @ 0x452276\n; > EnhancedGameObject::customObjectSetup @ 0x45234a\n; > EnhancedGameObject::customSetup @ 0x45a39a\n; > EnhancedGameObject::customSetup @ 0x45a7a8\n; > EnhancedGameObject::customSetup @ 0x45a85a\n; > EnhancedGameObject::customSetup @ 0x45a8ee\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:37 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x4521fa\nMOV             R4, R0                                                 ; +0x2, 0x4521fc\nVPUSH           {D8}                                                   ; +0x4, 0x4521fe\nVMOV            S16, R1                                                ; +0x8, 0x452202\nVCMP.F32        S16, #0.0                                              ; +0xc, 0x452206\nVMRS            APSR_nzcv, FPSCR                                       ; +0x10, 0x45220a\nITT NE                                                                 ; +0x14, 0x45220e\nADDNE.W         R3, R0, #0x4C0                                         ; +0x16, 0x452210\nVSTRNE          S16, [R3]                                              ; +0x1a, 0x452214\nADDW            R3, R0, #0x4BC                                         ; +0x1e, 0x452218\nVLDR            S15, [R3]                                              ; +0x22, 0x45221c\nVCMP.F32        S15, #0.0                                              ; +0x26, 0x452220\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2a, 0x452224\nBNE             loc_45224E                                             ; +0x2e, 0x452228\nCBNZ            R2, loc_452254                                         ; +0x30, 0x45222a\nBLX             rand                                                   ; +0x32, 0x45222c\nVMOV.F32        S15, #0.5                                              ; +0x36, 0x452230\nVMOV            S14, R0                                                ; +0x3a, 0x452234\nVCVT.F32.S32    S14, S14, #0x1F                                        ; +0x3e, 0x452238\nVCMPE.F32       S14, S15                                               ; +0x42, 0x45223c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x46, 0x452240\nITE GT                                                                 ; +0x4a, 0x452244\nMOVGT           R2, #1                                                 ; +0x4c, 0x452246\nMOVLE.W         R2, #0xFFFFFFFF                                        ; +0x4e, 0x452248\nB               loc_452254                                             ; +0x52, 0x45224c\nVMOV.F32        S16, S15                                               ; +0x54, 0x45224e\nMOVS            R2, #1                                                 ; +0x58, 0x452252\nVMOV            S15, R2                                                ; +0x5a, 0x452254\nADDW            R4, R4, #0x4C4                                         ; +0x5e, 0x452258\nVCVT.F32.S32    S15, S15                                               ; +0x62, 0x45225c\nVMUL.F32        S16, S16, S15                                          ; +0x66, 0x452260\nVSTR            S16, [R4]                                              ; +0x6a, 0x452264\nVPOP            {D8}                                                   ; +0x6e, 0x452268\nPOP             {R4,PC}                                                ; +0x72, 0x45226c", "xrefs": ["EnhancedGameObject::refreshRotateAction @ 0x452276", "EnhancedGameObject::customObjectSetup @ 0x45234a", "EnhancedGameObject::customSetup @ 0x45a39a", "EnhancedGameObject::customSetup @ 0x45a7a8", "EnhancedGameObject::customSetup @ 0x45a85a", "EnhancedGameObject::customSetup @ 0x45a8ee"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}