//
// sub_CA3838 from 0xca3838 to 0xca38a8 (112 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_CA3838(_DWORD *a1, int a2)
{
__int64 v4; // x21
size_t v5; // x2
void *result; // x0
v4 = *(_QWORD *)a1;
a1[810] = a2;
if ( a2 <= 0 )
v5 = 4400;
else
v5 = 4 * ((1 << a2) + 1100);
result = memset(a1, 0, v5);
*(_QWORD *)a1 = v4;
a1[810] = a2;
return result;
}