//
// sub_C9BCF8 from 0xc9bcf8 to 0xc9bd70 (120 bytes)
//
// 2 xrefs:
// > sub_CB3F30 @ 0xcb40fc
// > sub_CB3F30 @ 0xcb47fc
//
// 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_C9BCF8(__int64 a1, int a2)
{
__int64 v2; // x21
void *v4; // x0
v2 = a2;
v4 = (void *)WebPSafeMalloc(a2, 4);
*(_QWORD *)(a1 + 0x100000) = v4;
if ( !v4 )
return 0;
*(_DWORD *)(a1 + 1048584) = v2;
memset(v4, 255, 4 * v2);
memset((void *)a1, 255, 0x100000u);
return 1;
}