//
// FMOD::Sound::setLoopPoints from 0xb61a0 to 0xb6242 (162 bytes)
//
// 1 xrefs:
// > FMOD::Sound::setLoopPoints @ 0xe06a8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:43 +0000
//
int __fastcall FMOD::Sound::setLoopPoints(
FMOD::Sound *this,
unsigned int a2,
unsigned int a3,
unsigned int a4,
unsigned int a5)
{
int v9; // r6
int v10; // r0
int v11; // r0
_BYTE v13[256]; // [sp+8h] [bp-120h] BYREF
int v14; // [sp+108h] [bp-20h] BYREF
_DWORD *v15; // [sp+10Ch] [bp-1Ch] BYREF
v14 = 0;
v9 = sub_54E84((int)this, &v15, (int)&v14);
if ( !v9 )
{
v10 = v15[47];
__dmb(0xBu);
if ( v10 && (v11 = v15[47], __dmb(0xBu), v11 != 7) )
{
v9 = 46;
}
else
{
v9 = (*(int (__fastcall **)(_DWORD *, unsigned int, unsigned int, unsigned int, unsigned int))(*v15 + 156))(
v15,
a2,
a3,
a4,
a5);
if ( !v9 )
{
v9 = 0;
goto LABEL_9;
}
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_AD860(v13, 256, a2, a3, a4, a5);
sub_BAB40(v9, 5, this, "Sound::setLoopPoints", v13);
}
LABEL_9:
sub_6429C(&v14);
return v9;
}