//
// 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 (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 12:13:50 +0000
//
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;
}