//
// EditorSoundConfigInfoLayer::onUpload from 0x784c18 to 0x784c74 (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:31 +0000
//
EditorSoundConfigUploadPopup **__fastcall EditorSoundConfigInfoLayer::onUpload(
EditorSoundConfigUploadPopup **this,
cocos2d::CCObject *a2)
{
EditorSoundConfigUploadPopup **v2; // r4
GameManager *v3; // r0
GameManager *v4; // r0
GameManager *v5; // r0
GJAccountManager *v6; // r0
EditorSoundConfigInfoLayer *v7; // r2
GJAccountManager *v8; // r0
v2 = this;
if ( *(this + 187) )
{
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
v4 = (GameManager *)GameManager::safeModeEnabled(v3);
if ( v4 )
{
v5 = (GameManager *)GameManager::sharedState(v4);
return (EditorSoundConfigUploadPopup **)GameManager::showParentalRestrictedAlert(v5);
}
else
{
v6 = (GJAccountManager *)GJAccountManager::sharedState(nullptr);
v7 = *((EditorSoundConfigInfoLayer **)v6 + 71);
if ( *((_DWORD *)v6 + 70) - (int)v7 > 0 )
{
this = (EditorSoundConfigUploadPopup **)EditorSoundConfigUploadPopup::create(
v2[187],
(GJEditorSoundConfig *)v2,
v7);
if ( this )
return (EditorSoundConfigUploadPopup **)(*((int (__fastcall **)(EditorSoundConfigUploadPopup **))*this + 164))(this);
}
else
{
v8 = (GJAccountManager *)GJAccountManager::sharedState(v6);
return (EditorSoundConfigUploadPopup **)GJAccountManager::showAccountNeededAlert(
v8,
"upload sound packs");
}
}
}
return this;
}