//
// png_get_text from 0x861f6c to 0x861f9e (50 bytes)
//
// 0 xrefs:
//
// 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:44 +0000
//
int __fastcall png_get_text(int a1, int a2, _DWORD *a3, int *a4)
{
bool v4; // zf
int result; // r0
v4 = a1 == 0;
if ( a1 )
v4 = a2 == 0;
if ( v4 || (result = *(_DWORD *)(a2 + 128), result <= 0) )
{
if ( a4 )
*a4 = 0;
return 0;
}
else
{
if ( a3 )
{
*a3 = *(_DWORD *)(a2 + 136);
result = *(_DWORD *)(a2 + 128);
}
if ( a4 )
{
*a4 = result;
return *(_DWORD *)(a2 + 128);
}
}
return result;
}