//
// sub_1800B8070 from 0x1800b8070 to 0x1800b80b9 (73 bytes)
//
// 2 xrefs:
// > sub_1800FE610 @ 0x1800fe9b9
// > ??> @ 0x1801fd260
//
// 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
//
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;
}