//
// sub_998B64 from 0x998b64 to 0x998b80 (28 bytes)
//
// 11 xrefs:
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find @ 0x97ae16
// > sub_97B1AA @ 0x97b1f2
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find_last_of @ 0x97b24a
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find_last_of @ 0x97b2aa
// > sub_97B2D4 @ 0x97b318
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find_first_not_of @ 0x97b370
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find_first_not_of @ 0x97b3d4
// > sub_97B430 @ 0x97b478
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find_last_not_of @ 0x97b4d4
// > std::__ndk1::basic_string,std::__ndk1::allocator>::find_last_not_of @ 0x97b538
// > sub_997FF4 @ 0x998324
//
// 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 12:06:42 +0000
//
_DWORD *__fastcall sub_998B64(_DWORD *result, int a2, unsigned int a3)
{
unsigned int v3; // r12
if ( !a3 )
return nullptr;
v3 = 0;
while ( *result != a2 )
{
++v3;
++result;
if ( v3 >= a3 )
return nullptr;
}
return result;
}