// // EditorSFXActionConfigLayer::onEditSound from 0x1008e0630 to 0x1008e06da (170 bytes) // // 1 xrefs: // > EditorSFXActionConfigLayer::refreshRows @ 0x1008e02cd // // 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:37:45 +0000 // char __fastcall EditorSFXActionConfigLayer::onEditSound(__int64 a1, __int64 a2) { int v2; // r15d int v3; // ebx __int64 v4; // rax __int64 v5; // r14 __int64 v6; // rax signed int v7; // ebx v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v3 = v2 - 993; if ( v2 - 1000 >= 0 ) v3 = v2 - 1000; v4 = EditorSFXManager::sharedState(a2); v5 = EditorSFXManager::soundsForAction(v4, *(unsigned int *)(a1 + 1024)); LOBYTE(v6) = v5 == 0; if ( v5 != 0 && v2 >= 993 ) { v7 = v3 >> 3; LODWORD(v6) = sub_1007FEF90(v5); if ( v7 < (int)v6 ) { v6 = sub_1007FEFE0(v5, v7); if ( v6 ) { v6 = (__int64)SetupSFXPopup::create(v6, 0, 1u); if ( v6 ) LOBYTE(v6) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6); } } } return v6; }