//
// sub_10066B330 from 0x10066b330 to 0x10066b3ac (124 bytes)
//
// 1 xrefs:
// > sub_100648B24 @ 0x100649058
//
// 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:04 +0000
//
_DWORD *__fastcall sub_10066B330(__int64 a1, int a2)
{
_DWORD *result; // x0
int v5; // w21
__int64 v6; // x22
result = nullptr;
if ( a1 && a2 )
{
v5 = sub_100704BB4(a1);
if ( v5 <= 0 )
{
return nullptr;
}
else
{
v6 = 0;
while ( 1 )
{
result = (_DWORD *)sub_100704BC8(a1, v6);
if ( *result == a2 )
break;
v6 = (unsigned int)(v6 + 1);
if ( (int)v6 >= v5 )
return nullptr;
}
}
}
return result;
}