//
// png_get_unknown_chunks from 0x651fa8 to 0x651fcc (36 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_unknown_chunks(int a1, int a2, _DWORD *a3)
{
bool v3; // zf
char v4; // r3
int result; // r0
v3 = a2 == 0;
if ( a2 )
v3 = a3 == nullptr;
v4 = !v3;
if ( a1 )
result = v4 & 1;
else
result = 0;
if ( result )
{
*a3 = *(_DWORD *)(a2 + 236);
return *(_DWORD *)(a2 + 240);
}
return result;
}