//
// _TIFFgetMode from 0xc58ea4 to 0xc58f14 (112 bytes)
//
// 3 xrefs:
// > TIFFClientOpen @ 0xc58f60
// > TIFFOpen @ 0xc642d4
// > ??> @ 0xb03b8
//
// 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
//
__int64 __fastcall TIFFgetMode(const char *a1, __int64 a2)
{
int v2; // w2
v2 = *(unsigned __int8 *)a1;
switch ( v2 )
{
case 'r':
if ( a1[1] == 43 )
return 2;
else
return 0;
case 'w':
return 578;
case 'a':
return 66;
default:
TIFFErrorExt(0, a2, "\"%s\": Bad mode", a1);
return 0xFFFFFFFFLL;
}
}