//
// sub_E47E0 from 0xe47e0 to 0xe48f4 (276 bytes)
//
// 1 xrefs:
// > sub_6C64C @ 0x6cc28
//
// 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
//
__int64 __fastcall sub_E47E0(__int64 *a1, int a2)
{
_OWORD *v4; // x0
__int64 v5; // x21
__int64 v6; // x1
__int64 result; // x0
void *v8; // x0
__int64 v9; // x22
__int64 v10; // x21
if ( !a1[9] )
return 67;
if ( !a2 )
return 0;
v4 = sub_E2908(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
32,
(__int64)"../../src/fmod_output_emulated.cpp",
65,
0,
0);
if ( v4 )
{
v5 = (__int64)v4;
sub_5C754(v4);
v6 = a1[9];
a1[8] = v5;
result = sub_5C760(v5, v6, (__int64)a1, a2);
if ( (_DWORD)result )
return result;
v8 = sub_E2AC4(
*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),
112 * a2,
(__int64)"../../src/fmod_output_emulated.cpp",
77,
0);
a1[131] = (__int64)v8;
if ( v8 )
{
v9 = 0;
v10 = 0;
while ( v10 < a2 )
{
sub_E48F4(a1[131] + v9);
result = (__int64)sub_5C9DC(a1[8], (unsigned int)v10++, a1[131] + v9);
v9 += 112;
if ( (_DWORD)result )
return result;
}
return 0;
}
}
else
{
a1[8] = 0;
}
return 38;
}