//
// png_free_jmpbuf from 0xbcd0c4 to 0xbcd144 (128 bytes)
//
// 2 xrefs:
// > png_destroy_png_struct @ 0xbce904
// > ??> @ 0xc0210
//
// 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
//
_QWORD *__fastcall png_free_jmpbuf(_QWORD *result)
{
_QWORD *v1; // x1
_QWORD *v2; // [xsp+10h] [xbp+10h]
_QWORD *v3; // [xsp+18h] [xbp+18h]
jmp_buf env; // [xsp+20h] [xbp+20h] BYREF
if ( result )
{
v1 = (_QWORD *)result[33];
v3 = result;
v2 = v1;
if ( v1 && result[34] && result != v1 && !setjmp(env) )
{
v3[33] = env;
v3[34] = 0;
v3[32] = &longjmp;
png_free(v3, v2);
}
v3[34] = 0;
v3[33] = 0;
v3[32] = 0;
return v3;
}
return result;
}