// // EditorUI::playSoundForCreatedObject from 0x100011850 to 0x100011a41 (497 bytes) // // 1 xrefs: // > EditorUI::onCreate @ 0x10000cf60 // // 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:18:52 +0000 // __int64 __fastcall EditorUI::playSoundForCreatedObject(_DWORD *a1, _DWORD *a2) { int v2; // r13d int v3; // r15d int v4; // r12d char v5; // al unsigned int v6; // ebx int v7; // ecx __int64 v8; // rdi char hasSoundsForAction; // r14 __int64 v10; // rax __int64 v11; // rsi if ( !a2 ) { v6 = 263; goto LABEL_37; } v2 = a2[257]; v3 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1800LL))(a2); v4 = a2[312]; a1 = a2; v5 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1736LL))(a2); v6 = 264; if ( v2 <= 1333 ) { if ( v2 <= 913 ) { if ( (unsigned int)(v2 - 200) < 4 ) { LABEL_5: v6 = 265; goto LABEL_37; } goto LABEL_26; } if ( (unsigned int)(v2 - 1327) < 2 ) goto LABEL_37; if ( v2 != 914 ) { if ( v2 == 918 ) goto LABEL_37; goto LABEL_26; } goto LABEL_22; } if ( v2 > 1699 ) { if ( v2 > 2062 ) { if ( v2 == 2063 ) { v6 = 260; goto LABEL_37; } if ( v2 != 2065 ) goto LABEL_26; } else if ( v2 != 1700 ) { if ( v2 == 2012 ) goto LABEL_37; goto LABEL_26; } goto LABEL_25; } if ( v2 > 1585 ) { if ( v2 != 1586 ) { if ( v2 != 1615 ) { LABEL_26: v7 = 257; switch ( v3 ) { case 0: case 39: v7 = 262; goto LABEL_36; case 2: case 21: case 47: v7 = 256; v6 = 255; if ( v5 ) goto LABEL_37; goto LABEL_36; case 3: case 4: case 5: case 6: case 14: case 15: case 16: case 17: case 18: case 19: case 23: case 24: case 26: case 27: case 28: case 33: case 41: case 42: goto LABEL_36; case 8: case 9: case 10: case 34: case 44: v7 = 259; goto LABEL_36; case 11: case 12: case 13: case 29: case 32: case 35: case 36: case 37: case 38: case 43: case 46: v7 = 258; goto LABEL_36; case 25: v7 = 261; goto LABEL_36; case 30: case 40: v7 = 260; goto LABEL_36; case 45: v7 = 250; goto LABEL_36; default: v6 = 254; if ( v5 ) goto LABEL_37; v6 = 253; if ( v4 == 2 ) goto LABEL_37; a1 = a2; if ( (*(unsigned __int8 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 1728LL))(a2) ) goto LABEL_37; v7 = 263; v6 = 250; if ( v4 == 1 ) goto LABEL_37; LABEL_36: v6 = v7; break; } goto LABEL_37; } LABEL_22: v6 = 252; goto LABEL_37; } LABEL_25: v6 = 251; goto LABEL_37; } if ( v2 == 1334 ) goto LABEL_5; if ( v2 != 1584 ) goto LABEL_26; LABEL_37: v8 = EditorSFXManager::sharedState(a1); hasSoundsForAction = EditorSFXManager::hasSoundsForAction(v8, v6); v10 = EditorSFXManager::sharedState(v8); v11 = 100; if ( hasSoundsForAction ) v11 = v6; return EditorSFXManager::playAction_1(v10, v11); }