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