//
// png_safe_error from 0x86131c to 0x86136a (78 bytes)
//
// 0 xrefs:
//
// 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
//
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();
}