//
// sub_50238 from 0x50238 to 0x50278 (64 bytes)
//
// 11 xrefs:
// > FMOD_Memory_GetStats @ 0x5019c
// > sub_579DC @ 0x57a18
// > FMOD::ChannelI::validate @ 0x594b8
// > sub_5D9B4 @ 0x5dad0
// > sub_6712C @ 0x67154
// > FMOD::SystemI::validate @ 0x69f28
// > sub_6A544 @ 0x6a5a0
// > sub_AAE14 @ 0xaae34
// > FMOD::DSPI::validate @ 0xc98b4
// > FMOD::Sound::release @ 0xd80cc
// > FMOD::Sound::setSoundGroup @ 0xd95a4
//
// 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
//
__int64 __fastcall sub_50238(_QWORD *a1, __int64 a2)
{
__int64 result; // x0
result = 28;
if ( a2 && !*a1 )
{
result = sub_7BB84(a2);
if ( !(_DWORD)result )
*a1 = a2;
}
return result;
}