//
// WebPPictureHasTransparency from 0x93a4f0 to 0x93a584 (148 bytes)
//
// 2 xrefs:
// > sub_92CC64 @ 0x92cc70
// > sub_942344 @ 0x942422
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:05:01 +0000
//
_DWORD *__fastcall WebPPictureHasTransparency(_DWORD *result)
{
_DWORD *v1; // r5
int v2; // r4
int v3; // r6
int v4; // r3
int v5; // lr
int v6; // r5
unsigned __int8 *v7; // r4
unsigned __int8 *v8; // r3
int v9; // t1
int v10; // r7
int v11; // r4
int v12; // r6
_DWORD *v13; // r2
int v14; // r3
unsigned int v15; // t1
v1 = result;
if ( result )
{
result = (_DWORD *)*result;
if ( result )
{
result = (_DWORD *)v1[13];
if ( result )
{
v10 = v1[3];
if ( v10 <= 0 )
return nullptr;
v11 = v1[2];
v12 = 0;
while ( 1 )
{
if ( v11 > 0 )
{
if ( *result < 0xFF000000 )
return &dword_0 + 1;
v13 = result;
v14 = 0;
while ( ++v14 != v11 )
{
v15 = v13[1];
++v13;
if ( v15 < 0xFF000000 )
return &dword_0 + 1;
}
}
++v12;
result += v1[14];
if ( v12 == v10 )
return nullptr;
}
}
}
else
{
v2 = v1[9];
v3 = v1[2];
v4 = v1[3];
v5 = v1[10];
if ( v2 )
{
v6 = v4 - 1;
if ( v4 > 0 )
{
v7 = (unsigned __int8 *)(v2 + 1);
do
{
if ( v3 > 0 )
{
if ( *(v7 - 1) != 255 )
return &dword_0 + 1;
v8 = v7;
while ( &v7[v3 - 1] != v8 )
{
v9 = *v8++;
if ( v9 != 255 )
return &dword_0 + 1;
}
}
--v6;
v7 += v5;
}
while ( v6 != -1 );
}
}
}
}
return result;
}