//
// sub_1008FB110 from 0x1008fb110 to 0x1008fb24d (317 bytes)
//
// 1 xrefs:
// > sub_1008F6530 @ 0x1008f6584
//
// 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:00 +0000
//
char *__fastcall sub_1008FB110(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x470u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*(_QWORD *)v1 = off_100BB6DC0;
*((_QWORD *)v1 + 40) = off_100BB73C0;
*((_QWORD *)v1 + 41) = &off_100BB7430;
*((_QWORD *)v1 + 42) = off_100BB7448;
*((_QWORD *)v1 + 43) = off_100BB7468;
*((_QWORD *)v1 + 44) = off_100BB7490;
*((_QWORD *)v1 + 51) = off_100BB74C0;
*((_QWORD *)v1 + 54) = off_100BB7540;
*((_QWORD *)v1 + 68) = off_100BB7560;
*((_QWORD *)v1 + 83) = &off_100BB75A8;
*((_QWORD *)v1 + 84) = off_100BB75C0;
*((_QWORD *)v1 + 127) = off_100BB75E0;
*((_QWORD *)v1 + 141) = 0;
*((_OWORD *)v1 + 64) = 0;
*((_OWORD *)v1 + 65) = 0;
v1[1056] = 0;
*(_OWORD *)(v1 + 1064) = 0;
*(_OWORD *)(v1 + 1080) = 0;
*(_OWORD *)(v1 + 1090) = 0;
*(_OWORD *)(v1 + 1108) = 0;
if ( (unsigned __int8)sub_1008FB260((char)v1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v1 + 16LL))(v1, a1);
return nullptr;
}
return v1;
}