//
// FMOD::Sound::readData from 0xd93d4 to 0xd9464 (144 bytes)
//
// 4 xrefs:
// > FMOD::Sound::readData @ 0x10728c
// > ??> @ 0x3ee0
// > FMOD::Sound::readData @ 0x107284
// > ??> @ 0x110208
//
// This function is hookable on this platform (idp: arm, 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:14:54 +0000
//
__int64 __fastcall FMOD::Sound::readData(FMOD::Sound *this, void *a2, __int64 a3, unsigned int *a4)
{
unsigned int v4; // w23
__int64 v5; // x0
char v6; // w8
__int64 v7; // x0
__int64 v9; // x0
int v10; // w8
char v11; // zf
__int64 v12; // x0
__int64 v13; // x8
v4 = sub_DA4B8(this, a2, a3, a4);
if ( !v4 )
{
v9 = sub_DA3A0();
if ( !v10 || (v9 = sub_DA358(v9), v11) )
{
v12 = sub_DA618(v9);
v5 = (*(__int64 (__fastcall **)(__int64))(v13 + 200))(v12);
v4 = v5;
if ( !(_DWORD)v5 )
goto LABEL_4;
}
else
{
v4 = 46;
}
}
v5 = sub_DA344();
if ( v6 < 0 )
{
v7 = sub_DA630(v5);
sub_D9464(v7);
v5 = sub_DA398(v4, 5);
}
LABEL_4:
sub_DA66C(v5);
return v4;
}