//
// png_get_oFFs from 0x651c64 to 0x651cb4 (80 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall png_get_oFFs(int a1, int a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
bool v5; // zf
int result; // r0
bool v7; // zf
char v8; // r0
v5 = a1 == 0;
if ( a1 )
v5 = a2 == 0;
if ( v5 )
return 0;
result = *(_DWORD *)(a2 + 8) & 0x100;
if ( result )
{
v7 = a3 == nullptr;
if ( a3 )
v7 = a4 == nullptr;
v8 = !v7;
if ( a5 )
result = v8 & 1;
else
result = 0;
if ( result )
{
*a3 = *(_DWORD *)(a2 + 180);
*a4 = *(_DWORD *)(a2 + 184);
*a5 = *(unsigned __int8 *)(a2 + 188);
return 256;
}
}
return result;
}