//
// png_get_text from 0xbce3e8 to 0xbce430 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0xc6648
//
// 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
//
__int64 __fastcall png_get_text(__int64 a1, __int64 a2, _QWORD *a3, _DWORD *a4)
{
__int64 result; // x0
if ( a1 && a2 && (result = *(unsigned int *)(a2 + 148), (int)result > 0) )
{
if ( a3 )
*a3 = *(_QWORD *)(a2 + 160);
if ( a4 )
{
*a4 = result;
return *(unsigned int *)(a2 + 148);
}
}
else
{
if ( a4 )
*a4 = 0;
return 0;
}
return result;
}