//
// sub_724640 from 0x724640 to 0x724670 (48 bytes)
//
// 0 xrefs:
//
// 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
//
void *__fastcall sub_724640(int *a1, int a2, int a3)
{
int v3; // r6
size_t v6; // r2
void *result; // r0
if ( a2 > 0 )
a3 = 1 << a2;
v3 = *a1;
if ( a2 > 0 )
a3 += 1100;
a1[809] = a2;
if ( a2 <= 0 )
v6 = 4400;
else
v6 = 4 * a3;
result = memset(a1, 0, v6);
a1[809] = a2;
*a1 = v3;
return result;
}