//
// sub_59188 from 0x59188 to 0x591a8 (32 bytes)
//
// 7 xrefs:
// > sub_588B4 @ 0x58918
// > sub_589C4 @ 0x589dc
// > sub_589FC @ 0x58a1c
// > sub_62D04 @ 0x62d1c
// > sub_62D78 @ 0x62d90
// > sub_6766C @ 0x67684
// > sub_B0AC8 @ 0xb0b04
//
// 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
//
unsigned __int64 __fastcall sub_59188(unsigned __int64 result)
{
_QWORD *v1; // x8
_QWORD *v2; // x9
v1 = (_QWORD *)result;
LODWORD(result) = -1;
v2 = v1;
do
{
v2 = (_QWORD *)*v2;
result = (unsigned int)(result + 1);
}
while ( v2 != v1 );
return result;
}