//
// InfoAlertButton::create from 0x10016b21c to 0x10016b34c (304 bytes)
//
// 45 xrefs:
// > SetupOpacityPopup::init @ 0x100022fa8
// > SetupRandAdvTriggerPopup::init @ 0x10002e7b8
// > ChallengesPage::init @ 0x1000321d4
// > SetGroupIDLayer::init @ 0x10003b708
// > SetupObjectOptionsPopup::init @ 0x10003f4c4
// > CustomizeObjectLayer::init @ 0x10004d7cc
// > SetupSmartBlockLayer::init @ 0x10006f548
// > SetupSmartTemplateLayer::init @ 0x100070810
// > BrowseSmartTemplateLayer::init @ 0x1000714d8
// > BrowseSmartKeyLayer::init @ 0x100072b24
// > CollisionBlockPopup::init @ 0x100084eb0
// > SetupCountTriggerPopup::init @ 0x1000f3cd4
// > SetupTriggerPopup::addHelpButton @ 0x10012f014
// > GJFollowCommandLayer::init @ 0x10013646c
// > SetupTimeWarpPopup::init @ 0x100147fc4
// > PurchaseItemPopup::init @ 0x10014e288
// > ConfigureValuePopup::init @ 0x10014fd0c
// > ConfigureValuePopup::addInfoAlertButton @ 0x10015061c
// > GJPFollowCommandLayer::init @ 0x10015ec00
// > LevelOptionsLayer::setupOptions @ 0x10017d898
// > SetupCameraOffsetTrigger::init @ 0x10018eeac
// > GJSpecialColorSelect::init @ 0x1001aefe8
// > SetupInstantCountPopup::init @ 0x1001bbff8
// > SetupRandTriggerPopup::init @ 0x1001c9e0c
// > SetupSequenceTriggerPopup::init @ 0x1001d26a0
// > ShareCommentLayer::init @ 0x1001d4a10
// > SetupCollisionTriggerPopup::init @ 0x10022f740
// > SetupCameraEdgePopup::init @ 0x100239fb8
// > ShareListLayer::init @ 0x100248964
// > ShareListLayer::init @ 0x100248b14
// > SetupTouchTogglePopup::init @ 0x10024b210
// > LevelLeaderboard::init @ 0x10024ff44
// > ShareLevelSettingsLayer::init @ 0x100277058
// > SetupEndPopup::init @ 0x1002ad26c
// > CreateParticlePopup::init @ 0x1002cb774
// > SelectFontLayer::init @ 0x1002d1f14
// > EditTriggersPopup::init @ 0x1002d269c
// > GJAccountSettingsLayer::init @ 0x1002d61d8
// > SetupMGTrigger::init @ 0x1002f1b30
// > SetupShakePopup::init @ 0x1003a9278
// > SetupCameraModePopup::init @ 0x1003aa5a4
// > SetupPulsePopup::init @ 0x1003b5b00
// > GJPathPage::init @ 0x1003b8fc4
// > SetupAnimationPopup::init @ 0x1003c369c
// > ColorSelectPopup::init @ 0x10041e088
//
// 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
//
char *__fastcall InfoAlertButton::create(__int64 a1, __int64 a2, float a3)
{
char *v6; // x19
int v7; // w20
void *__p[2]; // [xsp+0h] [xbp-70h] BYREF
__int64 v10; // [xsp+10h] [xbp-60h]
void *__dst[2]; // [xsp+20h] [xbp-50h] BYREF
__int64 v12; // [xsp+30h] [xbp-40h]
v6 = (char *)operator new(0x230u);
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((CCMenuItemSpriteExtra *)v6);
*(_QWORD *)v6 = off_10079ED18;
*((_QWORD *)v6 + 40) = off_10079F180;
*(_OWORD *)(v6 + 504) = 0u;
*(_OWORD *)(v6 + 520) = 0u;
*(_OWORD *)(v6 + 536) = 0u;
*((_DWORD *)v6 + 138) = 1065353216;
v6[556] = 0;
if ( *(char *)(a1 + 23) < 0 )
{
sub_1000097D0(__dst, *(void **)a1, *(_QWORD *)(a1 + 8));
}
else
{
*(_OWORD *)__dst = *(_OWORD *)a1;
v12 = *(_QWORD *)(a1 + 16);
}
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v10 = *(_QWORD *)(a2 + 16);
}
v7 = InfoAlertButton::init(v6, __dst, __p, a3);
if ( SHIBYTE(v10) < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v12) < 0 )
{
operator delete(__dst[0]);
if ( v7 )
goto LABEL_11;
LABEL_13:
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
if ( !v7 )
goto LABEL_13;
LABEL_11:
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}