//
// png_free_jmpbuf from 0x8610a4 to 0x8610fe (90 bytes)
//
// 1 xrefs:
// > png_destroy_png_struct @ 0x86227c
//
// 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:43 +0000
//
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;
}