//
// sub_61740 from 0x61740 to 0x617ac (108 bytes)
//
// 2 xrefs:
// > sub_58CA8 @ 0x590c8
// > sub_613C4 @ 0x615c8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_61740(int a1, int a2, int a3)
{
int result; // r0
int v7; // r8
int v8; // r0
int v9; // [sp+8h] [bp-20h] BYREF
int v10; // [sp+Ch] [bp-1Ch] BYREF
result = 28;
if ( a2 >= 1 && a3 >= 0 )
{
v9 = 0;
v10 = 0;
sub_57A48(a1, &v9, &v10);
v7 = *(_DWORD *)(a1 + 1188);
v8 = sub_BD580(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 44, "../../src/fmod_systemi_driver.cpp", 488, 0);
*(_DWORD *)(a1 + 67172) = v8;
if ( v8 )
return sub_B434C(v8, v9, a2, 4 * v7, a3);
else
return 38;
}
return result;
}