//
// sub_9372C0 from 0x9372c0 to 0x937314 (84 bytes)
//
// 1 xrefs:
// > WebPPictureYUVAToARGB @ 0x93a6da
//
// 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 12:04:58 +0000
//
int __fastcall sub_9372C0(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_9425B0(a1, 5);
v7 = WebPSafeMalloc(a2 * a3, (unsigned __int64)(a2 * (__int64)a3) >> 32, 4);
v8 = v7;
if ( !v7 )
return sub_9425B0(a1, 1);
*(_DWORD *)(a1 + 160) = v7;
*(_DWORD *)(a1 + 52) = v8;
*(_DWORD *)(a1 + 56) = a2;
return 1;
}