//
// sub_1009649F0 from 0x1009649f0 to 0x100964b2f (319 bytes)
//
// 8 xrefs:
// > sub_1009655E0 @ 0x1009656f2
// > sub_1009657F0 @ 0x10096596a
// > sub_100965A00 @ 0x100965b74
// > sub_100965C00 @ 0x100965d66
// > sub_100965DF0 @ 0x100966047
// > sub_100966200 @ 0x10096640e
// > sub_1009664B0 @ 0x1009666c8
// > sub_100966780 @ 0x100966879
//
// 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:38:47 +0000
//
_QWORD *__fastcall sub_1009649F0(__int64 a1)
{
_QWORD *v1; // rbx
v1 = operator new(0x490u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*v1 = off_100BCC710;
v1[40] = off_100BCCD08;
v1[41] = &off_100BCCD78;
v1[42] = off_100BCCD90;
v1[43] = off_100BCCDB0;
v1[44] = off_100BCCDD8;
v1[51] = off_100BCCE08;
v1[54] = off_100BCCE88;
v1[68] = off_100BCCEA8;
v1[83] = &off_100BCCEF0;
v1[84] = off_100BCCF08;
v1[127] = &off_100BCCF28;
v1[128] = 0;
*((_DWORD *)v1 + 258) = 0;
*((_OWORD *)v1 + 65) = 0;
*((_OWORD *)v1 + 66) = 0;
*((_OWORD *)v1 + 67) = 0;
*((_OWORD *)v1 + 68) = 0;
*((_OWORD *)v1 + 69) = 0;
*((_OWORD *)v1 + 70) = 0;
*((_OWORD *)v1 + 71) = 0;
*((_OWORD *)v1 + 72) = 0;
if ( (unsigned __int8)sub_100964B50(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v1 + 16LL))(v1);
return nullptr;
}
return v1;
}