//
// InfoAlertButton::create from 0x8e6394 to 0x8e66b4 (800 bytes)
//
// 50 xrefs:
// > ShareLevelSettingsLayer::init @ 0x6e5cec
// > ColorSelectPopup::init @ 0x73e294
// > ShareCommentLayer::init @ 0x7e722c
// > CustomizeObjectLayer::init @ 0x841fec
// > SelectFontLayer::init @ 0x8c6ebc
// > EditTriggersPopup::init @ 0x8c7524
// > GJAccountSettingsLayer::init @ 0x8df2dc
// > GJSpecialColorSelect::init @ 0x8e6dc0
// > SetupOpacityPopup::init @ 0x8e7ed8
// > SetupPulsePopup::init @ 0x8f1374
// > ChallengesPage::init @ 0x9084f0
// > CollisionBlockPopup::init @ 0x9099e0
// > ConfigureValuePopup::addInfoAlertButton @ 0x90c788
// > ConfigureValuePopup::init @ 0x90d0fc
// > GJFollowCommandLayer::init @ 0x9209f8
// > GJPFollowCommandLayer::init @ 0x9231ec
// > GJRotateCommandLayer::init @ 0x9267d4
// > PurchaseItemPopup::init @ 0x93054c
// > LevelLeaderboard::init @ 0x932fec
// > SetupAnimationPopup::init @ 0x94d764
// > SetupCollisionTriggerPopup::init @ 0x950114
// > SetupCountTriggerPopup::init @ 0x95341c
// > SetupInstantCountPopup::init @ 0x9561ec
// > SetupShakePopup::init @ 0x959988
// > SetupTouchTogglePopup::init @ 0x95af74
// > SetupCameraOffsetTrigger::init @ 0x967eb4
// > SetupPortalPopup::init @ 0x96a150
// > SetupRandTriggerPopup::init @ 0x96cd78
// > SetupEndPopup::init @ 0x96e5bc
// > SetGroupIDLayer::init @ 0x977e40
// > SetupObjectOptionsPopup::init @ 0x97a490
// > SetupTimeWarpPopup::init @ 0x9ab1cc
// > SetupCameraRotatePopup::init @ 0x9ac578
// > SetupRandAdvTriggerPopup::init @ 0x9afbe8
// > SetupGravityModPopup::init @ 0x9bf558
// > CreateParticlePopup::init @ 0x9c6720
// > SetupSmartBlockLayer::init @ 0x9dd19c
// > SetupSmartTemplateLayer::init @ 0x9ddf18
// > BrowseSmartTemplateLayer::init @ 0x9df838
// > BrowseSmartKeyLayer::init @ 0x9e07f0
// > SetupTriggerPopup::addHelpButton @ 0x9e5004
// > SetupCameraEdgePopup::init @ 0x9ee20c
// > SetupCameraModePopup::init @ 0xa16628
// > SetupMGTrigger::init @ 0xa1fe44
// > LevelOptionsLayer::setupOptions @ 0xa34d44
// > SetupSequenceTriggerPopup::init @ 0xa58bfc
// > GJPathPage::init @ 0xa6f8e0
// > ShareListLayer::init @ 0xa79d30
// > ShareListLayer::init @ 0xa79ef0
// > ??> @ 0x5cec8
//
// 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
//
__int64 __fastcall InfoAlertButton::create(float a1)
{
__int64 v2; // x19
long double v3; // q0
_BOOL4 v4; // w22
void *v5; // x0
void *v6; // x0
__int64 v7; // x1
__int64 v8; // x0
unsigned int *v10; // x2
int v11; // w1
unsigned int *v12; // x1
int v13; // w2
__int64 v14; // [xsp+58h] [xbp+58h] BYREF
__int64 v15; // [xsp+60h] [xbp+60h] BYREF
v2 = operator new(0x1F0u);
cocos2d::CCNodeRGBA::CCNodeRGBA((cocos2d::CCNodeRGBA *)v2);
*(_BYTE *)(v2 + 338) = 0;
*(_BYTE *)(v2 + 339) = 0;
*(_QWORD *)(v2 + 344) = 0;
*(_QWORD *)(v2 + 352) = 0;
*(_QWORD *)(v2 + 360) = 0;
*(_DWORD *)(v2 + 368) = 0;
*(_QWORD *)(v2 + 376) = 0;
*(_QWORD *)(v2 + 384) = 0;
*(_QWORD *)(v2 + 392) = 0;
*(_DWORD *)(v2 + 372) = 0;
*(_BYTE *)(v2 + 408) = 0;
*(_BYTE *)(v2 + 409) = 0;
*(_QWORD *)v2 = &off_1138980;
*(_QWORD *)(v2 + 320) = &off_1138DE8;
*(float *)(v2 + 400) = 1.0;
*(_DWORD *)(v2 + 404) = 0;
*(float *)(v2 + 412) = 1.0;
*(_QWORD *)(v2 + 416) = &byte_124B6C8;
*(_QWORD *)(v2 + 424) = &byte_124B6C8;
*(_DWORD *)(v2 + 432) = 1061734601;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 436));
*(_DWORD *)(v2 + 452) = 0;
*(_DWORD *)(v2 + 444) = 1050253722;
*(_DWORD *)(v2 + 448) = 1053609165;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v2 + 456));
*(_DWORD *)(v2 + 464) = 0;
*(_QWORD *)v2 = &off_11A1F00;
*(_QWORD *)(v2 + 320) = &off_11A2368;
*(_BYTE *)(v2 + 492) = 0;
*(_QWORD *)(v2 + 472) = &byte_124B6C8;
*(_QWORD *)(v2 + 480) = &byte_124B6C8;
*(float *)(v2 + 488) = 1.0;
sub_D18D28(&v14);
*(__n128 *)&v3 = sub_D18D28(&v15);
*(float *)&v3 = a1;
v4 = InfoAlertButton::init((CCMenuItemSpriteExtra *)v2, (__int64)&v14, (__int64)&v15, v3);
v5 = (void *)(v15 - 24);
if ( (__int64 *)(v15 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v12 = (unsigned int *)(v15 - 8);
do
v13 = __ldaxr(v12);
while ( __stlxr(v13 - 1, v12) );
}
else
{
v13 = *(_DWORD *)(v15 - 8);
*(_DWORD *)(v15 - 8) = v13 - 1;
}
if ( v13 <= 0 )
operator delete(v5);
}
v6 = (void *)(v14 - 24);
if ( (__int64 *)(v14 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v10 = (unsigned int *)(v14 - 8);
do
v11 = __ldaxr(v10);
while ( __stlxr(v11 - 1, v10) );
}
else
{
v11 = *(_DWORD *)(v14 - 8);
*(_DWORD *)(v14 - 8) = v11 - 1;
}
if ( v11 <= 0 )
operator delete(v6);
}
if ( v4 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
v7 = *(_QWORD *)v2;
v8 = v2;
v2 = 0;
(*(void (__fastcall **)(__int64))(v7 + 16))(v8);
}
return v2;
}