//
// sub_F1D4C8 from 0xf1d4c8 to 0xf1d560 (152 bytes)
//
// 1 xrefs:
// > WebPPictureYUVAToARGB @ 0xf211d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:12:35 +0000
//
__int64 __fastcall sub_F1D4C8(__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_F2B670(a1, 5);
v5 = WebPSafeMalloc(a2 * (__int64)a3, 4);
v6 = v5;
if ( !v5 )
return sub_F2B670(a1, 1);
*(_QWORD *)(a1 + 232) = v5;
*(_QWORD *)(a1 + 72) = v6;
*(_DWORD *)(a1 + 80) = a2;
return 1;
}