//
// UploadActionPopup::create from 0x100377124 to 0x100377230 (268 bytes)
//
// 41 xrefs:
// > sub_1000891AC @ 0x100089228
// > EditLevelLayer::FLAlert_Clicked @ 0x100112400
// > GJMessageCell::FLAlert_Clicked @ 0x10013b218
// > sub_100225F18 @ 0x100225f5c
// > sub_10022FAFC @ 0x10022fb3c
// > sub_10022FB90 @ 0x10022fbd0
// > ProfilePage::FLAlert_Clicked @ 0x10022ff38
// > ProfilePage::FLAlert_Clicked @ 0x10022ff9c
// > sub_100246740 @ 0x1002467c0
// > GJRateLevelLayer::onCustomButton @ 0x10024694c
// > GJRateLevelLayer::FLAlert_Clicked @ 0x100246a30
// > sub_10024CA00 @ 0x10024cb18
// > sub_100264D44 @ 0x100264e44
// > ShareCommentLayer::onShare @ 0x10026da38
// > FriendsProfilePage::FLAlert_Clicked @ 0x100273970
// > sub_100378994 @ 0x100378a08
// > sub_100378A5C @ 0x100378aa0
// > sub_100378D24 @ 0x100378d64
// > sub_10037A504 @ 0x10037a544
// > GJMessagePopup::FLAlert_Clicked @ 0x10037aa24
// > sub_1004A8F6C @ 0x1004a8fdc
// > CreatorSettingsPopup::setTextPopupClosed @ 0x1004abfd8
// > EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x1004d3164
// > sub_10051C1D8 @ 0x10051c33c
// > PlatformerControlsPopup::FLAlert_Clicked @ 0x10051d564
// > sub_10051F4A4 @ 0x10051f528
// > sub_10053EED8 @ 0x10053ef7c
// > sub_10053EED8 @ 0x10053eff4
// > sub_10053EED8 @ 0x10053f048
// > sub_10053EED8 @ 0x10053f09c
// > sub_10053EED8 @ 0x10053f0f0
// > sub_10053EED8 @ 0x10053f144
// > sub_10053EED8 @ 0x10053f1bc
// > sub_10053EED8 @ 0x10053f210
// > sub_10053EED8 @ 0x10053f28c
// > sub_10053EED8 @ 0x10053f2e4
// > sub_10053EED8 @ 0x10053f360
// > sub_10053EED8 @ 0x10053f3dc
// > sub_10053EED8 @ 0x10053f458
// > sub_10053EED8 @ 0x10053f4d4
// > AccountReviewPopup::adminActionConfirmed @ 0x10054b464
//
// 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 11:03:25 +0000
//
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(0x2C0u);
FLAlertLayer::FLAlertLayer((__int64)v4);
*(_QWORD *)v4 = &off_100938738;
*((_QWORD *)v4 + 40) = off_100938C88;
*((_QWORD *)v4 + 41) = &off_100938CF8;
*((_QWORD *)v4 + 42) = off_100938D10;
*((_QWORD *)v4 + 43) = off_100938D30;
*((_QWORD *)v4 + 44) = off_100938D58;
*((_QWORD *)v4 + 51) = off_100938D88;
*((_QWORD *)v4 + 54) = off_100938E08;
*((_QWORD *)v4 + 68) = off_100938E28;
v4[696] = 0;
*(_OWORD *)(v4 + 664) = 0u;
*(_OWORD *)(v4 + 680) = 0u;
if ( *(char *)(a2 + 23) < 0 )
{
sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));
}
else
{
*(_OWORD *)__p = *(_OWORD *)a2;
v9 = *(_QWORD *)(a2 + 16);
}
v5 = sub_100377258(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((__int64)v4);
return v4;
}