//
// InfoAlertButton::create from 0x1402ba450 to 0x1402ba64d (509 bytes)
//
// 47 xrefs:
// > ChallengesPage::init @ 0x140085c9a
// > CollisionBlockPopup::init @ 0x14008aef3
// > ColorSelectPopup::init @ 0x14008fef8
// > ConfigureValuePopup::init @ 0x1400989a6
// > CustomizeObjectLayer::init @ 0x1400a58a8
// > GJFollowCommandLayer::init @ 0x1402709d4
// > GJPathPage::init @ 0x140285d64
// > GJPFollowCommandLayer::init @ 0x14028aaae
// > SelectFontLayer::init @ 0x14028e8d4
// > EditTriggersPopup::init @ 0x14028f178
// > GJAccountSettingsLayer::init @ 0x1402933f3
// > PurchaseItemPopup::init @ 0x1402af902
// > GJSpecialColorSelect::init @ 0x1402b8188
// > LevelLeaderboard::init @ 0x140301b0f
// > ShareListLayer::init @ 0x14030a672
// > ShareListLayer::init @ 0x14030a901
// > LevelOptionsLayer::setupOptions @ 0x1403243d7
// > SetGroupIDLayer::init @ 0x1403f8fb7
// > SetGroupIDLayer::onGroupIDOptions @ 0x1403fd2f4
// > SetupObjectOptionsPopup::init @ 0x1403fe321
// > SetupAnimationPopup::init @ 0x1404093b4
// > SetupCameraEdgePopup::init @ 0x140412f54
// > SetupCameraModePopup::init @ 0x140414447
// > SetupCameraOffsetTrigger::init @ 0x1404156fb
// > SetupCollisionTriggerPopup::init @ 0x140418654
// > SetupCountTriggerPopup::init @ 0x14041b2cc
// > SetupEndPopup::init @ 0x14041ce7f
// > SetupInstantCountPopup::init @ 0x1404226bf
// > SetupMGTrigger::init @ 0x1404274d0
// > SetupOpacityPopup::init @ 0x14042a8b3
// > CreateParticlePopup::init @ 0x14042de9e
// > SetupPulsePopup::init @ 0x14043a996
// > SetupRandAdvTriggerPopup::init @ 0x14043d674
// > SetupRandTriggerPopup::init @ 0x14043fe15
// > SetupSequenceTriggerPopup::init @ 0x14044376d
// > SetupShakePopup::init @ 0x140455040
// > SetupSmartBlockLayer::init @ 0x140457288
// > SetupSmartTemplateLayer::init @ 0x140458ea9
// > BrowseSmartTemplateLayer::init @ 0x140459f68
// > BrowseSmartKeyLayer::init @ 0x14045b645
// > SetupTimeWarpPopup::init @ 0x1404636d2
// > SetupTouchTogglePopup::init @ 0x14046400f
// > SetupTriggerPopup::addHelpButton @ 0x140474ab1
// > ShareCommentLayer::init @ 0x14048d647
// > ShareLevelSettingsLayer::init @ 0x1404913b0
// > ??> @ 0x1406d2798
// > ??> @ 0x1406d27a4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=6
char *__fastcall InfoAlertButton::create(__int64 a1, __int64 a2)
{
char *v4; // r14
void **v5; // rdi
void **v6; // rsi
struct cocos2d::CCSprite *v7; // rbx
void *v8; // rdx
void *v9; // rdx
char v11[32]; // [rsp+40h] [rbp-A8h] BYREF
char v12[32]; // [rsp+60h] [rbp-88h] BYREF
__int64 v13; // [rsp+80h] [rbp-68h]
__int64 v14; // [rsp+88h] [rbp-60h]
v13 = a1;
v14 = a2;
v4 = (char *)operator new(0x250u);
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((CCMenuItemSpriteExtra *)v4);
*(_QWORD *)v4 = &InfoAlertButton::`vftable';
*((_QWORD *)v4 + 40) = &InfoAlertButton::`vftable';
*(_OWORD *)(v4 + 520) = 0;
*((_QWORD *)v4 + 67) = 0;
*((_QWORD *)v4 + 68) = 15;
v4[520] = 0;
*(_OWORD *)(v4 + 552) = 0;
*((_QWORD *)v4 + 71) = 0;
*((_QWORD *)v4 + 72) = 15;
v4[552] = 0;
*((_DWORD *)v4 + 146) = 1065353216;
v4[588] = 0;
v5 = (void **)sub_14003BDB0((__int64)v11, a2);
v6 = (void **)sub_14003BDB0((__int64)v12, a1);
v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
((void (__fastcall *)(struct cocos2d::CCSprite *))v7->setScale_0)(v7);
if ( CCMenuItemSpriteExtra::init((CCMenuItemSpriteExtra *)v4, v7, nullptr, nullptr, nullptr) )
{
*((_DWORD *)v4 + 93) = 1069547520;
if ( v4 + 520 != (char *)v6 )
{
v8 = v6;
if ( (unsigned __int64)v6[3] > 0xF )
v8 = *v6;
sub_14003CCE0((void **)v4 + 65, v8, (size_t)v6[2]);
}
if ( v4 + 552 != (char *)v5 )
{
v9 = v5;
if ( (unsigned __int64)v5[3] > 0xF )
v9 = *v5;
sub_14003CCE0((void **)v4 + 69, v9, (size_t)v5[2]);
}
sub_14003A830((__int64)v6);
sub_14003A830((__int64)v5);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
sub_14003A830((__int64)v6);
sub_14003A830((__int64)v5);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
v4 = nullptr;
}
sub_14003A830(a1);
sub_14003A830(a2);
return v4;
}