//
// sub_1000D6A64 from 0x1000d6a64 to 0x1000d6b24 (192 bytes)
//
// 1 xrefs:
// > LevelListLayer::cellPerformedAction @ 0x1002e3738
//
// 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 10:58:56 +0000
//
void __fastcall sub_1000D6A64(std::string *a1, __int64 a2)
{
char *v4; // x8
char *size; // x21
size_t v6; // x22
std::string::size_type v7; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v9; // [xsp+1Fh] [xbp-21h]
size = (char *)a1[13].__r_.__value_.__l.__size_;
v4 = (char *)a1[13].__r_.__value_.__r.__words[2];
if ( size != v4 )
{
v6 = v4 - size - 4;
while ( *(_DWORD *)size != (_DWORD)a2 )
{
size += 4;
v6 -= 4LL;
if ( size == v4 )
goto LABEL_9;
}
if ( size + 4 != v4 )
memmove(size, size + 4, v6);
a1[13].__r_.__value_.__r.__words[2] = (std::string::size_type)&size[v6];
GJLevelList::updateLevelsString(a1);
}
LABEL_9:
v7 = a1[22].__r_.__value_.__l.__size_;
GameToolbox::intToString(a2, __p);
cocos2d::CCDictionary::removeObjectForKey(v7, (char *)__p);
if ( v9 < 0 )
operator delete(__p[0]);
a1[16].__r_.__value_.__s.__data_[15] = 1;
}