//
// sub_10029F7C0 from 0x10029f7c0 to 0x10029f908 (328 bytes)
//
// 2 xrefs:
// > EditLevelLayer::onLevelOptions @ 0x1001dfa8b
// > LevelInfoLayer::onLevelOptions @ 0x1002af2a2
//
// 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:27:54 +0000
//
char *__fastcall sub_10029F7C0(__int64 a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x470u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v1);
*((_DWORD *)v1 + 253) = 1111490560;
*(_OWORD *)(v1 + 1016) = 0xAFFFFFFFFuLL;
*((_QWORD *)v1 + 129) = 0x430200003F000000LL;
*((_DWORD *)v1 + 268) = 0;
*(_OWORD *)(v1 + 1080) = 0;
*(_OWORD *)(v1 + 1096) = 0;
*((_DWORD *)v1 + 278) = 1065353216;
*(_QWORD *)v1 = off_100B03C68;
*((_QWORD *)v1 + 40) = off_100B04278;
*((_QWORD *)v1 + 41) = &off_100B042E8;
*((_QWORD *)v1 + 42) = off_100B04300;
*((_QWORD *)v1 + 43) = off_100B04320;
*((_QWORD *)v1 + 44) = off_100B04348;
*((_QWORD *)v1 + 51) = off_100B04378;
*((_QWORD *)v1 + 54) = off_100B043F8;
*((_QWORD *)v1 + 68) = off_100B04418;
*((_QWORD *)v1 + 83) = &off_100B04460;
*((_QWORD *)v1 + 84) = off_100B04478;
*((_QWORD *)v1 + 140) = &off_100B04498;
*((_QWORD *)v1 + 141) = 0;
if ( (unsigned __int8)sub_10029F920(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}