// // EditorUI::getSmartObjectKey from 0x1006efde0 to 0x1006f0285 (1189 bytes) // // 1 xrefs: // > EditorUI::processSmartObjectsFromType @ 0x1000153f9 // // This function is hookable on this platform (idp: pc, 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 12:35:51 +0000 // __int64 __fastcall EditorUI::getSmartObjectKey(int a1, int a2, __m128 a3) { unsigned int v3; // esi __int64 result; // rax __int64 v5; // rax unsigned int *v6; // rcx unsigned int v7; // esi unsigned int v8; // esi unsigned int v9; // esi unsigned int v10; // esi unsigned int v11; // esi unsigned int v12; // esi unsigned int v13; // esi unsigned int v14; // esi unsigned int v15; // esi unsigned int v16; // esi unsigned int v17; // esi unsigned int v18; // esi unsigned int v19; // esi unsigned int v20; // esi unsigned int v21; // esi unsigned int v22; // esi unsigned int v23; // esi unsigned int v24; // esi unsigned int v25; // esi unsigned int v26; // esi unsigned int v27; // esi unsigned int v28; // esi unsigned int v29; // esi unsigned int v30; // esi unsigned int v31; // esi unsigned int v32; // esi unsigned int v33; // esi unsigned int v34; // esi unsigned int v35; // esi unsigned int v36; // esi unsigned int v37; // esi if ( a1 <= 1860 ) { switch ( a1 ) { case 1431: case 1432: case 1433: qword_100BE6530 = 214013 * qword_100BE6530 + 2531011; a3.f32[0] = (float)((float)(WORD1(qword_100BE6530) & 0x7FFF) / 32767.0) * 3.0; a3.f32[0] = _mm_round_ss(a3, a3, 9).f32[0]; result = 1431; if ( (int)a3.f32[0] ) return ((int)a3.f32[0] == 1) ^ 0x599u; return result; case 1434: case 1435: case 1436: case 1437: case 1438: case 1439: case 1440: case 1441: case 1442: case 1443: case 1444: case 1445: case 1446: case 1447: case 1448: case 1449: case 1450: case 1451: case 1452: case 1453: case 1454: case 1455: case 1456: case 1457: case 1458: case 1459: case 1460: return 1461; case 1461: v8 = a2 - 1; result = 1464; if ( v8 >= 4 ) return result; v5 = v8; v6 = (unsigned int *)&unk_100A118C0; break; case 1462: v10 = a2 - 1; result = 1463; if ( v10 >= 4 ) return result; v5 = v10; v6 = (unsigned int *)&unk_100A118D0; break; case 1463: v11 = a2 - 1; result = 1462; if ( v11 >= 4 ) return result; v5 = v11; v6 = (unsigned int *)&unk_100A118E0; break; case 1464: v9 = a2 - 1; result = 1461; if ( v9 >= 4 ) return result; v5 = v9; v6 = (unsigned int *)&unk_100A118F0; break; default: result = 870; if ( a1 != 869 ) { if ( a1 == 870 ) return 869; else return 1461; } return result; } } else { switch ( a1 ) { case 1861: v3 = a2 - 1; result = 1864; if ( v3 >= 4 ) return result; v5 = v3; v6 = (unsigned int *)&unk_100A11900; break; case 1862: v27 = a2 - 1; result = 1863; if ( v27 >= 4 ) return result; v5 = v27; v6 = (unsigned int *)&unk_100A11910; break; case 1863: v26 = a2 - 1; result = 1862; if ( v26 >= 4 ) return result; v5 = v26; v6 = (unsigned int *)&unk_100A11920; break; case 1864: v30 = a2 - 1; result = 1861; if ( v30 >= 4 ) return result; v5 = v30; v6 = (unsigned int *)&unk_100A11930; break; case 1865: v28 = a2 - 1; result = 1868; if ( v28 >= 4 ) return result; v5 = v28; v6 = (unsigned int *)&unk_100A11940; break; case 1866: v21 = a2 - 1; result = 1867; if ( v21 >= 4 ) return result; v5 = v21; v6 = (unsigned int *)&unk_100A11950; break; case 1867: v19 = a2 - 1; result = 1866; if ( v19 >= 4 ) return result; v5 = v19; v6 = (unsigned int *)&unk_100A11960; break; case 1868: v18 = a2 - 1; result = 1865; if ( v18 >= 4 ) return result; v5 = v18; v6 = (unsigned int *)&unk_100A11970; break; case 1869: v13 = a2 - 1; result = 1872; if ( v13 >= 4 ) return result; v5 = v13; v6 = (unsigned int *)&unk_100A11980; break; case 1870: v23 = a2 - 1; result = 1871; if ( v23 >= 4 ) return result; v5 = v23; v6 = (unsigned int *)&unk_100A11990; break; case 1871: v14 = a2 - 1; result = 1870; if ( v14 >= 4 ) return result; v5 = v14; v6 = (unsigned int *)&unk_100A119A0; break; case 1872: v12 = a2 - 1; result = 1869; if ( v12 >= 4 ) return result; v5 = v12; v6 = (unsigned int *)&unk_100A119B0; break; case 1873: return 1461; case 1874: v20 = a2 - 1; result = 1877; if ( v20 >= 4 ) return result; v5 = v20; v6 = (unsigned int *)&unk_100A119C0; break; case 1875: v31 = a2 - 1; result = 1876; if ( v31 >= 4 ) return result; v5 = v31; v6 = (unsigned int *)&unk_100A119D0; break; case 1876: v17 = a2 - 1; result = 1875; if ( v17 >= 4 ) return result; v5 = v17; v6 = (unsigned int *)&unk_100A119E0; break; case 1877: v32 = a2 - 1; result = 1874; if ( v32 >= 4 ) return result; v5 = v32; v6 = (unsigned int *)&unk_100A119F0; break; case 1878: v16 = a2 - 1; result = 1881; if ( v16 >= 4 ) return result; v5 = v16; v6 = (unsigned int *)&unk_100A11A00; break; case 1879: v24 = a2 - 1; result = 1880; if ( v24 >= 4 ) return result; v5 = v24; v6 = (unsigned int *)&unk_100A11A10; break; case 1880: v22 = a2 - 1; result = 1879; if ( v22 >= 4 ) return result; v5 = v22; v6 = (unsigned int *)&unk_100A11A20; break; case 1881: v34 = a2 - 1; result = 1878; if ( v34 >= 4 ) return result; v5 = v34; v6 = (unsigned int *)&unk_100A11A30; break; case 1882: v29 = a2 - 1; result = 1885; if ( v29 >= 4 ) return result; v5 = v29; v6 = (unsigned int *)&unk_100A11A40; break; case 1883: v15 = a2 - 1; result = 1884; if ( v15 >= 4 ) return result; v5 = v15; v6 = (unsigned int *)&unk_100A11A50; break; case 1884: v25 = a2 - 1; result = 1883; if ( v25 >= 4 ) return result; v5 = v25; v6 = (unsigned int *)&unk_100A11A60; break; case 1885: v33 = a2 - 1; result = 1882; if ( v33 >= 4 ) return result; v5 = v33; v6 = (unsigned int *)&unk_100A11A70; break; default: switch ( a1 ) { case 2838: v7 = a2 - 1; result = 2839; if ( v7 < 8 ) { v5 = v7; v6 = (unsigned int *)&unk_100A11AB0; return v6[v5]; } break; case 2839: v37 = a2 - 1; result = 2840; if ( v37 < 8 ) { v5 = v37; v6 = (unsigned int *)&unk_100A11AD0; return v6[v5]; } break; case 2840: v35 = a2 - 1; result = 2841; if ( v35 < 8 ) { v5 = v35; v6 = (unsigned int *)&unk_100A11AF0; return v6[v5]; } break; case 2841: v36 = a2 - 1; result = 2838; if ( v36 < 8 ) { v5 = v36; v6 = (unsigned int *)&unk_100A11B10; return v6[v5]; } break; default: if ( (unsigned int)(a1 - 2703) >= 2 ) return 1461; if ( (unsigned int)(a2 - 3) >= 2 ) result = (unsigned int)(a1 == 2703) + 2703; else result = (unsigned int)a1; break; } return result; } } return v6[v5]; }