// // EditorUI::getRandomStartKey from 0x535bb0 to 0x535d74 (452 bytes) // // 3 xrefs: // > EditorUI::processSmartObjectsFromType @ 0x37e37a // > EditorUI::getSmartObjectKey @ 0x535efc // > SetupSmartBlockLayer::onCreate @ 0x53d548 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int EditorUI::getRandomStartKey(int a1) { int v1; // r4 float v2; // r0 int v3; // r0 float v4; // r0 float v5; // r0 int v6; // r3 int v7; // r0 float v8; // r0 int v9; // r0 float v10; // r0 int v11; // r0 float v12; // r0 float v13; // r0 float v14; // r0 v1 = a1; if ( a1 == 1461 ) { v10 = (float)sub_535B50(); v11 = (int)floorf((float)(v10 / 32767.0) * 4.0); if ( v11 == 1 ) return 1462; if ( v11 == 2 ) return 1463; if ( v11 ) return 1464; return v1; } if ( a1 <= 1461 ) { if ( a1 != 869 ) { if ( a1 != 1431 ) return a1; v8 = (float)sub_535B50(); v9 = (int)floorf((float)(v8 / 32767.0) * 3.0); if ( v9 ) { if ( v9 == 1 ) return 1432; else return 1433; } return v1; } v13 = (float)sub_535B50(); v14 = floorf((float)(v13 / 32767.0) + (float)(v13 / 32767.0)); v6 = 870; v7 = (int)v14; LABEL_31: if ( v7 ) return v6; return v1; } switch ( a1 ) { case 2703: v12 = (float)sub_535B50(); if ( (int)floorf((float)(v12 / 32767.0) + (float)(v12 / 32767.0)) ) return 2704; return v1; case 2838: v4 = (float)sub_535B50(); v5 = floorf((float)(v4 / 32767.0) + (float)(v4 / 32767.0)); v6 = 2840; v7 = (int)v5; goto LABEL_31; case 1861: v2 = (float)sub_535B50(); v3 = (int)floorf((float)(v2 / 32767.0) * 4.0); if ( v3 == 1 ) return 1862; if ( v3 == 2 ) return 1863; if ( v3 ) return 1864; return v1; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source