//
// sub_100652C50 from 0x100652c50 to 0x100652c9b (75 bytes)
//
// 18 xrefs:
// > sub_100644D00 @ 0x100645d4a
// > ??> @ 0x100645dba
// > ??> @ 0x100645df9
// > ??> @ 0x100645e02
// > ??> @ 0x100646bf5
// > ??> @ 0x100646bfe
// > ??> @ 0x100646c44
// > ??> @ 0x100647a7a
// > ??> @ 0x1006506ed
// > ??> @ 0x100650709
// > ??> @ 0x100650723
// > ??> @ 0x10065072c
// > ??> @ 0x10065131d
// > ??> @ 0x100651339
// > ??> @ 0x100651353
// > ??> @ 0x10065135c
// > ??> @ 0x100652bb4
// > ??> @ 0x100652bd6
//
// 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_100652C50(__int64 a1)
{
_QWORD *v2; // r14
_QWORD *v3; // rax
_QWORD *i; // r15
_QWORD *v5; // rdi
__int64 result; // rax
v2 = *(_QWORD **)a1;
v3 = *(_QWORD **)(a1 + 8);
for ( i = **(_QWORD ***)a1; i != v3; v3 = *(_QWORD **)(a1 + 8) )
{
v5 = i;
i = (_QWORD *)*i;
off_10099E668(v5);
}
*v2 = v3;
result = *(_QWORD *)(a1 + 16);
v2[1] = result;
return result;
}