//
// sub_2B42EC from 0x2b42ec to 0x2b433a (78 bytes)
//
// 3 xrefs:
// > png_colorspace_set_endpoints @ 0x64f6b0
// > png_colorspace_set_endpoints @ 0x64f800
// > png_colorspace_set_chromaticities @ 0x64fda4
//
// 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
//
bool __fastcall sub_2B42EC(_DWORD *a1, _DWORD *a2, int a3)
{
int v3; // r3
int v4; // r4
int v5; // r3
int v6; // r4
int v7; // r3
int v8; // r4
int v9; // r1
int v10; // r3
v3 = a2[2];
v4 = a1[2];
if ( v4 < v3 - a3 )
return 0;
if ( v4 > v3 + a3 )
return 0;
v5 = a2[3];
v6 = a1[3];
if ( v6 < v5 - a3 )
return 0;
if ( v6 > v5 + a3 )
return 0;
v7 = a2[4];
v8 = a1[4];
if ( v8 < v7 - a3 )
return 0;
if ( v8 > v7 + a3 )
return 0;
v9 = a2[5];
v10 = a1[5];
return v10 >= v9 - a3 && v10 <= a3 + v9;
}