//
// LevelBadgePopup::create from 0x752504 to 0x7525c4 (192 bytes)
//
// 2 xrefs:
// > ThreadViewPopup::checkMessageTap @ 0x75268a
// > ThreadRequestPopup::ccTouchEnded @ 0x75277c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:52 +0000
//
int *__fastcall LevelBadgePopup::create(LevelBadgePopup *this, bool a2, bool a3)
{
int *v5; // r4
int v6; // r3
int *v7; // r0
v5 = (int *)operator new(0x234u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v5);
v5[131] = 0;
*((_BYTE *)v5 + 528) = 0;
*v5 = (int)&off_CF0888;
v5[66] = (int)&off_CF0B38;
v5[67] = (int)&off_CF0B70;
v5[68] = (int)&off_CF0B7C;
v5[69] = (int)&off_CF0B8C;
v5[70] = (int)&off_CF0BA0;
v5[79] = (int)&off_CF0BB8;
v5[83] = (int)&off_CF0BF8;
v5[110] = (int)&off_CF0C08;
v5[130] = (int)&off_CF0C2C;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v5 + 133));
v5[137] = 0;
v5[138] = 0;
v5[139] = 0;
v5[140] = 0;
if ( LevelBadgePopup::init((LevelBadgePopup *)v5, (int)this, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
v6 = *v5;
v7 = v5;
v5 = nullptr;
(*(void (__fastcall **)(int *))(v6 + 8))(v7);
}
return v5;
}