//
// sub_CA7308 from 0xca7308 to 0xca73a0 (152 bytes)
//
// 1 xrefs:
// > WebPPictureYUVAToARGB @ 0xcab018
//
// 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_CA7308(__int64 a1, int a2, int a3)
{
__int64 v5; // x0
__int64 v6; // x1
WebPSafeFree(*(void **)(a1 + 232));
*(_QWORD *)(a1 + 232) = 0;
*(_QWORD *)(a1 + 72) = 0;
*(_DWORD *)(a1 + 80) = 0;
if ( a2 <= 0 || a3 <= 0 )
return sub_CB54B0(a1, 5);
v5 = WebPSafeMalloc(a2 * (__int64)a3, 4);
v6 = v5;
if ( !v5 )
return sub_CB54B0(a1, 1);
*(_QWORD *)(a1 + 232) = v5;
*(_QWORD *)(a1 + 72) = v6;
*(_DWORD *)(a1 + 80) = a2;
return 1;
}