//
// sub_C8F18 from 0xc8f18 to 0xc8f44 (44 bytes)
//
// 2 xrefs:
// > sub_C6FF4 @ 0xc7976
// > sub_C7C28 @ 0xc8012
//
// 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_C8F18(unsigned int a1, unsigned int a2)
{
size_t v3; // r0
v3 = 1;
if ( a1 && a2 )
{
if ( 0xFFFFFFFF / a2 < a1 )
return nullptr;
v3 = a2 * a1;
}
return j_malloc(v3);
}