//
// UploadActionPopup::create from 0x100290090 to 0x1002902a8 (536 bytes)
//
// 52 xrefs:
// > EditLevelLayer::FLAlert_Clicked @ 0x1001e0edd
// > MessagesProfilePage::deleteSelected @ 0x1002133ed
// > GJMessageCell::FLAlert_Clicked @ 0x10024272f
// > RateDemonLayer::onRate @ 0x100270f17
// > RateStarsLayer::onRate @ 0x100277b29
// > FriendRequestPopup::onRemove @ 0x100292397
// > FriendRequestPopup::onAccept @ 0x10029246c
// > FriendRequestPopup::blockUser @ 0x100292888
// > FriendRequestPopup::FLAlert_Clicked @ 0x100292ed3
// > sub_100292F20 @ 0x100292f7d
// > GJMessagePopup::blockUser @ 0x1002949a8
// > GJMessagePopup::FLAlert_Clicked @ 0x10029502b
// > GJMessagePopup::FLAlert_Clicked @ 0x1002950b8
// > GJWriteMessagePopup::onSend @ 0x10029669b
// > SupportLayer::onRequestAccess @ 0x1003840f7
// > MPLobbyLayer::tryExitLobby @ 0x10048b07b
// > GJRateLevelLayer::onRate @ 0x100505475
// > GJRateLevelLayer::onCustomButton @ 0x100505647
// > GJRateLevelLayer::FLAlert_Clicked @ 0x100505744
// > sub_100508350 @ 0x10050842d
// > GJRateLevelListLayer::onCustomButton @ 0x1005087ae
// > GJRateLevelListLayer::FLAlert_Clicked @ 0x10050889c
// > sub_100509580 @ 0x100509649
// > GJRateEditorSoundLayer::onCustomButton @ 0x10050981c
// > GJRateEditorSoundLayer::FLAlert_Clicked @ 0x10050991e
// > ShareCommentLayer::onShare @ 0x1006b2c8c
// > FriendsProfilePage::FLAlert_Clicked @ 0x10073798b
// > FRequestProfilePage::deleteSelected @ 0x10087168a
// > ProfilePage::blockUser @ 0x1008a52e8
// > sub_1008A5340 @ 0x1008a538e
// > ProfilePage::FLAlert_Clicked @ 0x1008a5827
// > ProfilePage::FLAlert_Clicked @ 0x1008a58a3
// > CreatorSettingsPopup::setTextPopupClosed @ 0x1008b7257
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1008f7d99
// > sub_10095E5D0 @ 0x10095e7d3
// > PlatformerControlsPopup::FLAlert_Clicked @ 0x100960280
// > sub_100963BD0 @ 0x100963c74
// > sub_1009910B0 @ 0x100991174
// > sub_1009910B0 @ 0x100991229
// > sub_1009910B0 @ 0x1009912b4
// > sub_1009910B0 @ 0x100991369
// > sub_1009910B0 @ 0x1009913f3
// > sub_1009910B0 @ 0x100991484
// > sub_1009910B0 @ 0x10099156b
// > sub_1009910B0 @ 0x1009915e2
// > sub_1009910B0 @ 0x100991690
// > sub_1009910B0 @ 0x100991745
// > sub_1009910B0 @ 0x100991815
// > sub_1009910B0 @ 0x1009918e5
// > sub_1009910B0 @ 0x1009919b8
// > sub_1009910B0 @ 0x100991a6f
// > AccountReviewPopup::adminActionConfirmed @ 0x1009a4255
//
// 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:27:49 +0000
//
char *__fastcall UploadActionPopup::create(__int64 a1, __int128 *a2)
{
char *v2; // rbx
char v3; // r14
__int128 v5; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v2 = (char *)operator new(0x2C0u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*(_QWORD *)v2 = off_100B4FB70;
*((_QWORD *)v2 + 40) = off_100B500C0;
*((_QWORD *)v2 + 41) = &off_100B50130;
*((_QWORD *)v2 + 42) = off_100B50148;
*((_QWORD *)v2 + 43) = off_100B50168;
*((_QWORD *)v2 + 44) = off_100B50190;
*((_QWORD *)v2 + 51) = off_100B501C0;
*((_QWORD *)v2 + 54) = off_100B50240;
*((_QWORD *)v2 + 68) = off_100B50260;
*(_OWORD *)(v2 + 552) = 0;
*(_OWORD *)(v2 + 561) = 0;
*(_OWORD *)(v2 + 584) = 0;
sub_1002782A0((_QWORD *)v2 + 75);
*((_OWORD *)v2 + 38) = 0;
*((_QWORD *)v2 + 78) = 0;
*((_DWORD *)v2 + 158) = -1;
*((_WORD *)v2 + 318) = 0;
*((_DWORD *)v2 + 160) = -1;
v2[644] = 0;
*((_QWORD *)v2 + 81) = 0;
v2[656] = 0;
*(_QWORD *)v2 = off_100B06518;
*((_QWORD *)v2 + 40) = off_100B06A68;
*((_QWORD *)v2 + 41) = &off_100B06AD8;
*((_QWORD *)v2 + 42) = off_100B06AF0;
*((_QWORD *)v2 + 43) = off_100B06B10;
*((_QWORD *)v2 + 44) = off_100B06B38;
*((_QWORD *)v2 + 51) = off_100B06B68;
*((_QWORD *)v2 + 54) = off_100B06BE8;
*((_QWORD *)v2 + 68) = off_100B06C08;
*(_OWORD *)(v2 + 680) = 0;
*(_OWORD *)(v2 + 664) = 0;
v2[696] = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v5, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
__p = *((void **)a2 + 2);
v5 = *a2;
}
v3 = UploadActionPopup::init(v2, a1, &v5);
if ( (v5 & 1) != 0 )
operator delete(__p);
if ( v3 )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}