//
// ThreadViewPopup::createModView from 0x1004f8f44 to 0x1004f8fbc (120 bytes)
//
// 2 xrefs:
// > sub_100549944 @ 0x100549ae8
// > sub_100549E04 @ 0x100549e50
//
// 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 11:06:49 +0000
//
_BYTE *__fastcall ThreadViewPopup::createModView(__int64 a1, __int64 a2)
{
_BYTE *v4; // x19
v4 = operator new(0x4D0u);
ThreadViewPopup::ThreadViewPopup();
v4[791] = 1;
*((_QWORD *)v4 + 99) = a2;
if ( (unsigned int)ThreadViewPopup::init((__int64)v4, a1) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}