//
// sub_1008DCCA0 from 0x1008dcca0 to 0x1008dcdd1 (305 bytes)
//
// 1 xrefs:
// > sub_100224590 @ 0x100224604
//
// 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:44 +0000
//
char *__fastcall sub_1008DCCA0(__int64 a1, unsigned int a2, unsigned int a3, unsigned int a4)
{
char *v6; // rbx
v6 = (char *)operator new(0x438u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v6);
*(_QWORD *)v6 = off_100BB2A80;
*((_QWORD *)v6 + 40) = off_100BB3070;
*((_QWORD *)v6 + 41) = &off_100BB30E0;
*((_QWORD *)v6 + 42) = off_100BB30F8;
*((_QWORD *)v6 + 43) = off_100BB3118;
*((_QWORD *)v6 + 44) = off_100BB3140;
*((_QWORD *)v6 + 51) = off_100BB3170;
*((_QWORD *)v6 + 54) = off_100BB31F0;
*((_QWORD *)v6 + 68) = off_100BB3210;
*((_QWORD *)v6 + 83) = &off_100BB3258;
*((_QWORD *)v6 + 84) = off_100BB3270;
*((_DWORD *)v6 + 260) = 0;
*(_OWORD *)(v6 + 1016) = 0;
*(_QWORD *)(v6 + 1029) = 0;
*(_OWORD *)(v6 + 1048) = 0;
*(_OWORD *)(v6 + 1064) = 0;
if ( (unsigned __int8)sub_1008DCDF0(v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((__int64)v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return v6;
}