//
// TIFFRGBAImageGet from 0x6ca9ec to 0x6caad4 (232 bytes)
//
// 4 xrefs:
// > TIFFReadRGBAImageOriented @ 0x6cabc4
// > TIFFReadRGBAStrip @ 0x6d6c8c
// > TIFFReadRGBATile @ 0x6d6f64
// > ??> @ 0x5842c
//
// 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 TIFFRGBAImageGet(_DWORD *a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r0
int v7; // r4
int v8; // r0
if ( a1[12] )
{
if ( a1[13] )
{
return ((int (__fastcall *)(_DWORD *, int, int, int))a1[12])(a1, a2, a3, a4);
}
else
{
v7 = *(_DWORD *)(*a1 + 628);
v8 = TIFFFileName(*a1);
TIFFErrorExt(v7, v8, "No \"put\" routine setupl; probably can not handle image format");
return 0;
}
}
else
{
v4 = *(_DWORD *)(*a1 + 628);
v5 = TIFFFileName(*a1);
TIFFErrorExt(v4, v5, "No \"get\" routine setup");
return 0;
}
}