//
// DS_Dictionary::getNumKeys from 0x18001a9d0 to 0x18001aa3d (109 bytes)
//
// 3 xrefs:
// > DS_Dictionary::getArrayForKey @ 0x180019d78
// > ??> @ 0x1801438a8
// > ??> @ 0x1801aea10
//
// 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 DS_Dictionary::getNumKeys(DS_Dictionary *this)
{
unsigned int v1; // ebx
__int64 v2; // rax
__int64 v4; // [rsp+30h] [rbp+8h] BYREF
char v5; // [rsp+38h] [rbp+10h] BYREF
char v6; // [rsp+40h] [rbp+18h] BYREF
v1 = 0;
sub_180080CF0(&this->dictTree._Mypair._Myval2._Mylast[-1], &v4);
for ( ; sub_18007F4E0(&v4); v4 = *(_QWORD *)sub_180081AB0(v2, &v6) )
{
++v1;
v2 = sub_180081AB0(&v4, &v5);
}
return v1;
}