//
// sub_E3B6A0 from 0xe3b6a0 to 0xe3b7ac (268 bytes)
//
// 2 xrefs:
// > png_colorspace_set_endpoints @ 0xe3ef60
// > png_colorspace_set_chromaticities @ 0xe3f9e4
//
// 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:10:00 +0000
//
__int64 __fastcall sub_E3B6A0(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // w3
unsigned int v4; // w5
int v5; // w4
int v6; // w3
int v7; // w4
int v8; // w3
int v9; // w4
int v10; // w3
int v11; // w4
int v12; // w3
int v13; // w4
int v14; // w3
int v15; // w4
int v16; // w1
int v17; // w0
v3 = a2[6];
v4 = 0;
v5 = a1[6];
if ( v5 >= v3 - a3 && v5 <= v3 + a3 )
{
v6 = a2[7];
v7 = a1[7];
if ( v7 >= v6 - a3 && v7 <= a3 + v6 && *a1 >= *a2 - a3 && *a1 <= a3 + *a2 )
{
v8 = a2[1];
v9 = a1[1];
if ( v9 >= v8 - a3 && v9 <= a3 + v8 )
{
v10 = a2[2];
v11 = a1[2];
if ( v11 >= v10 - a3 && v11 <= a3 + v10 )
{
v12 = a2[3];
v13 = a1[3];
if ( v13 >= v12 - a3 && v13 <= a3 + v12 )
{
v14 = a2[4];
v15 = a1[4];
if ( v15 >= v14 - a3 && v15 <= a3 + v14 )
{
v16 = a2[5];
v17 = a1[5];
if ( v17 >= v16 - a3 )
return v17 <= a3 + v16;
}
}
}
}
}
}
return v4;
}