//
// sub_1800B7EF0 from 0x1800b7ef0 to 0x1800b7f4a (90 bytes)
//
// 5 xrefs:
// > sub_1800B4680 @ 0x1800b4ab2
// > sub_1800B4680 @ 0x1800b4af6
// > sub_1800DBAC0 @ 0x1800dbaf1
// > sub_1800DBAC0 @ 0x1800dbb18
// > sub_1800FE610 @ 0x1800fe9e8
//
// 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
//
__int64 __fastcall sub_1800B7EF0(char *a1, char *a2)
{
char v4; // r9
char v5; // r8
char v6; // al
char v7; // r9
do
{
v4 = *a1++;
v5 = *a2++;
v6 = v4 + 32;
if ( (unsigned __int8)(v4 - 65) > 0x19u )
v6 = v4;
v7 = v5 + 32;
if ( (unsigned __int8)(v5 - 65) > 0x19u )
v7 = *(a2 - 1);
}
while ( v6 && v6 == v7 );
return (unsigned int)(v6 - v7);
}