//
// LevelBadgePopup::create from 0x1400e5d70 to 0x1400e5ec9 (345 bytes)
//
// 3 xrefs:
// > ThreadViewPopup::ccTouchEnded @ 0x1400e4150
// > ThreadRequestPopup::ccTouchEnded @ 0x1400fffc9
// > ??> @ 0x140914c9c
//
// 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 11:26:32 +0000
//
// Hidden C++ exception states: #wind=2
char *__fastcall LevelBadgePopup::create(unsigned int a1, unsigned __int8 a2)
{
char *v4; // rsi
v4 = (char *)operator new(0x2E0u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*(_QWORD *)v4 = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 40) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 41) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 42) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 43) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 44) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 51) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 54) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 68) = &LevelBadgePopup::`vftable';
*((_QWORD *)v4 + 83) = &LevelBadgePopup::`vftable';
*((_DWORD *)v4 + 168) = 0;
v4[676] = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v4 + 680));
*(_OWORD *)(v4 + 696) = 0;
*((_QWORD *)v4 + 89) = 0;
*((_QWORD *)v4 + 90) = 15;
v4[696] = 0;
*((_QWORD *)v4 + 91) = 0;
if ( (unsigned __int8)LevelBadgePopup::init(v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
return nullptr;
}
}