//
// png_free_jmpbuf from 0x651024 to 0x65107e (90 bytes)
//
// 1 xrefs:
// > png_destroy_png_struct @ 0x6521fc
//
// 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_free_jmpbuf(int result)
{
_DWORD *v1; // [sp+0h] [bp-108h]
int v2; // [sp+4h] [bp-104h]
jmp_buf env; // [sp+8h] [bp-100h] BYREF
if ( result )
{
v1 = (_DWORD *)result;
v2 = *(_DWORD *)(result + 260);
if ( v2 && *(_DWORD *)(result + 264) && result != v2 )
{
result = setjmp(env);
if ( !result )
{
v1[66] = 0;
v1[65] = env;
v1[64] = &longjmp;
result = png_free(v1, v2);
}
}
v1[66] = 0;
v1[65] = 0;
v1[64] = 0;
}
return result;
}