//
// UploadActionPopup::create from 0x1002a3fc0 to 0x1002a413e (382 bytes)
//
// 28 xrefs:
// > EditLevelLayer::FLAlert_Clicked @ 0x1001fe35a
// > MessagesProfilePage::deleteSelected @ 0x10022ee7c
// > GJUserCell::FLAlert_Clicked @ 0x100256ccb
// > GJUserCell::FLAlert_Clicked @ 0x100256d7d
// > GJUserCell::FLAlert_Clicked @ 0x100256e2f
// > GJRequestCell::FLAlert_Clicked @ 0x100257c67
// > GJMessageCell::FLAlert_Clicked @ 0x1002589cf
// > RateDemonLayer::onRate @ 0x100284367
// > RateStarsLayer::onClose @ 0x10028c693
// > FriendRequestPopup::onAccept @ 0x1002a5f0c
// > FriendRequestPopup::onRemove @ 0x1002a5fda
// > FriendRequestPopup::blockUser @ 0x1002a62f8
// > FriendRequestPopup::FLAlert_Clicked @ 0x1002a68fa
// > sub_1002A6920 @ 0x1002a6974
// > GJMessagePopup::blockUser @ 0x1002a8478
// > GJMessagePopup::FLAlert_Clicked @ 0x1002a8afb
// > GJMessagePopup::FLAlert_Clicked @ 0x1002a8b88
// > GJWriteMessagePopup::onSend @ 0x1002a9f0b
// > SupportLayer::onRequestAccess @ 0x10039a667
// > MPLobbyLayer::tryExitLobby @ 0x10049414b
// > GJRateLevelLayer::onRate @ 0x1005067aa
// > GJRateLevelLayer::onCustomButton @ 0x100506977
// > GJRateLevelLayer::FLAlert_Clicked @ 0x100506a74
// > ShareCommentLayer::onShare @ 0x1005e1086
// > FRequestProfilePage::deleteSelected @ 0x100791328
// > ProfilePage::blockUser @ 0x1007bf338
// > ProfilePage::FLAlert_Clicked @ 0x1007bf474
// > ProfilePage::FLAlert_Clicked @ 0x1007bf4f4
//
// 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 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(0x2A0u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_1008FEF10;
*((_QWORD *)v2 + 40) = off_1008FF430;
*((_QWORD *)v2 + 41) = &off_1008FF4A0;
*((_QWORD *)v2 + 42) = off_1008FF4B8;
*((_QWORD *)v2 + 43) = off_1008FF4D8;
*((_QWORD *)v2 + 44) = off_1008FF4F8;
*((_QWORD *)v2 + 51) = off_1008FF520;
*((_QWORD *)v2 + 54) = off_1008FF5A0;
*(_OWORD *)(v2 + 648) = 0;
*(_OWORD *)(v2 + 632) = 0;
v2[664] = 0;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v5, *((const void **)a2 + 2), *((_QWORD *)a2 + 1), 0.0);
}
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((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}