// // EditorUI::getRandomStartKey from 0xb064d8 to 0xb06714 (572 bytes) // // 4 xrefs: // > EditorUI::processSmartObjectsFromType @ 0x7c34a8 // > EditorUI::getSmartObjectKey @ 0xb06d88 // > SetupSmartBlockLayer::onCreate @ 0xb1421c // > @ 0xc29e0 // // 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 13:01:24 +0000 // __int64 __fastcall EditorUI::getRandomStartKey(__int64 this) { unsigned int v1; // w1 unsigned int v2; // w1 unsigned int v3; // w1 if ( (_DWORD)this == 1461 ) { qword_155E0A8 = 214013 * qword_155E0A8 + 2531011; v3 = vcvtms_s32_f32((float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0) * 4.0); if ( v3 == 1 ) { return 1462; } else if ( v3 == 2 ) { return 1463; } else if ( v3 ) { return 1464; } else { return 1461; } } else if ( (int)this <= 1461 ) { if ( (_DWORD)this == 869 ) { qword_155E0A8 = 214013 * qword_155E0A8 + 2531011; if ( vcvtms_s32_f32( (float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0)) ) { return 870; } else { return 869; } } else if ( (_DWORD)this == 1431 ) { qword_155E0A8 = 214013 * qword_155E0A8 + 2531011; v1 = vcvtms_s32_f32((float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0) * 3.0); if ( v1 ) { if ( v1 == 1 ) return 1432; else return 1433; } } } else { switch ( (_DWORD)this ) { case 0xA8F: qword_155E0A8 = 214013 * qword_155E0A8 + 2531011; if ( vcvtms_s32_f32( (float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0)) ) { return 2704; } else { return 2703; } case 0xB16: qword_155E0A8 = 214013 * qword_155E0A8 + 2531011; if ( vcvtms_s32_f32( (float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0) + (float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0)) ) { return 2840; } else { return 2838; } case 0x745: qword_155E0A8 = 214013 * qword_155E0A8 + 2531011; v2 = vcvtms_s32_f32((float)((float)(((unsigned __int64)qword_155E0A8 >> 16) & 0x7FFF) / 32767.0) * 4.0); if ( v2 == 1 ) { return 1862; } else if ( v2 == 2 ) { return 1863; } else if ( v2 ) { return 1864; } else { return 1861; } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source