//
// png_destroy_info_struct from 0xe3c188 to 0xe3c1f0 (104 bytes)
//
// 6 xrefs:
// > png_destroy_read_struct @ 0xe4be9c
// > png_destroy_read_struct @ 0xe4bea8
// > sub_E4BFB0 @ 0xe4c084
// > png_destroy_write_struct @ 0xe5e204
// > png_image_write_to_stdio @ 0xe5f208
// > ??> @ 0xce440
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:00 +0000
//
__int64 __fastcall png_destroy_info_struct(__int64 result, void **a2)
{
void *v2; // x20
__int64 v4; // x1
__int64 v5; // x19
if ( result && a2 )
{
v2 = *a2;
if ( *a2 )
{
v4 = (__int64)*a2;
v5 = result;
*a2 = nullptr;
png_free_data(result, v4, 0x7FFF, -1);
memset(v2, 0, 0x158u);
return png_free(v5, v2);
}
}
return result;
}