//
// sub_8FCDC4 from 0x8fcdc4 to 0x8fcf0c (328 bytes)
//
// 2 xrefs:
// > TIFFPrintDirectory @ 0x8fbbe0
// > _TIFFprintAscii @ 0x8fcdb8
//
// 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:15 +0000
//
int __fastcall sub_8FCDC4(int result, unsigned __int8 *a2, int a3)
{
FILE *stream; // [sp+Ch] [bp-10h]
unsigned __int8 *i; // [sp+14h] [bp-8h]
stream = (FILE *)result;
while ( a3 > 0 && *a2 )
{
if ( isprint(*a2) )
{
result = fputc(*a2, stream);
}
else
{
for ( i = "\tt\bb\rr\nn\vv"; *i; ++i )
{
if ( *i++ == *a2 )
break;
}
if ( *i )
result = fprintf(stream, "\\%c", *i);
else
result = fprintf(stream, "\\%03o", *a2);
}
++a2;
--a3;
}
return result;
}