//
// sub_1004B26A0 from 0x1004b26a0 to 0x1004b26f4 (84 bytes)
//
// 1 xrefs:
// > sub_1004C570C @ 0x1004c5734
//
// 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
//
__int64 __fastcall sub_1004B26A0(_QWORD *a1, _DWORD *a2, _DWORD *a3)
{
_QWORD *v3; // x9
int v4; // w8
int v5; // w10
v3 = (_QWORD *)*a1;
if ( (_QWORD *)*a1 == a1 )
{
v5 = 0;
v4 = 0;
if ( a2 )
LABEL_5:
*a2 = v5;
}
else
{
v4 = 0;
v5 = 0;
do
{
++v5;
v4 += *((unsigned __int8 *)v3 + 60);
v3 = (_QWORD *)*v3;
}
while ( v3 != a1 );
if ( a2 )
goto LABEL_5;
}
if ( a3 )
*a3 = v4;
return 0;
}