//
// sub_1800B7F70 from 0x1800b7f70 to 0x1800b7fab (59 bytes)
//
// 2 xrefs:
// > sub_1800D7EC0 @ 0x1800d8ab4
// > ??> @ 0x1801fd254
//
// 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
//
_BYTE *__fastcall sub_1800B7F70(_BYTE *a1, int a2, char *a3, int a4)
{
_BYTE *i; // rbx
int v6; // r8d
for ( i = a1; *a1; --a2 )
{
if ( !a2 )
break;
++a1;
}
v6 = a4 + 1;
if ( a2 <= a4 + 1 )
v6 = a2;
sub_1800B7D20(a1, a3, v6);
return i;
}