//
// sub_8B3384 from 0x8b3384 to 0x8b34c4 (320 bytes)
//
// 1 xrefs:
// > sub_8B34CC @ 0x8b43e8
//
// 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:03:54 +0000
//
_BYTE *__fastcall sub_8B3384(int a1, int a2, _BYTE *a3)
{
unsigned __int16 v5; // [sp+1Eh] [bp-Eh]
unsigned int v6; // [sp+20h] [bp-Ch]
_BYTE *v7; // [sp+24h] [bp-8h]
v5 = *(_WORD *)(a1 + 98);
if ( a2 )
{
v6 = (unsigned int)&a3[a2];
v7 = a3;
while ( v5 )
{
while ( (unsigned int)v7 < v6 && *v7 )
++v7;
if ( (unsigned int)v7 >= v6 )
goto LABEL_10;
++v7;
--v5;
}
return (_BYTE *)(v7 - a3);
}
else
{
LABEL_10:
TIFFErrorExt(
*(_DWORD *)(a1 + 628),
"TIFFSetField",
"%s: Invalid InkNames value; expecting %d names, found %d",
*(const char **)a1,
*(unsigned __int16 *)(a1 + 98),
*(unsigned __int16 *)(a1 + 98) - v5);
return nullptr;
}
}