//
// _TIFFgetMode from 0x8ef4fc to 0x8ef5c8 (204 bytes)
//
// 3 xrefs:
// > TIFFClientOpen @ 0x8ef63c
// > TIFFOpen @ 0x906354
// > ??> @ 0x6b5dc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:12 +0000
//
int __fastcall TIFFgetMode(const char *a1, int a2)
{
int v2; // r3
int v4; // [sp+Ch] [bp-8h]
v4 = -1;
v2 = *(unsigned __int8 *)a1;
if ( v2 == 114 )
{
v4 = 0;
if ( a1[1] == 43 )
return 2;
}
else if ( v2 == 119 || v2 == 97 )
{
v4 = 66;
if ( *a1 == 119 )
return 578;
}
else
{
TIFFErrorExt(0, a2, "\"%s\": Bad mode", a1);
}
return v4;
}