//
// sub_10069AAA8 from 0x10069aaa8 to 0x10069aad8 (48 bytes)
//
// 1 xrefs:
// > sub_100671E94 @ 0x1006728a4
//
// This function is hookable on this platform (idp: arm, 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 11:11:36 +0000
//
unsigned __int8 *__fastcall sub_10069AAA8(unsigned __int64 a1, unsigned __int8 a2, __int64 a3)
{
unsigned __int8 *result; // x0
if ( a3 - 1 < 0 )
return nullptr;
result = (unsigned __int8 *)(a1 + a3 - 1);
while ( *result != a2 )
{
if ( (unsigned __int64)--result < a1 )
return nullptr;
}
return result;
}