//
// sub_BE354 from 0xbe354 to 0xbe378 (36 bytes)
//
// 1 xrefs:
// > sub_622EC @ 0x622fa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:47 +0000
//
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;
}