//
// UploadActionPopup::create from 0x1002d831c to 0x1002d8420 (260 bytes)
//
// 24 xrefs:
// > RateStarsLayer::onRate @ 0x100080a6c
// > EditLevelLayer::FLAlert_Clicked @ 0x1000ec2b0
// > GJUserCell::FLAlert_Clicked @ 0x100111b48
// > GJUserCell::FLAlert_Clicked @ 0x100111bc8
// > GJUserCell::FLAlert_Clicked @ 0x100111c34
// > GJRequestCell::FLAlert_Clicked @ 0x100112328
// > GJMessageCell::FLAlert_Clicked @ 0x1001129d0
// > SupportLayer::onRequestAccess @ 0x100192c84
// > ProfilePage::blockUser @ 0x10019bcfc
// > ProfilePage::FLAlert_Clicked @ 0x10019bdd0
// > ProfilePage::FLAlert_Clicked @ 0x10019be34
// > GJRateLevelLayer::onRate @ 0x1001b1884
// > GJRateLevelLayer::onCustomButton @ 0x1001b1a10
// > GJRateLevelLayer::FLAlert_Clicked @ 0x1001b1af4
// > FRequestProfilePage::deleteSelected @ 0x1001b7080
// > MessagesProfilePage::deleteSelected @ 0x1001ccf3c
// > ShareCommentLayer::onShare @ 0x1001d57bc
// > FriendRequestPopup::onAccept @ 0x1002d9ae8
// > FriendRequestPopup::onRemove @ 0x1002d9b84
// > FriendRequestPopup::blockUser @ 0x1002d9d8c
// > GJMessagePopup::blockUser @ 0x1002db660
// > GJMessagePopup::FLAlert_Clicked @ 0x1002dbb40
// > GJWriteMessagePopup::onSend @ 0x1002dcb94
// > RateDemonLayer::onRate @ 0x1004268dc
//
// 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, __int64 a2)
{
char *v4; // x19
int v5; // w0
int v6; // w20
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
__int64 v9; // [xsp+10h] [xbp-30h]
v4 = (char *)operator new(0x2A0u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v4);
*(_QWORD *)v4 = &off_1007DF4C8;
*((_QWORD *)v4 + 40) = off_1007DF9E8;
*((_QWORD *)v4 + 41) = &off_1007DFA58;
*((_QWORD *)v4 + 42) = off_1007DFA70;
*((_QWORD *)v4 + 43) = off_1007DFA90;
*((_QWORD *)v4 + 44) = off_1007DFAB0;
*((_QWORD *)v4 + 51) = off_1007DFAD8;
*((_QWORD *)v4 + 54) = off_1007DFB58;
v4[664] = 0;
*(_OWORD *)(v4 + 632) = 0u;
*(_OWORD *)(v4 + 648) = 0u;
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v9 = *(_QWORD *)(a2 + 16);
}
v5 = UploadActionPopup::init(v4, a1, __p);
v6 = v5;
if ( SHIBYTE(v9) < 0 )
{
operator delete(__p[0]);
if ( v6 )
goto LABEL_6;
LABEL_8:
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
if ( !v5 )
goto LABEL_8;
LABEL_6:
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return v4;
}