//
// png_get_valid from 0x8613e8 to 0x8613fc (20 bytes)
//
// 1 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x7eb9a4
//
// 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 12:02:43 +0000
//
int __fastcall png_get_valid(int a1, int a2, int a3, int a4)
{
bool v4; // zf
int result; // r0
v4 = a1 == 0;
if ( a1 )
v4 = a2 == 0;
if ( v4 )
{
result = 0;
}
else
{
a4 = *(_DWORD *)(a2 + 8);
result = 1;
}
if ( !v4 )
return a3 & a4;
return result;
}