//
// png_fixed_error from 0x6511b4 to 0x651206 (82 bytes)
//
// 3 xrefs:
// > png_fixed @ 0x64ee26
// > png_set_alpha_mode @ 0x658ccc
// > png_set_gamma @ 0x65949e
//
// 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_fixed_error(int a1, int a2)
{
int i; // r3
int v3; // r4
char *v4; // r5
char v5; // r2
int v6; // t1
char varDC[228]; // [sp+4h] [bp-DCh] BYREF
qmemcpy(varDC, "fixed point overflow in ", 24);
i = a2;
if ( a2 )
{
v3 = a2 - 1;
v4 = &varDC[23];
for ( i = 0; i != 195; ++i )
{
v6 = *(unsigned __int8 *)++v3;
v5 = v6;
if ( !v6 )
break;
*++v4 = v5;
}
}
varDC[i + 24] = 0;
png_error(a1, varDC);
}