//
// png_user_version_check from 0xe3b960 to 0xe3ba9c (316 bytes)
//
// 2 xrefs:
// > png_create_png_struct @ 0xe3bb60
// > ??> @ 0xb9470
//
// 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 png_user_version_check(__int64 a1, __int64 a2)
{
int v4; // w4
__int64 v5; // x0
int v6; // w2
int v7; // w3
int v8; // w1
__int64 result; // x0
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
_BYTE v13[128]; // [xsp+38h] [xbp+38h] BYREF
v4 = *(_DWORD *)(a1 + 360);
if ( a2 )
{
v5 = 0;
v6 = 0;
do
{
v8 = (unsigned __int8)a1616[v5];
if ( *(unsigned __int8 *)(a2 + v5) == v8 )
{
v7 = (unsigned __int8)a1616[v5];
}
else
{
v4 |= 0x20000u;
*(_DWORD *)(a1 + 360) = v4;
v7 = *(unsigned __int8 *)(a2 + v5);
}
++v5;
if ( v7 == 46 )
++v6;
}
while ( v7 != 0 && v8 != 0 && v6 <= 1 );
}
else
{
v4 |= 0x20000u;
*(_DWORD *)(a1 + 360) = v4;
}
result = 1;
if ( (v4 & 0x20000) != 0 )
{
v10 = png_safecat(v13, 128, 0, "Application built with libpng-");
v11 = png_safecat(v13, 128, v10, a2);
v12 = png_safecat(v13, 128, v11, " but running with ");
png_safecat(v13, 128, v12, "1.6.16");
png_warning(a1, v13);
return 0;
}
return result;
}