//
// InfoAlertButton::create from 0x1005a2f20 to 0x1005a30a4 (388 bytes)
//
// 82 xrefs:
// > SetupOpacityPopup::init @ 0x10001cadf
// > CustomizeObjectLayer::init @ 0x1001d7794
// > SetupTriggerPopup::addHelpButton @ 0x10021a8ee
// > GJThreadCell::loadFromThread @ 0x100233170
// > GJCompactUserCell::buildUserRow @ 0x10023faf4
// > LevelOptionsLayer::setupOptions @ 0x10025b7af
// > StartPosLayer::init @ 0x10025c65f
// > ShareLevelSettingsLayer::init @ 0x10026f35a
// > SelectFontLayer::init @ 0x100285328
// > EditTriggersPopup::init @ 0x100285ba8
// > GJAccountSettingsLayer::init @ 0x10028a61c
// > GJAccountSettingsLayer::init @ 0x10028aaf7
// > GJAccountSettingsLayer::init @ 0x10028afa4
// > sub_10028E090 @ 0x10028e6d9
// > ConfigureValuePopup::addInfoAlertButton @ 0x10029bc1f
// > sub_10029F920 @ 0x10029fa06
// > SetupTouchTogglePopup::init @ 0x1002a6d87
// > GJPathPage::init @ 0x1002ea3b5
// > SetGroupIDLayer::init @ 0x1002fd789
// > SetupObjectOptionsPopup::init @ 0x1003033c2
// > PurchaseItemPopup::init @ 0x1003139ea
// > ShareListLayer::init @ 0x10034e2d2
// > ShareListLayer::init @ 0x10034e541
// > SetupRandAdvTriggerPopup::init @ 0x1003788e9
// > ChallengesPage::init @ 0x100387403
// > sub_1003BDEC0 @ 0x1003be34b
// > CreateStartPosPopup::init @ 0x1003c4a2e
// > SetupGravityModPopup::init @ 0x1003c59b0
// > LevelLeaderboard::init @ 0x1003c7cb8
// > CreateParticlePopup::init @ 0x1004646a0
// > SetupCameraModePopup::init @ 0x1004a1e3b
// > sub_1004B59F0 @ 0x1004b5b75
// > SetupSequenceTriggerPopup::init @ 0x1004d8ac9
// > SetupSmartBlockLayer::init @ 0x1004e0b6e
// > SetupSmartTemplateLayer::init @ 0x1004e2784
// > BrowseSmartTemplateLayer::init @ 0x1004e39e2
// > BrowseSmartKeyLayer::init @ 0x1004e5855
// > SetupTimeWarpPopup::init @ 0x100501b7c
// > sub_100509EF0 @ 0x10050a085
// > SetupPortalPopup::init @ 0x10059cc45
// > AutoSaveSettingsLayer::init @ 0x1005bc4e9
// > GameSettingsLayer::addSpecialContent @ 0x100600986
// > GameSettingsLayer::addSpecialContent @ 0x100600ca3
// > GameSettingsLayer::addToggle @ 0x10060231b
// > sub_100648530 @ 0x1006486a0
// > ShareCommentLayer::init @ 0x1006b171a
// > ShareCommentLayer::init @ 0x1006b1b97
// > SetupRandTriggerPopup::init @ 0x1006b8fc7
// > ConfigureValuePopup::init @ 0x100701507
// > sub_100701E20 @ 0x100701eaf
// > GJSpecialColorSelect::init @ 0x100702cac
// > FriendsProfilePage::init @ 0x10073503b
// > SetupCameraOffsetTrigger::init @ 0x100740c61
// > SetupShakePopup::init @ 0x10074380b
// > SetupEndPopup::init @ 0x10074812d
// > ColorSelectPopup::init @ 0x100805ca9
// > FRequestProfilePage::init @ 0x10086f474
// > AudioAssetsPopup::init @ 0x1008b38b8
// > ClearPlatformerSavesOptionsPopup::init @ 0x1008b536a
// > DeathMarkerSettingsPopup::init @ 0x1008c6a5c
// > DeathMarkerSettingsPopup::init @ 0x1008c6c4c
// > DeathMarkerSettingsPopup::init @ 0x1008c7013
// > DeathMarkerSettingsPopup::init @ 0x1008c786c
// > DeathTrackerPopup::init @ 0x1008cc3ac
// > sub_1008EF050 @ 0x1008eff69
// > GridSettingsLayer::onBuildWindowContent @ 0x100908475
// > MessageThreadsPage::init @ 0x10092843b
// > sub_10092FFD0 @ 0x1009304fb
// > FriendPickerPopup::init @ 0x10093c8e0
// > sub_10093E4A0 @ 0x10093eb9f
// > NewThreadPopup::init @ 0x100944c6f
// > InvitesPopup::init @ 0x10094be79
// > ReportQueuePopup::init @ 0x100968edc
// > sub_100975720 @ 0x100975a14
// > sub_100982340 @ 0x100982461
// > DailyRecallUnlockPopup::init @ 0x10098acc4
// > NotificationFilterPopup::init @ 0x10098ccda
// > sub_100993790 @ 0x100993bc8
// > sub_1009948B0 @ 0x100994ba7
// > AccountReviewPopup::buildReportedRows @ 0x10099ceaf
// > AccountReviewPopup::buildFilterRows @ 0x10099ead2
// > sub_1009A59E0 @ 0x1009a5aca
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:32:34 +0000
//
char *__fastcall InfoAlertButton::create(__int128 *a1, __int128 *a2, float a3)
{
char *v3; // rbx
__int128 v4; // xmm0
char *v5; // r14
char v6; // r14
std::string __str; // [rsp+0h] [rbp-60h] BYREF
std::string v9; // [rsp+20h] [rbp-40h] BYREF
float v10; // [rsp+44h] [rbp-1Ch]
v10 = a3;
v3 = (char *)operator new(0x230u);
CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v3);
*(_QWORD *)v3 = off_100B72980;
*((_QWORD *)v3 + 40) = off_100B72DF8;
*(_QWORD *)&v4 = 0;
*(_OWORD *)(v3 + 504) = 0;
*(_OWORD *)(v3 + 520) = 0;
*(_OWORD *)(v3 + 536) = 0;
*((_DWORD *)v3 + 138) = 1065353216;
v3[556] = 0;
if ( (*(_BYTE *)a1 & 1) != 0 )
{
sub_10001AD30(&__str, *((const void **)a1 + 2), *((_QWORD *)a1 + 1));
if ( (*(_BYTE *)a2 & 1) != 0 )
goto LABEL_3;
}
else
{
__str.__r_.__value_.__r.__words[2] = *((_QWORD *)a1 + 2);
v4 = *a1;
*(_OWORD *)&__str.__r_.__value_.__l.0 = *a1;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v9, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
goto LABEL_6;
}
}
v9.__r_.__value_.__r.__words[2] = *((_QWORD *)a2 + 2);
v4 = *a2;
*(_OWORD *)&v9.__r_.__value_.__l.0 = *a2;
LABEL_6:
v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_infoIcon_001.png", *(double *)&v4);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v5 + 160LL))(v5, v10);
v6 = CCMenuItemSpriteExtra::init((__int64)v3, (__int64)v5, 0, 0, 0, 0);
if ( v6 )
{
CCMenuItemSpriteExtra::setSizeMult((__int64)v3, 1.5);
std::string::operator=((std::string *)v3 + 21, &__str);
std::string::operator=((std::string *)v3 + 22, &v9);
}
if ( (*(_BYTE *)&v9.__r_.__value_.__s.0 & 1) == 0 )
{
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_10;
LABEL_13:
operator delete(__str.__r_.__value_.__l.__data_);
if ( v6 )
goto LABEL_11;
LABEL_14:
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);
return nullptr;
}
operator delete(v9.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
goto LABEL_13;
LABEL_10:
if ( !v6 )
goto LABEL_14;
LABEL_11:
cocos2d::CCObject::autorelease((__int64)v3);
return v3;
}