//
// GJRateEditorSoundLayer::onSubmit from 0x953a5c to 0x953b7c (288 bytes)
//
// 3 xrefs:
// > ??> @ 0xf3d48
// > GJRateEditorSoundLayer::init @ 0x953fa4
// > ??> @ 0x1547640
//
// 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:57:24 +0000
//
__int64 __fastcall GJRateEditorSoundLayer::onSubmit(GJRateEditorSoundLayer *this, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
GameLevelManager *v4; // x0
GameLevelManager *v5; // x0
__int64 v7; // x0
__int64 v8; // x0
char v9; // w1
__int64 v10[2]; // [xsp+40h] [xbp+40h] BYREF
void *v11; // [xsp+50h] [xbp+50h]
if ( (int)(*(float (__fastcall **)(GJRateEditorSoundLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 4294967276LL) > 0 )
{
v4 = (GameLevelManager *)GameLevelManager::sharedState(v3);
v5 = (GameLevelManager *)(unsigned __int8)GameLevelManager::rateEditorSoundAdmin(v4);
if ( (_BYTE)v5 )
{
*(_QWORD *)(GameLevelManager::sharedState(v5) + 1360) = (char *)this + 1024;
v7 = *((_QWORD *)this + 131);
if ( v7 )
*(_QWORD *)(v7 + 664) = 0;
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "Featuring sound pack...", 0x17u);
v8 = UploadActionPopup::create((char *)this + 1016, v10);
v9 = v10[0];
*((_QWORD *)this + 131) = v8;
if ( (v9 & 1) != 0 )
{
operator delete(v11);
v8 = *((_QWORD *)this + 131);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
}
}
return _stack_chk_guard;
}