//
// FMOD::Channel::setLoopPoints from 0xcf018 to 0xcf0c4 (172 bytes)
//
// 4 xrefs:
// > FMOD::Channel::setLoopPoints @ 0x1077ac
// > ??> @ 0x6778
// > FMOD::Channel::setLoopPoints @ 0x1077a4
// > ??> @ 0x110498
//
// 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:50 +0000
//
__int64 __fastcall FMOD::Channel::setLoopPoints(
FMOD::Channel *this,
unsigned int a2,
unsigned int a3,
unsigned int a4,
unsigned int a5)
{
unsigned int v9; // w20
__int64 v10; // x0
char v11; // w8
__int64 v12; // x0
__int64 v13; // x1
__int64 v14; // x0
__int64 v16; // [xsp+108h] [xbp-48h] BYREF
__int64 v17; // [xsp+118h] [xbp-38h] BYREF
v16 = 0;
v9 = FMOD::ChannelI::validate(this, &v17, &v16);
if ( v9 || (v9 = sub_5A76C(v17, a2, a3, a4, a5)) != 0 )
{
v10 = sub_CF32C();
if ( v11 < 0 )
{
v12 = sub_CF430(v10);
v14 = sub_CF0C4(v12, v13, a2, a3, a4, a5);
sub_CF354(v14);
}
}
sub_51968(&v16);
return v9;
}