//
// sub_100428BF0 from 0x100428bf0 to 0x100428c54 (100 bytes)
//
// 3 xrefs:
// > sub_10044DAE8 @ 0x10044db2c
// > sub_10044DB6C @ 0x10044db98
// > sub_10044DBC0 @ 0x10044dc0c
//
// 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
//
_QWORD *__fastcall sub_100428BF0(__int64 a1, int a2)
{
_QWORD *v3; // x21
_QWORD *v4; // x22
_QWORD *v5; // x20
unsigned int (__fastcall ***v6)(_QWORD); // x0
v3 = (_QWORD *)(a1 + 40);
v4 = (_QWORD *)(a1 + 40);
while ( 1 )
{
v4 = (_QWORD *)*v4;
if ( v4 == v3 )
break;
v5 = v4 - 1;
if ( v4 )
v6 = (unsigned int (__fastcall ***)(_QWORD))(v4 - 1);
else
v6 = nullptr;
if ( (**v6)(v6) == a2 )
return v5;
}
return nullptr;
}