//
// sub_1800B8070 from 0x1800b8070 to 0x1800b80b9 (73 bytes)
//
// 2 xrefs:
// > sub_1800FE610 @ 0x1800fe9b9
// > ??> @ 0x1801fd260
//
// 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
//
char *__fastcall sub_1800B8070(_BYTE *a1, int a2)
{
_BYTE *i; // rax
int v3; // eax
char *v4; // r8
for ( i = a1; *i; ++i )
;
v3 = (_DWORD)i - (_DWORD)a1;
v4 = &a1[v3 - 1];
if ( !v3 )
return nullptr;
while ( 1 )
{
--v3;
if ( *v4 == a2 )
break;
--v4;
if ( !v3 )
return nullptr;
}
return v4;
}