//
// png_destroy_png_struct from 0x6521d0 to 0x652208 (56 bytes)
//
// 2 xrefs:
// > png_destroy_read_struct @ 0x65754e
// > png_destroy_write_struct @ 0x66275c
//
// 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
//
void *__fastcall png_destroy_png_struct(void *result)
{
void *v1; // r4
_BYTE v2[1004]; // [sp+0h] [bp-3ECh] BYREF
if ( result )
{
v1 = result;
memcpy(v2, result, 0x3E8u);
memset(v1, 0, 0x3E8u);
png_free((int)v2, v1);
return (void *)png_free_jmpbuf((int)v2);
}
return result;
}