//
// GJRateLevelListLayer::onSubmit from 0x9535e8 to 0x953748 (352 bytes)
//
// 3 xrefs:
// > ??> @ 0x4f000
// > GJRateLevelListLayer::init @ 0x955e5c
// > ??> @ 0x1541a58
//
// 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 GJRateLevelListLayer::onSubmit(GJRateLevelListLayer *this, cocos2d::CCObject *a2)
{
int v3; // w21
GameLevelManager *v4; // x0
GameLevelManager *v5; // x0
GameLevelManager *v6; // x0
__int64 v8; // x0
__int64 v9; // x0
char v10; // w1
__int64 v11[2]; // [xsp+40h] [xbp+40h] BYREF
void *v12; // [xsp+50h] [xbp+50h]
v3 = (int)(*(float (__fastcall **)(GJRateLevelListLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 4294967286LL);
(*(void (__fastcall **)(GJRateLevelListLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 4294967285LL);
(*(void (__fastcall **)(GJRateLevelListLayer *, __int64))(*(_QWORD *)this + 1464LL))(this, 4294967284LL);
if ( v3 > 0 )
{
v5 = (GameLevelManager *)GameLevelManager::sharedState(v4);
v6 = (GameLevelManager *)(unsigned __int8)GameLevelManager::rateLevelListAdmin(v5);
if ( (_BYTE)v6 )
{
*(_QWORD *)(GameLevelManager::sharedState(v6) + 1360) = (char *)this + 1024;
v8 = *((_QWORD *)this + 132);
if ( v8 )
*(_QWORD *)(v8 + 664) = 0;
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, "Featuring list...", 0x11u);
v9 = UploadActionPopup::create((char *)this + 1016, v11);
v10 = v11[0];
*((_QWORD *)this + 132) = v9;
if ( (v10 & 1) != 0 )
{
operator delete(v12);
v9 = *((_QWORD *)this + 132);
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
}
}
return _stack_chk_guard;
}