//
// sub_BE2D6 from 0xbe2d6 to 0xbe30e (56 bytes)
//
// 5 xrefs:
// > sub_52FF4 @ 0x5301c
// > sub_52FF4 @ 0x53028
// > sub_622EC @ 0x62330
// > sub_BC194 @ 0xbc462
// > sub_BC194 @ 0xbc490
//
// 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
//
int __fastcall sub_BE2D6(unsigned __int8 *a1, unsigned __int8 *a2)
{
unsigned __int8 v2; // r2
int v3; // r3
do
{
v2 = *a2;
if ( (unsigned __int8)(*a2 - 65) < 0x1Au )
v2 += 32;
v3 = *a1;
if ( (unsigned __int8)(v3 - 65) < 0x1Au )
v3 += 32;
if ( !(v3 << 24) )
break;
++a1;
++a2;
}
while ( (unsigned __int8)v3 == v2 );
return (unsigned __int8)v3 - v2;
}