//
// WebPIDelete from 0xc66f8c to 0xc67038 (172 bytes)
//
// 1 xrefs:
// > ??> @ 0xc1830
//
// 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
//
void __fastcall WebPIDelete(_DWORD *a1)
{
__int64 v2; // x0
if ( a1 )
{
v2 = *((_QWORD *)a1 + 64);
if ( v2 )
{
if ( a1[126] )
{
sub_C6EE7C(v2);
if ( a1[170] != 1 )
goto LABEL_8;
LABEL_10:
WebPSafeFree(*((void **)a1 + 89));
WebPSafeFree(*((void **)a1 + 91));
WebPFreeDecBuffer((__int64)(a1 + 184));
WebPSafeFree(a1);
return;
}
if ( *a1 == 3 )
sub_C661BC(v2, (__int64)(a1 + 130));
sub_C6B400();
}
if ( a1[170] != 1 )
{
LABEL_8:
WebPFreeDecBuffer((__int64)(a1 + 184));
WebPSafeFree(a1);
return;
}
goto LABEL_10;
}
}