//
// sub_71CB54 from 0x71cb54 to 0x71cc0a (182 bytes)
//
// 1 xrefs:
// > sub_71CC10 @ 0x71ccd6
//
// 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 sub_71CB54(int a1, int a2, int a3, int a4, int a5, int a6)
{
int result; // r0
int v11; // r5
float v12[28]; // [sp+Ch] [bp-120h] BYREF
_DWORD v13[2]; // [sp+7Ch] [bp-B0h] BYREF
int v14; // [sp+84h] [bp-A8h]
int v15; // [sp+88h] [bp-A4h]
int v16; // [sp+B0h] [bp-7Ch]
int v17; // [sp+B4h] [bp-78h]
int v18; // [sp+D4h] [bp-58h]
WebPPictureInitInternal(v13, 521);
v15 = a3;
v14 = a2;
v18 = a6;
v13[0] = 1;
result = WebPPictureAlloc(v13);
if ( result )
{
off_AD515C(a1, a2, v14, v15, v16, v17);
WebPConfigInitInternal(v12, 0, 1117126656, 521);
LODWORD(v12[2]) = a4;
LODWORD(v12[0]) = 1;
LODWORD(v12[24]) = 1;
v12[1] = (float)a4 * 8.0;
v11 = sub_7319C0(v12, v13, a5);
WebPPictureFree(v13);
if ( v11 || (result = 1, *(_DWORD *)(a5 + 20)) )
{
sub_7343C8(a5);
return 0;
}
}
return result;
}