//
// sub_100140FE8 from 0x100140fe8 to 0x100141084 (156 bytes)
//
// 1 xrefs:
// > FMODAudioEngine::updateChannel @ 0x10013c908
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char *__fastcall sub_100140FE8(__int64 **a1, int *a2, _QWORD *a3, __int64 a4)
{
__int64 *v7; // x0
char *v8; // x19
__int64 *v9; // x23
__int64 v11; // [xsp+8h] [xbp-38h] BYREF
v7 = sub_10001BC84((__int64)a1, &v11, a2);
v8 = (char *)*v7;
if ( !*v7 )
{
v9 = v7;
v8 = (char *)operator new(0x40u);
*(_QWORD *)(v8 + 28) = *a3;
*(_OWORD *)(v8 + 36) = *(_OWORD *)a4;
*(_QWORD *)(v8 + 52) = *(_QWORD *)(a4 + 16);
sub_10000A0F0(a1, v11, v9, v8);
}
return v8;
}