//
// sub_4EB70 from 0x4eb70 to 0x4ebe8 (120 bytes)
//
// 1 xrefs:
// > sub_5B6F0 @ 0x5b73e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:42 +0000
//
int __fastcall sub_4EB70(_DWORD *a1, int a2)
{
int i; // r6
int v5; // r0
int v6; // r1
int v7; // r2
int v8; // r2
int v10; // [sp+0h] [bp-18h] BYREF
char v11; // [sp+4h] [bp-14h]
v10 = *(_DWORD *)(a1[3] + 332);
j_FMOD_OS_CriticalSection_Enter(v10);
v11 = 1;
sub_503D8(a1 + 57, a2);
for ( i = 0; ; ++i )
{
v5 = a1[7];
if ( i >= v5 )
break;
sub_5006E(a1 + 57);
}
v6 = 0;
while ( v6 < v5 )
{
v7 = *(_DWORD *)(a1[8] + 4 * v6++);
v8 = v7 + a1[10];
*(_DWORD *)(v8 + 56) = a1[12];
a1[12] = v8;
}
sub_4D4EE((int)a1);
sub_44984((int)&v10);
return 0;
}