//
// png_get_bit_depth from 0x6513c0 to 0x6513d0 (16 bytes)
//
// 1 xrefs:
// > cocos2d::CCImage::_initWithPngData @ 0x5e1b62
//
// 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_bit_depth(int a1, int a2)
{
bool v2; // zf
int result; // r0
v2 = a1 == 0;
if ( a1 )
v2 = a2 == 0;
result = !v2;
if ( !v2 )
return *(unsigned __int8 *)(a2 + 24);
return result;
}