//
// sub_70C30 from 0x70c30 to 0x70cd2 (162 bytes)
//
// 1 xrefs:
// > sub_70350 @ 0x70350
//
// 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_70C30(_DWORD *a1, int a2, int a3, unsigned int a4)
{
int result; // r0
int v6; // [sp+4h] [bp-14h] BYREF
int v7; // [sp+8h] [bp-10h] BYREF
unsigned int v8; // [sp+Ch] [bp-Ch]
v6 = a2;
v7 = a3;
v8 = a4;
a1[54] = 0;
a1[47] = 0;
a1[5] = 3;
a1[3] = 0;
a1[1] = 0;
a1[42] = 0;
a1[43] = 0;
a1[44] = 0;
a1[45] = 0;
a1[59] = 0;
a1[56] = 0;
a1[38] = 0;
result = sub_BB750(a1[55], &v7, 1, 8, 0);
if ( !result )
{
if ( sub_BE2BC(&v7, "RIFF", 4) )
return 19;
result = sub_BB750(a1[55], &v6, 1, 4, 0);
if ( !result )
{
if ( sub_BE2BC(&v6, "DLS ", 4) )
return 19;
a1[60] = 0;
a1[38] = 0;
result = sub_70368(a1, (int)&v6, v8);
if ( !result )
{
if ( (int)a1[56] < 1 )
return 19;
a1[3] = a1[59];
return 0;
}
}
}
return result;
}