// // EditorUI::getRandomStartKey from 0x66ad00 to 0x66aec4 (452 bytes) // // 3 xrefs: // > EditorUI::processSmartObjectsFromType @ 0x482b66 // > EditorUI::getSmartObjectKey @ 0x66b04c // > SetupSmartBlockLayer::onCreate @ 0x6726b4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:55:45 +0000 // int __fastcall EditorUI::getRandomStartKey(int this, int a2) { int v2; // r4 float v3; // r0 int v4; // r0 float v5; // r0 float v6; // r0 int v7; // r3 int v8; // r0 float v9; // r0 int v10; // r0 float v11; // r0 int v12; // r0 float v13; // r0 float v14; // r0 float v15; // r0 v2 = this; if ( this == 1461 ) { v11 = (float)sub_66ACA0(); v12 = (int)floorf((float)(v11 / 32767.0) * 4.0); if ( v12 == 1 ) return 1462; if ( v12 == 2 ) return 1463; if ( v12 ) return 1464; return v2; } if ( this <= 1461 ) { if ( this != 869 ) { if ( this != 1431 ) return this; v9 = (float)sub_66ACA0(); v10 = (int)floorf((float)(v9 / 32767.0) * 3.0); if ( v10 ) { if ( v10 == 1 ) return 1432; else return 1433; } return v2; } v14 = (float)sub_66ACA0(); v15 = floorf((float)(v14 / 32767.0) + (float)(v14 / 32767.0)); v7 = 870; v8 = (int)v15; LABEL_31: if ( v8 ) return v7; return v2; } switch ( this ) { case 2703: v13 = (float)sub_66ACA0(); if ( (int)floorf((float)(v13 / 32767.0) + (float)(v13 / 32767.0)) ) return 2704; return v2; case 2838: v5 = (float)sub_66ACA0(); v6 = floorf((float)(v5 / 32767.0) + (float)(v5 / 32767.0)); v7 = 2840; v8 = (int)v6; goto LABEL_31; case 1861: v3 = (float)sub_66ACA0(); v4 = (int)floorf((float)(v3 / 32767.0) * 4.0); if ( v4 == 1 ) return 1862; if ( v4 == 2 ) return 1863; if ( v4 ) return 1864; return v2; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source