//
// WebPPictureImportRGBX from 0x72b130 to 0x72b1c2 (146 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 WebPPictureImportRGBX(_DWORD *a1, int a2, int a3)
{
int v3; // r4
int v6; // r1
int v7; // r10
int i; // r8
int v10; // r0
int v11; // r1
int v12; // r2
int v13; // r7
int v14; // [sp+14h] [bp-8h]
if ( !a1 )
return 0;
v3 = a2;
v6 = a2 + 1;
v14 = a1[2];
v7 = a1[3];
if ( !*a1 )
return sub_729B1C(v3, v6, v3 + 2, nullptr, a3, nullptr, a1);
if ( !WebPPictureAlloc((int)a1) )
return 0;
sub_7019EC();
if ( v7 > 0 )
{
for ( i = 0; i != v7; ++i )
{
v10 = v3;
v11 = v3 + 1;
v12 = v3 + 2;
v13 = a1[14] * i;
v3 += a3;
off_AD50E4(v10, v11, v12, v14, 4, a1[13] + 4 * v13);
}
}
return 1;
}