// // EditorUI::getRandomStartKey from 0x10007fd50 to 0x10007ff70 (544 bytes) // // 2 xrefs: // > SetupSmartBlockLayer::onCreate @ 0x10007852c // > EditorUI::processSmartObjectsFromType @ 0x10047a004 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 10:58:16 +0000 // __int64 __fastcall EditorUI::getRandomStartKey(__int64 result) { unsigned __int64 v1; // x10 unsigned int v2; // w8 unsigned int v3; // w9 bool v4; // cf unsigned int v5; // w8 unsigned __int64 v6; // x10 unsigned int v7; // w8 bool v8; // zf unsigned int v9; // w8 unsigned int v10; // w8 unsigned int v11; // w9 if ( (int)result > 1860 ) { if ( (_DWORD)result == 2838 ) { qword_1009F3730 = 214013 * qword_1009F3730 + 2531011; if ( vcvtms_s32_f32( (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)) ) { return 2840; } else { return 2838; } } if ( (_DWORD)result != 2703 ) { if ( (_DWORD)result != 1861 ) return result; v6 = ((unsigned __int64)(214013 * qword_1009F3730 + 2531011) >> 16) & 0x7FFF; qword_1009F3730 = 214013 * qword_1009F3730 + 2531011; v7 = vcvtms_s32_f32((float)((float)v6 / 32767.0) * 4.0); v3 = v7 + 1861; v4 = v7 >= 3; v5 = 1864; goto LABEL_10; } qword_1009F3730 = 214013 * qword_1009F3730 + 2531011; v8 = vcvtms_s32_f32( (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)) == 0; v9 = 2703; LABEL_24: if ( v8 ) return v9; else return v9 + 1; } if ( (_DWORD)result == 869 ) { qword_1009F3730 = 214013 * qword_1009F3730 + 2531011; v8 = vcvtms_s32_f32( (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0)) == 0; v9 = 869; goto LABEL_24; } if ( (_DWORD)result != 1431 ) { if ( (_DWORD)result != 1461 ) return result; v1 = ((unsigned __int64)(214013 * qword_1009F3730 + 2531011) >> 16) & 0x7FFF; qword_1009F3730 = 214013 * qword_1009F3730 + 2531011; v2 = vcvtms_s32_f32((float)((float)v1 / 32767.0) * 4.0); v3 = v2 + 1461; v4 = v2 >= 3; v5 = 1464; LABEL_10: if ( v4 ) return v5; else return v3; } qword_1009F3730 = 214013 * qword_1009F3730 + 2531011; v10 = vcvtms_s32_f32((float)((float)(((unsigned __int64)qword_1009F3730 >> 16) & 0x7FFF) / 32767.0) * 3.0); if ( v10 == 1 ) v11 = 1432; else v11 = 1433; if ( v10 ) return v11; else return 1431; }