//
// png_safe_error from 0xe4360c to 0xe43694 (136 bytes)
//
// 4 xrefs:
// > ??> @ 0x8ba80
// > sub_E4BFB0 @ 0xe4bff8
// > png_image_write_to_stdio @ 0xe5f25c
// > ??> @ 0x1543ae8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:04 +0000
//
void __fastcall __noreturn png_safe_error(__int64 a1, char *a2)
{
__int64 *v2; // x19
__int64 v4; // x1
struct __jmp_buf_tag *v5; // x0
unsigned __int64 v6; // x0
v2 = *(__int64 **)(a1 + 296);
if ( v2 )
{
png_safecat((__int64)v2 + 36, 0x40u, 0, a2);
v4 = *v2;
*((_DWORD *)v2 + 8) |= 2u;
if ( v4 )
{
v5 = *(struct __jmp_buf_tag **)(v4 + 16);
if ( v5 )
longjmp(v5, 1);
}
v6 = png_safecat((__int64)v2 + 36, 0x40u, 0, "bad longjmp: ");
png_safecat((__int64)v2 + 36, 0x40u, v6, a2);
}
abort();
}