//
// sub_8E22F8 from 0x8e22f8 to 0x8e2338 (64 bytes)
//
// 0 xrefs:
//
// 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_8E22F8(int *a1, int a2, int a3)
{
int result; // r0
while ( 1 )
{
result = *a1;
if ( a2 != *a1 )
break;
if ( !MEMORY[0xFFFF0FC0](a2, a3, a1) )
return a2;
}
return result;
}