//
// sub_6C04B8 from 0x6c04b8 to 0x6c0568 (176 bytes)
//
// 5 xrefs:
// > sub_6C0574 @ 0x6c0d20
// > sub_6C1420 @ 0x6c1c98
// > sub_6C1420 @ 0x6c2f30
// > sub_6C6EA0 @ 0x6c7ea8
// > sub_6C8940 @ 0x6c8ee4
//
// 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
//
int __fastcall sub_6C04B8(int a1, _DWORD *a2, int a3, int a4)
{
int v4; // r1
const char *v5; // r2
int v6; // r3
v4 = a2[157];
if ( (a2[3] & 0x400) != 0 )
v5 = "tile";
else
v5 = "strip";
if ( (a2[3] & 0x400) != 0 )
v6 = a2[123];
else
v6 = a2[113];
return TIFFWarningExt(v4, a1, "Premature EOF at line %u of %s %u (x %u)", a3, v5, v6, a4);
}