//
// sub_1008EEE60 from 0x1008eee60 to 0x1008ef02d (461 bytes)
//
// 3 xrefs:
// > CommentCell::onGoToLevel @ 0x10023def4
// > sub_1008FE000 @ 0x1008fe054
// > sub_1009A4070 @ 0x1009a4155
//
// This function is hookable on this platform (idp: pc, 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:37:55 +0000
//
char *__fastcall sub_1008EEE60(__int128 *a1, __int64 a2)
{
char *v2; // rbx
char v3; // r14
__int128 v5; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v2 = (char *)operator new(0x4B8u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v2);
*(_QWORD *)v2 = off_100BB4B80;
*((_QWORD *)v2 + 40) = off_100BB51A0;
*((_QWORD *)v2 + 41) = &off_100BB5210;
*((_QWORD *)v2 + 42) = off_100BB5228;
*((_QWORD *)v2 + 43) = off_100BB5248;
*((_QWORD *)v2 + 44) = off_100BB5270;
*((_QWORD *)v2 + 51) = off_100BB52A0;
*((_QWORD *)v2 + 54) = off_100BB5320;
*((_QWORD *)v2 + 68) = off_100BB5340;
*((_QWORD *)v2 + 83) = &off_100BB5388;
*((_QWORD *)v2 + 84) = off_100BB53A0;
*((_QWORD *)v2 + 127) = off_100BB53C0;
*((_QWORD *)v2 + 128) = &off_100BB53E0;
*((_QWORD *)v2 + 129) = off_100BB53F8;
*((_QWORD *)v2 + 130) = &off_100BB5450;
*((_DWORD *)v2 + 262) = 1;
*((_QWORD *)v2 + 149) = 0;
*((_DWORD *)v2 + 300) = 0;
*(_OWORD *)(v2 + 1052) = 0;
*(_OWORD *)(v2 + 1068) = 0;
*(_OWORD *)(v2 + 1084) = 0;
*(_OWORD *)(v2 + 1100) = 0;
*((_OWORD *)v2 + 73) = 0;
*((_OWORD *)v2 + 72) = 0;
*((_OWORD *)v2 + 71) = 0;
*((_OWORD *)v2 + 70) = 0;
*(_QWORD *)(v2 + 1181) = 0;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_10001AD30(&v5, *((const void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
__p = *((void **)a1 + 2);
v5 = *a1;
}
v3 = sub_1008EF050(v2, &v5, a2);
if ( (v5 & 1) != 0 )
operator delete(__p);
if ( v3 )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}