//
// sub_C8F18 from 0xc8f18 to 0xc8f44 (44 bytes)
//
// 2 xrefs:
// > sub_C6FF4 @ 0xc7976
// > sub_C7C28 @ 0xc8012
//
// 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:41:54 +0000
//
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);
}