//
// png_safe_error from 0x65129c to 0x6512ea (78 bytes)
//
// 0 xrefs:
//
// 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 __noreturn png_safe_error(int a1, char *a2)
{
int *v2; // r4
int v4; // r5
struct __jmp_buf_tag *v5; // r0
unsigned int v6; // r0
v2 = *(int **)(a1 + 276);
if ( v2 )
{
png_safecat((int)(v2 + 8), 0x40u, 0, a2);
v4 = *v2;
v2[7] |= 2u;
if ( v4 )
{
v5 = *(struct __jmp_buf_tag **)(v4 + 8);
if ( v5 )
longjmp(v5, 1);
}
v6 = png_safecat((int)(v2 + 8), 0x40u, 0, "bad longjmp: ");
png_safecat((int)(v2 + 8), 0x40u, v6, a2);
}
abort();
}