//
// sub_38BC54 from 0x38bc54 to 0x38bca2 (78 bytes)
//
// 3 xrefs:
// > png_colorspace_set_endpoints @ 0x85f730
// > png_colorspace_set_endpoints @ 0x85f880
// > png_colorspace_set_chromaticities @ 0x85fe24
//
// 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 11:46:14 +0000
//
bool __fastcall sub_38BC54(_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;
}