//
// sub_100411BB8 from 0x100411bb8 to 0x100411c14 (92 bytes)
//
// 2 xrefs:
// > sub_10041199C @ 0x100411aa4
// > sub_10041199C @ 0x100411b0c
//
// 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:04:50 +0000
//
_QWORD *__fastcall sub_100411BB8(__int64 a1, _QWORD *a2, _QWORD *a3, _QWORD *a4)
{
_QWORD *result; // x0
_QWORD *v5; // x9
_QWORD *v6; // x8
bool v7; // zf
result = a2;
if ( a2 != a3 )
{
do
{
*a4 = *(_QWORD *)((char *)result + 28);
v5 = (_QWORD *)result[1];
if ( v5 )
{
do
{
v6 = v5;
v5 = (_QWORD *)*v5;
}
while ( v5 );
}
else
{
do
{
v6 = (_QWORD *)result[2];
v7 = *v6 == (_QWORD)result;
result = v6;
}
while ( !v7 );
}
++a4;
result = v6;
}
while ( v6 != a3 );
return a3;
}
return result;
}