//
// sub_6C03B8 from 0x6c03b8 to 0x6c04a4 (236 bytes)
//
// 12 xrefs:
// > sub_6C0574 @ 0x6c0d8c
// > sub_6C0574 @ 0x6c0f60
// > sub_6C0574 @ 0x6c118c
// > sub_6C1420 @ 0x6c1d04
// > sub_6C1420 @ 0x6c1ed8
// > sub_6C1420 @ 0x6c2f9c
// > sub_6C1420 @ 0x6c3278
// > sub_6C1420 @ 0x6c34fc
// > sub_6C6EA0 @ 0x6c7f14
// > sub_6C6EA0 @ 0x6c81e8
// > sub_6C8940 @ 0x6c8f50
// > sub_6C8940 @ 0x6c9124
//
// 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_6C03B8(int a1, _DWORD *a2, int a3, unsigned int a4, unsigned int a5)
{
int v5; // r1
const char *v6; // r12
const char *v7; // r2
int v8; // r3
v5 = a2[157];
if ( a4 >= a5 )
v6 = "Line length mismatch";
else
v6 = "Premature EOL";
if ( (a2[3] & 0x400) != 0 )
v7 = "tile";
else
v7 = "strip";
if ( (a2[3] & 0x400) != 0 )
v8 = a2[123];
else
v8 = a2[113];
return TIFFWarningExt(v5, a1, "%s at line %u of %s %u (got %u, expected %u)", v6, a3, v7, v8, a4, a5);
}