//
// png_get_y_offset_microns from 0x65155c to 0x651586 (42 bytes)
//
// 2 xrefs:
// > png_get_y_offset_inches_fixed @ 0x65167c
// > png_get_y_offset_inches @ 0x6516c2
//
// 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_y_offset_microns(int a1, int a2)
{
bool v2; // zf
int result; // r0
v2 = a1 == 0;
if ( a1 )
v2 = a2 == 0;
if ( v2 )
return 0;
result = *(_DWORD *)(a2 + 8) & 0x100;
if ( result )
{
if ( *(_BYTE *)(a2 + 188) == 1 )
return *(_DWORD *)(a2 + 184);
else
return 0;
}
return result;
}