//
// sub_727700 from 0x727700 to 0x727754 (84 bytes)
//
// 1 xrefs:
// > WebPPictureYUVAToARGB @ 0x72ab1a
//
// 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
//
int __fastcall sub_727700(int a1, int a2, int a3)
{
bool v6; // cc
int v7; // r0
int v8; // r3
WebPSafeFree(*(void **)(a1 + 160));
v6 = a3 <= 0;
if ( a3 > 0 )
v6 = a2 <= 0;
*(_DWORD *)(a1 + 160) = 0;
*(_DWORD *)(a1 + 52) = 0;
*(_DWORD *)(a1 + 56) = 0;
if ( v6 )
return sub_7329F0(a1, 5);
v7 = WebPSafeMalloc(a2 * a3, (unsigned __int64)(a2 * (__int64)a3) >> 32, 4);
v8 = v7;
if ( !v7 )
return sub_7329F0(a1, 1);
*(_DWORD *)(a1 + 160) = v7;
*(_DWORD *)(a1 + 52) = v8;
*(_DWORD *)(a1 + 56) = a2;
return 1;
}