//
// sub_100039D5C from 0x100039d5c to 0x100039e2c (208 bytes)
//
// 1 xrefs:
// > EditorUI::editObject @ 0x100472034
//
// 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:57:34 +0000
//
char *__fastcall sub_100039D5C(__int64 a1, __int64 a2)
{
char *v4; // x19
v4 = (char *)operator new(0x408u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*(_OWORD *)(v4 + 1016) = 0u;
*(_QWORD *)v4 = &off_1008B5B80;
*((_QWORD *)v4 + 40) = off_1008B6170;
*((_QWORD *)v4 + 41) = &off_1008B61E0;
*((_QWORD *)v4 + 42) = off_1008B61F8;
*((_QWORD *)v4 + 43) = off_1008B6218;
*((_QWORD *)v4 + 44) = off_1008B6240;
*((_QWORD *)v4 + 51) = off_1008B6270;
*((_QWORD *)v4 + 54) = off_1008B62F0;
*((_QWORD *)v4 + 68) = off_1008B6310;
*((_QWORD *)v4 + 83) = &off_1008B6358;
*((_QWORD *)v4 + 84) = off_1008B6370;
if ( (unsigned int)sub_100039E40(v4, a1, a2) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}