//
// FMOD::DSP::setUserData from 0x10048729c to 0x100487364 (200 bytes)
//
// 1 xrefs:
// > sub_1004542F8 @ 0x1004542fc
//
// 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
//
FMOD_RESULT __fastcall FMOD::DSP::setUserData(FMOD::DSP *a1, void *a2)
{
int v4; // w3
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
__int64 v9; // x20
__int64 v11; // [xsp+0h] [xbp-130h] BYREF
_BYTE v12[256]; // [xsp+8h] [xbp-128h] BYREF
v9 = sub_1004A3DB0(a1, &v11, 0);
if ( (_DWORD)v9 || (v9 = sub_1004A86D8(v11, a2), (_DWORD)v9) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_100436324((int)v12, 0x100u, (char)a2, v4, v5, v6, v7, v8);
sub_10048489C(v9, 7, (__int64)a1, (__int64)"DSP::setUserData", (__int64)v12);
}
}
return (unsigned int)v9;
}