//
// sub_1800B7F70 from 0x1800b7f70 to 0x1800b7fab (59 bytes)
//
// 2 xrefs:
// > sub_1800D7EC0 @ 0x1800d8ab4
// > ??> @ 0x1801fd254
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 10:53:59 +0000
//
_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;
}