//
// sub_BE354 from 0xbe354 to 0xbe378 (36 bytes)
//
// 1 xrefs:
// > sub_622EC @ 0x622fa
//
// 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_BE354(int a1, int a2)
{
int i; // r0
for ( i = sub_BE198(a1); ; --i )
{
if ( !i )
return 0;
if ( *(unsigned __int8 *)(a1 - 1 + i) == a2 )
break;
}
return i + a1 - 1;
}