//
// FMOD::Channel::setPosition from 0xcea58 to 0xceae8 (144 bytes)
//
// 4 xrefs:
// > FMOD::Channel::setPosition @ 0x10774c
// > ??> @ 0x3dd8
// > FMOD::Channel::setPosition @ 0x107744
// > ??> @ 0x110468
//
// 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::setPosition(FMOD::Channel *this, unsigned int a2, unsigned int a3)
{
unsigned int v5; // w20
__int64 v6; // x0
char v7; // w8
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // x0
__int64 v12; // [xsp+108h] [xbp-38h] BYREF
__int64 v13; // [xsp+118h] [xbp-28h] BYREF
v12 = 0;
v5 = FMOD::ChannelI::validate(this, &v13, &v12);
if ( v5 || (v5 = sub_5A918(v13)) != 0 )
{
v6 = sub_CF32C();
if ( v7 < 0 )
{
v8 = sub_CF430(v6);
v10 = sub_CEAE8(v8, v9, a2, a3);
sub_CF354(v10);
}
}
sub_51968(&v12);
return v5;
}