//
// WebPPictureImportRGBA from 0x72aff0 to 0x72b086 (150 bytes)
//
// 0 xrefs:
//
// 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 WebPPictureImportRGBA(_DWORD *a1, int a2, int a3)
{
int v6; // r1
int v7; // r4
int v8; // r10
int i; // r8
int v11; // r0
int v12; // r1
int v13; // r2
int v14; // r3
int v15; // r7
int v16; // [sp+14h] [bp-8h]
if ( !a1 )
return 0;
v6 = a2 + 1;
v7 = a2 + 3;
v16 = a1[2];
v8 = a1[3];
if ( !*a1 )
return sub_729B1C(a2, v6, a2 + 2, (unsigned __int8 *)(a2 + 3), a3, nullptr, a1);
if ( !WebPPictureAlloc((int)a1) )
return 0;
sub_7019EC();
if ( v8 > 0 )
{
for ( i = 0; i != v8; ++i )
{
v11 = v7;
v12 = v7 - 3;
v13 = v7 - 2;
v14 = v7 - 1;
v7 += a3;
v15 = a1[14] * i;
off_AD50E0(v11, v12, v13, v14, v16, a1[13] + 4 * v15);
}
}
return 1;
}