//
// UploadActionPopup::create from 0xa283ec to 0xa28638 (588 bytes)
//
// 50 xrefs:
// > GJMessageCell::FLAlert_Clicked @ 0x73ba9c
// > EditLevelLayer::FLAlert_Clicked @ 0x7f1ca0
// > SupportLayer::onRequestAccess @ 0x901d00
// > ShareCommentLayer::onShare @ 0x90e5a0
// > GJRateLevelLayer::onCustomButton @ 0x95303c
// > GJRateLevelLayer::FLAlert_Clicked @ 0x953160
// > GJRateLevelLayer::onRate @ 0x953284
// > GJRateLevelListLayer::onCustomButton @ 0x953474
// > GJRateLevelListLayer::FLAlert_Clicked @ 0x953590
// > GJRateLevelListLayer::onSubmit @ 0x9536f8
// > GJRateEditorSoundLayer::onCustomButton @ 0x9538e8
// > GJRateEditorSoundLayer::FLAlert_Clicked @ 0x953a04
// > GJRateEditorSoundLayer::onSubmit @ 0x953b2c
// > RateStarsLayer::onRate @ 0x957960
// > FriendRequestPopup::onRemove @ 0xa286cc
// > FriendRequestPopup::onAccept @ 0xa2882c
// > FriendRequestPopup::blockUser @ 0xa28908
// > GJMessagePopup::blockUser @ 0xa28a68
// > GJMessagePopup::FLAlert_Clicked @ 0xa28b88
// > GJWriteMessagePopup::onSend @ 0xa28d2c
// > MessagesProfilePage::deleteSelected @ 0xa4a884
// > FRequestProfilePage::deleteSelected @ 0xa4d454
// > FriendsProfilePage::FLAlert_Clicked @ 0xa516a8
// > ProfilePage::blockUser @ 0xa553dc
// > ProfilePage::unblockUser @ 0xa554b8
// > ProfilePage::FLAlert_Clicked @ 0xa55844
// > ProfilePage::FLAlert_Clicked @ 0xa558bc
// > RateDemonLayer::onRate @ 0xa84110
// > MPLobbyLayer::tryExitLobby @ 0xb05d0c
// > AccountReviewPopup::adminActionConfirmed @ 0xc414b4
// > AccountBanPopup::executeAction @ 0xc91034
// > AccountBanPopup::executeAction @ 0xc910d4
// > AccountBanPopup::executeAction @ 0xc9112c
// > AccountBanPopup::executeAction @ 0xc911b8
// > AccountBanPopup::executeAction @ 0xc91244
// > AccountBanPopup::executeAction @ 0xc9129c
// > AccountBanPopup::executeAction @ 0xc912f4
// > AccountBanPopup::executeAction @ 0xc91380
// > AccountBanPopup::executeAction @ 0xc913d8
// > AccountBanPopup::executeAction @ 0xc91430
// > AccountBanPopup::executeAction @ 0xc9148c
// > AccountBanPopup::executeAction @ 0xc914e4
// > AccountBanPopup::executeAction @ 0xc91540
// > AccountBanPopup::executeAction @ 0xc91598
// > CreatorSettingsPopup::setTextPopupClosed @ 0xc97bb0
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0xccf76c
// > PlatformerControlsPopup::FLAlert_Clicked @ 0xcfbeb8
// > PlatformerControlsPopup::onUpload @ 0xcfc380
// > RateStarsModLayer::onRate @ 0xcfcfbc
// > ??> @ 0xf9868
//
// This function is hookable on this platform (idp: arm, 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:59:43 +0000
//
__int64 __fastcall UploadActionPopup::create(__int64 a1, char *a2)
{
__int64 v4; // x19
char v5; // w0
__int64 v6; // x0
__int64 v7; // x1
int v8; // w21
__int64 v9; // x1
__int64 v10; // x0
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v4 = operator new(0x2C0u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v4);
*(_QWORD *)(v4 + 552) = 0;
*(_QWORD *)v4 = &off_1419A40;
*(_QWORD *)(v4 + 320) = off_1419F90;
*(_QWORD *)(v4 + 328) = &off_141A000;
*(_QWORD *)(v4 + 336) = off_141A018;
*(_QWORD *)(v4 + 344) = off_141A038;
*(_QWORD *)(v4 + 352) = off_141A060;
*(_QWORD *)(v4 + 408) = &off_141A090;
*(_QWORD *)(v4 + 432) = &off_141A110;
*(_QWORD *)(v4 + 544) = off_141A130;
*(_QWORD *)(v4 + 560) = 0;
*(_QWORD *)(v4 + 568) = 0;
*(_BYTE *)(v4 + 576) = 0;
*(_QWORD *)(v4 + 584) = 0;
*(_DWORD *)(v4 + 592) = 0;
*(_BYTE *)(v4 + 596) = 0;
*(_BYTE *)(v4 + 597) = 0;
*(_BYTE *)(v4 + 598) = 0;
*(_BYTE *)(v4 + 599) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 600));
*(_DWORD *)(v4 + 632) = -1;
*(_DWORD *)(v4 + 640) = -1;
*(_QWORD *)(v4 + 608) = 0;
*(_QWORD *)(v4 + 616) = 0;
*(_QWORD *)(v4 + 624) = 0;
*(_BYTE *)(v4 + 636) = 0;
*(_BYTE *)(v4 + 637) = 0;
*(_BYTE *)(v4 + 644) = 0;
*(_BYTE *)(v4 + 656) = 0;
*(_DWORD *)(v4 + 648) = 0;
*(_DWORD *)(v4 + 652) = 0;
*(_QWORD *)(v4 + 664) = 0;
*(_QWORD *)v4 = &off_147DF20;
*(_QWORD *)(v4 + 320) = off_147E470;
*(_QWORD *)(v4 + 328) = &off_147E4E0;
*(_QWORD *)(v4 + 336) = off_147E4F8;
*(_QWORD *)(v4 + 344) = off_147E518;
*(_QWORD *)(v4 + 352) = off_147E540;
*(_QWORD *)(v4 + 408) = &off_147E570;
*(_QWORD *)(v4 + 432) = &off_147E5F0;
*(_QWORD *)(v4 + 544) = off_147E610;
*(_QWORD *)(v4 + 672) = 0;
*(_QWORD *)(v4 + 680) = 0;
*(_QWORD *)(v4 + 688) = 0;
*(_BYTE *)(v4 + 696) = 0;
v12 = 0;
v5 = *a2;
v13 = 0;
v14 = nullptr;
if ( (v5 & 1) != 0 )
{
std::string::__init(&v12, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v6 = *(_QWORD *)a2;
v7 = *((_QWORD *)a2 + 1);
v14 = *((void **)a2 + 2);
v12 = v6;
v13 = v7;
}
v8 = (unsigned __int8)UploadActionPopup::init(v4, a1, (__int64)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
if ( v8 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
v9 = *(_QWORD *)v4;
v10 = v4;
v4 = 0;
(*(void (__fastcall **)(__int64))(v9 + 16))(v10);
}
return v4;
}