//
// ThreadOptionsPopup::create from 0x100932330 to 0x100932464 (308 bytes)
//
// 2 xrefs:
// > GJThreadCell::onThreadOptions @ 0x100241004
// > sub_10092F010 @ 0x10092f025
//
// 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:24 +0000
//
char *__fastcall ThreadOptionsPopup::create(__int64 a1, __int64 a2, unsigned __int8 a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x428u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*(_QWORD *)v4 = off_100BC6108;
*((_QWORD *)v4 + 40) = off_100BC6740;
*((_QWORD *)v4 + 41) = &off_100BC67B0;
*((_QWORD *)v4 + 42) = off_100BC67C8;
*((_QWORD *)v4 + 43) = off_100BC67E8;
*((_QWORD *)v4 + 44) = off_100BC6810;
*((_QWORD *)v4 + 51) = off_100BC6840;
*((_QWORD *)v4 + 54) = off_100BC68C0;
*((_QWORD *)v4 + 68) = off_100BC68E0;
*((_QWORD *)v4 + 83) = &off_100BC6928;
*((_QWORD *)v4 + 84) = off_100BC6940;
*((_QWORD *)v4 + 127) = off_100BC6960;
*((_QWORD *)v4 + 128) = &off_100BC69E0;
*(_OWORD *)(v4 + 1032) = 0;
*((_QWORD *)v4 + 131) = 0xFFFFFFFF00000000LL;
v4[1056] = 0;
if ( (unsigned __int8)ThreadOptionsPopup::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}