//
// sub_1001B7FD8 from 0x1001b7fd8 to 0x1001b80e4 (268 bytes)
//
// 2 xrefs:
// > sub_1001B6428 @ 0x1001b6504
// > sub_1001B95D4 @ 0x1001b96f0
//
// 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 11:00:11 +0000
//
__int64 *__fastcall sub_1001B7FD8(__int64 a1, unsigned int a2, int a3, float a4)
{
__int64 v6; // x0
__int64 *result; // x0
int v8; // w1
unsigned int v9; // [xsp+0h] [xbp-30h] BYREF
unsigned int *v10; // [xsp+8h] [xbp-28h] BYREF
v9 = a2;
if ( a3 == 2 )
{
v10 = &v9;
*((float *)sub_10001DBA4(a1 + 984, (int *)&v9, (__int64)&unk_100760B13, &v10) + 5) = a4;
v8 = sub_1001B8828(a1, v9);
goto LABEL_6;
}
if ( a3 != 1 )
{
v10 = &v9;
*((float *)sub_10001DBA4(a1 + 744, (int *)&v9, (__int64)&unk_100760B13, &v10) + 5) = a4;
v8 = v9;
LABEL_6:
result = FMODAudioEngine::channelForChannelID(a1, v8);
if ( !result )
return result;
return (__int64 *)FMOD::ChannelControl::setPitch(result, a4);
}
v10 = &v9;
*((float *)sub_10001DBA4(a1 + 864, (int *)&v9, (__int64)&unk_100760B13, &v10) + 5) = a4;
v6 = sub_1001B82D0(a1, v9, 0);
FMOD::ChannelControl::setPitch(v6, a4);
result = (__int64 *)sub_1001B82D0(a1, v9, 1);
return (__int64 *)FMOD::ChannelControl::setPitch(result, a4);
}