//
// sub_1004FAB5C from 0x1004fab5c to 0x1004fac3c (224 bytes)
//
// 0 xrefs:
//
// 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_1004FAB5C(__int64 a1, _OWORD *a2)
{
__int64 v4; // x20
if ( *a2 == 0 )
return 0;
if ( a1 )
sub_100442B5C(a1, 0x13u);
v4 = a1 + 74040;
while ( 1 )
{
v4 = *(_QWORD *)v4;
if ( v4 == a1 + 74040 )
break;
if ( *a2 == *(_OWORD *)(v4 + 16) )
{
++*(_DWORD *)(v4 + 32);
if ( !a1 )
return v4;
goto LABEL_11;
}
}
v4 = 0;
if ( !a1 )
return v4;
LABEL_11:
sub_100442B7C(a1, 0x13u);
return v4;
}