//
// WebPPictureHasTransparency from 0xf20ed8 to 0xf20fe0 (264 bytes)
//
// 3 xrefs:
// > sub_F0F8D0 @ 0xf0f8e8
// > sub_F2B2A8 @ 0xf2b44c
// > ??> @ 0x7e538
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:12:38 +0000
//
__int64 __fastcall WebPPictureHasTransparency(__int64 a1)
{
unsigned __int8 *v1; // x4
int v2; // w7
int v3; // w6
int v4; // w0
bool v5; // cc
int v6; // w6
unsigned __int8 *v7; // x1
int v8; // t1
_DWORD *v10; // x5
int v11; // w9
int v12; // w8
int i; // w7
_DWORD *j; // x1
unsigned int v15; // t1
if ( !a1 )
return 0;
if ( *(_DWORD *)a1 )
{
v10 = *(_DWORD **)(a1 + 72);
if ( v10 )
{
v11 = *(_DWORD *)(a1 + 12);
if ( v11 > 0 )
{
v12 = *(_DWORD *)(a1 + 8);
for ( i = 0; i != v11; ++i )
{
if ( v12 > 0 )
{
if ( *v10 <= 0xFEFFFFFF )
return 1;
for ( j = v10; j != &v10[v12 - 1]; ++j )
{
v15 = j[1];
if ( v15 <= 0xFEFFFFFF )
return 1;
}
}
v10 += *(int *)(a1 + 80);
}
}
}
return 0;
}
v1 = *(unsigned __int8 **)(a1 + 48);
v2 = *(_DWORD *)(a1 + 8);
v3 = *(_DWORD *)(a1 + 12);
v4 = *(_DWORD *)(a1 + 56);
if ( v1 )
{
v5 = v3 <= 0;
v6 = v3 - 1;
if ( !v5 )
{
do
{
if ( v2 > 0 )
{
if ( *v1 != 255 )
return 1;
v7 = v1;
while ( &v1[v2 - 1] != v7 )
{
v8 = *++v7;
if ( v8 != 255 )
return 1;
}
}
--v6;
v1 += v4;
}
while ( v6 != -1 );
}
}
return 0;
}