//
// png_get_rowbytes from 0x65137c to 0x65138c (16 bytes)
//
// 5 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x5e1bdc
// > sub_655D68 @ 0x65616e
// > sub_655D68 @ 0x6561e4
// > sub_6569F0 @ 0x656b28
// > sub_662E04 @ 0x662f72
//
// 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_rowbytes(int a1, int a2)
{
bool v2; // zf
int result; // r0
v2 = a1 == 0;
if ( a1 )
v2 = a2 == 0;
result = !v2;
if ( !v2 )
return *(_DWORD *)(a2 + 12);
return result;
}