//
// InfoAlertButton::create from 0x4b9b18 to 0x4b9ca8 (400 bytes)
//
// 49 xrefs:
// > ShareLevelSettingsLayer::init @ 0x3b9bc8
// > ColorSelectPopup::init @ 0x3dc044
// > ShareCommentLayer::init @ 0x431f52
// > CustomizeObjectLayer::init @ 0x4625d2
// > SelectFontLayer::init @ 0x4aa56a
// > EditTriggersPopup::init @ 0x4aa970
// > GJAccountSettingsLayer::init @ 0x4b62d0
// > GJSpecialColorSelect::init @ 0x4ba148
// > SetupOpacityPopup::init @ 0x4baa52
// > SetupPulsePopup::init @ 0x4c05aa
// > ChallengesPage::init @ 0x4ccdc0
// > CollisionBlockPopup::init @ 0x4cd8e6
// > ConfigureValuePopup::addInfoAlertButton @ 0x4cf878
// > ConfigureValuePopup::init @ 0x4cfbe6
// > GJFollowCommandLayer::init @ 0x4dbd0c
// > GJPFollowCommandLayer::init @ 0x4dd5aa
// > GJRotateCommandLayer::init @ 0x4df4e4
// > PurchaseItemPopup::init @ 0x4e441a
// > LevelLeaderboard::init @ 0x4e5c7a
// > SetupAnimationPopup::init @ 0x4f336a
// > SetupCollisionTriggerPopup::init @ 0x4f4956
// > SetupCountTriggerPopup::init @ 0x4f6112
// > SetupInstantCountPopup::init @ 0x4f7a1a
// > SetupShakePopup::init @ 0x4f9830
// > SetupTouchTogglePopup::init @ 0x4fa63c
// > SetupCameraOffsetTrigger::init @ 0x501eba
// > SetupPortalPopup::init @ 0x503626
// > SetupRandTriggerPopup::init @ 0x504eb2
// > SetupEndPopup::init @ 0x505e50
// > SetGroupIDLayer::init @ 0x50a77c
// > SetupObjectOptionsPopup::init @ 0x50be00
// > SetupTimeWarpPopup::init @ 0x525c86
// > SetupCameraRotatePopup::init @ 0x5267c0
// > SetupRandAdvTriggerPopup::init @ 0x528718
// > SetupGravityModPopup::init @ 0x52ea84
// > CreateParticlePopup::init @ 0x5335b8
// > SetupSmartBlockLayer::init @ 0x53dbd4
// > SetupSmartTemplateLayer::init @ 0x53e3c8
// > BrowseSmartKeyLayer::init @ 0x53f284
// > BrowseSmartTemplateLayer::init @ 0x53fe3c
// > SetupTriggerPopup::addHelpButton @ 0x541a48
// > SetupCameraEdgePopup::init @ 0x548cfa
// > SetupCameraModePopup::init @ 0x55e1c0
// > SetupMGTrigger::init @ 0x562b72
// > LevelOptionsLayer::setupOptions @ 0x56ff0a
// > SetupSequenceTriggerPopup::init @ 0x58054e
// > GJPathPage::init @ 0x58d5a2
// > ShareListLayer::init @ 0x593056
// > ShareListLayer::init @ 0x5931a2
//
// 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
//
CCMenuItemSpriteExtra *__fastcall InfoAlertButton::create(int a1, int a2, int a3)
{
CCMenuItemSpriteExtra *v4; // r4
_BOOL4 v5; // r8
CCMenuItemSpriteExtra_vtbl *v6; // r3
int *v7; // r0
_BYTE v9[4]; // [sp+4h] [bp-10h] BYREF
_BYTE v10[4]; // [sp+8h] [bp-Ch] BYREF
v4 = (CCMenuItemSpriteExtra *)operator new(0x184u);
cocos2d::CCNodeRGBA::CCNodeRGBA(v4);
v4->m_bSelected = 0;
v4->m_bEnabled = 0;
v4->m_pListener = nullptr;
v4->m_pfnSelector.ptr = nullptr;
v4->m_pfnSelector.adj = 0;
v4->m_nScriptTapHandler = 0;
v4->m_pNormalImage = nullptr;
v4->m_pSelectedImage = nullptr;
v4->m_pDisabledImage = nullptr;
v4->m_fSizeMult = 0.0;
v4->m_animationEnabled = 0;
v4->m_colorEnabled = 0;
v4->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCMenuItemSpriteExtra_vtbl *)&off_A3D620;
v4->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A3D854;
v4->m_baseScale = 0.0;
v4->m_scaleMultiplier = 1.0;
v4->m_volume = 1.0;
v4->m_activateSound.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v4->m_selectSound.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v4->m_colorDip = 0.78431;
cocos2d::CCPoint::CCPoint(&v4->m_offset);
v4->m_duration = 0.3;
v4->m_unselectedDuration = 0.4;
v4->m_animationType = 0;
cocos2d::CCPoint::CCPoint(&v4->m_startPosition);
v4->m_iconType = Cube;
v4[1].cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCMenuItemSpriteExtra_vtbl *)&unk_ACDDA8;
v4[1].m_uID = (unsigned int)&unk_ACDDA8;
v4[1].m_nLuaID = 1065353216;
v4->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCMenuItemSpriteExtra_vtbl *)&off_A72208;
v4->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A7243C;
LOBYTE(v4[1].m_nTag) = 0;
sub_775C20(v9);
sub_775C20(v10);
v5 = InfoAlertButton::init(v4, (int)v9, (int)v10, a3);
sub_774008(v10);
sub_774008(v9);
if ( v5 )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v6 = v4->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v7 = (int *)v4;
v4 = nullptr;
v6->~CCMenuItemSpriteExtra_0((CCMenuItemSpriteExtra *)v7);
}
return v4;
}