//
// png_destroy_png_struct from 0x862250 to 0x862288 (56 bytes)
//
// 2 xrefs:
// > png_destroy_read_struct @ 0x8675ce
// > png_destroy_write_struct @ 0x8727dc
//
// 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
//
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;
}