//
// sub_1007010E4 from 0x1007010e4 to 0x100701134 (80 bytes)
//
// 2 xrefs:
// > sub_10073A254 @ 0x10073a6dc
// > sub_10073A830 @ 0x10073a864
//
// 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:12:48 +0000
//
_QWORD *__fastcall sub_1007010E4(_QWORD *result, int a2)
{
if ( !result )
return nullptr;
if ( (_BYTE)a2 )
{
while ( !*result || *(_DWORD *)*result != a2 )
{
result = (_QWORD *)result[7];
if ( !result )
return nullptr;
}
}
else
{
while ( !*result || (*(_DWORD *)*result & a2) == 0 )
{
result = (_QWORD *)result[7];
if ( !result )
return nullptr;
}
}
return result;
}