//
// _TIFFgetMode from 0xecf064 to 0xecf0d4 (112 bytes)
//
// 3 xrefs:
// > TIFFClientOpen @ 0xecf120
// > TIFFOpen @ 0xeda494
// > ??> @ 0xe6968
//
// 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:11:39 +0000
//
__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;
}
}